swag: Fix violations of PSR-12

PSR-2 has been deprecated and phpcs v3.5.3
now checks for the successor PSR-12
This commit is contained in:
Johannes Meyer 2019-12-04 11:01:35 +01:00
parent 8b4d5f37c5
commit 7b488d7f93
16 changed files with 22 additions and 18 deletions

View File

@ -297,7 +297,9 @@ class Donut
'r' => sprintf('%F', $this->radius), 'r' => sprintf('%F', $this->radius),
'fill' => 'transparent', 'fill' => 'transparent',
'stroke-width' => $this->getThickness(), 'stroke-width' => $this->getThickness(),
'stroke-dasharray' => sprintf('%F', $slice[0]) . ' ' . sprintf('%F', (99.9 - $slice[0])), // 99.9 prevents gaps (slight overlap) 'stroke-dasharray' => sprintf('%F', $slice[0])
. ' '
. sprintf('%F', (99.9 - $slice[0])), // 99.9 prevents gaps (slight overlap)
'stroke-dashoffset' => sprintf('%F', $offset) 'stroke-dashoffset' => sprintf('%F', $offset)
) )
); );

View File

@ -140,7 +140,10 @@ class MonitoringWizard extends Wizard implements SetupWizard
$setup->addStep( $setup->addStep(
new BackendStep(array( new BackendStep(array(
'backendConfig' => $pageData['setup_monitoring_backend'], 'backendConfig' => $pageData['setup_monitoring_backend'],
'resourceConfig' => array_diff_key($pageData['setup_monitoring_ido'], array('skip_validation' => null)) //TODO: Prefer a new backend once implemented. 'resourceConfig' => array_diff_key(
$pageData['setup_monitoring_ido'], //TODO: Prefer a new backend once implemented.
array('skip_validation' => null)
)
)) ))
); );

View File

@ -127,8 +127,7 @@ class ArrayToTextTableHelper
$this->printHeading(); $this->printHeading();
$rc = count($this->rows); $rc = count($this->rows);
for ($i = 0; $i < $rc; for ($i = 0; $i < $rc; $i++) {
$i++) {
$this->printRow($i); $this->printRow($i);
} }