Completed
Push — master ( 09d3da...93d4b1 )
by Ma
02:44
created
src/Monitor/Notification/NotificationMgr.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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'];
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Monitor/Notification/Trigger/TriggerMgr.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Monitor/Notification/Trigger/Comparator/Comparator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Monitor/Utils/PercentageHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.