mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
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),
|
'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)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -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)
|
||||||
|
)
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user