@@ -96,7 +96,7 @@ |
||
96 | 96 | ); |
97 | 97 | $query = $queryBuilder->getQuery(); |
98 | 98 | $queryResult = $query->getResult(); |
99 | - if (! $queryResult) { |
|
99 | + if (!$queryResult) { |
|
100 | 100 | return true; |
101 | 101 | } |
102 | 102 | $timeOfLastFiredUpTrigger = $queryResult[0]['created']; |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * @access private |
70 | 70 | * @param Trigger $trigger |
71 | 71 | * @param array $serverData |
72 | - * @return \Monitor\Notification\Notification |
|
72 | + * @return Notification|null |
|
73 | 73 | */ |
74 | 74 | public function prepareNotification(Trigger $trigger, array $serverData) |
75 | 75 | { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | private function checkIsComparatorValid() |
93 | 93 | { |
94 | - if (! $this->comparator) { |
|
94 | + if (!$this->comparator) { |
|
95 | 95 | throw new \Exception('Comparator invalid'); |
96 | 96 | } |
97 | 97 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | private function fireTrigger(Trigger $trigger, array $serverData, $msDelay) |
108 | 108 | { |
109 | - if (! $this->notificationMgr->hasNotificationDelayExpired( |
|
109 | + if (!$this->notificationMgr->hasNotificationDelayExpired( |
|
110 | 110 | $trigger->getId(), |
111 | 111 | $serverData['server_id'], |
112 | 112 | $msDelay |
@@ -21,13 +21,13 @@ |
||
21 | 21 | return $this->moreThan($value, $trigger->getValue()); |
22 | 22 | |
23 | 23 | case "<": |
24 | - return ! $this->moreThan($value, $trigger->getValue()); |
|
24 | + return !$this->moreThan($value, $trigger->getValue()); |
|
25 | 25 | |
26 | 26 | case "=": |
27 | 27 | return $this->equal($value, $trigger->getValue()); |
28 | 28 | |
29 | 29 | case "!=": |
30 | - return ! $this->equal($value, $trigger->getValue()); |
|
30 | + return !$this->equal($value, $trigger->getValue()); |
|
31 | 31 | } |
32 | 32 | return false; |
33 | 33 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | public function getServicePercentage(array $serverData, $service) |
14 | 14 | { |
15 | 15 | list($column1, $column2) = array_pad(explode(":", $service->getDBColumns()), 2, 1); |
16 | - if (! isset($serverData[$column1]) |
|
17 | - || ! isset($serverData[$column2])) { |
|
16 | + if (!isset($serverData[$column1]) |
|
17 | + || !isset($serverData[$column2])) { |
|
18 | 18 | return 0; |
19 | 19 | } |
20 | 20 | if (is_numeric($column2)) { |