Completed
Push — master ( 26bce3...b6ebb9 )
by Ma
02:28
created
src/Monitor/Format/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     public function getService($className)
8 8
     {
9 9
         $className = __NAMESPACE__.'\\'.$className;
10
-        if (! class_exists($className)) {
10
+        if (!class_exists($className)) {
11 11
             throw new \Exception($className.' Service class not found');
12 12
         }
13 13
         return new $className;
Please login to merge, or discard this patch.
src/Monitor/Notification/Trigger/TriggerMgr.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,8 +94,7 @@  discard block
 block discarded – undo
94 94
             ->andWhere('nl.server_id = ?2')
95 95
             ->orderBy('nl.created', 'DESC')
96 96
             ->setMaxResults(1)
97
-            ->setParameters
98
-            (
97
+            ->setParameters(
99 98
                 [
100 99
                     '1' => $triggerId,
101 100
                     '2' => $serverId
@@ -103,7 +102,7 @@  discard block
 block discarded – undo
103 102
             );
104 103
         $query = $queryBuilder->getQuery();
105 104
         $queryResult = $query->getResult();
106
-        if(! $queryResult) {
105
+        if (!$queryResult) {
107 106
             return true;
108 107
         }
109 108
         $timeOfLastFiredUpTrigger = $queryResult[0]['created'];
@@ -149,7 +148,7 @@  discard block
 block discarded – undo
149 148
      */
150 149
     private function checkIsComparatorValid()
151 150
     {
152
-        if (! $this->comparator) {
151
+        if (!$this->comparator) {
153 152
             throw new \Exception('Comparator invalid');
154 153
         }
155 154
     }
@@ -164,7 +163,7 @@  discard block
 block discarded – undo
164 163
      */
165 164
     private function fireTrigger(Trigger $trigger, array $serverData, $msDelay)
166 165
     {
167
-        if (! $this->hasNotificationDelayExpired(
166
+        if (!$this->hasNotificationDelayExpired(
168 167
             $trigger->getId(),
169 168
             $serverData['server_id'],
170 169
             $msDelay
Please login to merge, or discard this patch.