Completed
Push — master ( c6aa78...371b23 )
by Ma
02:28
created
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.
src/Monitor/Notification/Trigger/Comparator/Strategy/Context.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * Use strategy to compare trigger value
30 30
      *
31
-     * @param Monitor\Model\Trigger $trigger
31
+     * @param Trigger $trigger
32 32
      * @param array $serverData
33 33
      * @param \Doctrine\ORM\EntityRepository $serviceRepository
34 34
      * @param \Monitor\Utils\PercentageHelper $percentageHelper
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
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function shouldTriggerBeFired(Trigger $trigger, array $serverData, $msDelay)
83 83
     {
84 84
         $this->checkIsComparatorValid();
85
-        if (! $this->notificationLogService->hasNotificationDelayExpired(
85
+        if (!$this->notificationLogService->hasNotificationDelayExpired(
86 86
             $trigger->getId(),
87 87
             $serverData['server_id'],
88 88
             $msDelay
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     private function checkIsComparatorValid()
109 109
     {
110
-        if (! $this->comparator) {
110
+        if (!$this->comparator) {
111 111
             throw new \Exception('Comparator invalid');
112 112
         }
113 113
     }
Please login to merge, or discard this patch.
src/Monitor/Notification/Notifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     {
83 83
         $notificationId = $trigger->getNotificationId();
84 84
         $notification = $this->getNotificationById($notificationId);
85
-        if (! $notification) {
85
+        if (!$notification) {
86 86
             throw new \Exception('Notification not found');
87 87
         }
88 88
         //merge server data and trigger properties so we can use them in fulfilling notification message
Please login to merge, or discard this patch.
src/Monitor/Service/NotificationLog.php 1 patch
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.