Completed
Push — master ( cfcc0d...09d3da )
by Ma
02:32
created
src/Monitor/Notification/NotificationMgr.php 1 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/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.