@@ -7,7 +7,7 @@ |
||
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; |
@@ -94,8 +94,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |