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:
parent
8b4d5f37c5
commit
7b488d7f93
|
@ -297,7 +297,9 @@ class Donut
|
|||
'r' => sprintf('%F', $this->radius),
|
||||
'fill' => 'transparent',
|
||||
'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)
|
||||
)
|
||||
);
|
||||
|
|
|
@ -140,7 +140,10 @@ class MonitoringWizard extends Wizard implements SetupWizard
|
|||
$setup->addStep(
|
||||
new BackendStep(array(
|
||||
'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)
|
||||
)
|
||||
))
|
||||
);
|
||||
|
||||
|
|
|
@ -127,8 +127,7 @@ class ArrayToTextTableHelper
|
|||
$this->printHeading();
|
||||
|
||||
$rc = count($this->rows);
|
||||
for ($i = 0; $i < $rc;
|
||||
$i++) {
|
||||
for ($i = 0; $i < $rc; $i++) {
|
||||
$this->printRow($i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue