From d494cf3ceeaf6417c2e5af9ee8faf49ea4f3e98d Mon Sep 17 00:00:00 2001 From: Ravi Kumar Kempapura Srinivasa Date: Mon, 4 May 2020 09:35:10 +0200 Subject: [PATCH] Each PHP statement must be on a line by itself Previously there was an error during php codesniffer test at line 53 of IcingaDbState. Changes are made to correct this error. --- library/Businessprocess/State/IcingaDbState.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/Businessprocess/State/IcingaDbState.php b/library/Businessprocess/State/IcingaDbState.php index eecedfa..56b1a70 100644 --- a/library/Businessprocess/State/IcingaDbState.php +++ b/library/Businessprocess/State/IcingaDbState.php @@ -16,7 +16,7 @@ class IcingaDbState extends IcingaDbBackend /** @var BpConfig */ protected $config; - /** @var IcingaDbBackend */ + /** @var IcingadbDatabase */ protected $backend; public function __construct(BpConfig $config) @@ -50,7 +50,10 @@ class IcingaDbState extends IcingaDbBackend { $config = $this->config; - Benchmark::measure('Retrieving states for business process ' . $config->getName()); + Benchmark::measure(sprintf( + 'Retrieving states for business process %s', + $config->getName() + )); $hosts = $config->listInvolvedHostNames(); if (empty($hosts)) {