@@ -7,7 +7,6 @@ |
||
7 | 7 | use Monitor\Format\FormatInterface; |
8 | 8 | use Monitor\Config\ConfigInterface; |
9 | 9 | use Doctrine\ORM\EntityManager; |
10 | -use Doctrine\ORM\Query\ResultSetMapping; |
|
11 | 10 | |
12 | 11 | class Monitor |
13 | 12 | { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | private function isClientValid() |
74 | 74 | { |
75 | - if (! $this->client) { |
|
75 | + if (!$this->client) { |
|
76 | 76 | throw new \Exception('Client is not valid'); |
77 | 77 | } |
78 | 78 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | { |
100 | 100 | $r = new \ReflectionClass(new Model\ServerHistory); |
101 | 101 | $properties = []; |
102 | - foreach($r->getProperties() as $property) { |
|
102 | + foreach ($r->getProperties() as $property) { |
|
103 | 103 | $properties[] = $property->name; |
104 | 104 | } |
105 | 105 | unset($properties['id']); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | { |
131 | 131 | $resources = $this->client->getResources(); |
132 | 132 | |
133 | - if (! $resources) { |
|
133 | + if (!$resources) { |
|
134 | 134 | $resources = json_encode( |
135 | 135 | array( |
136 | 136 | 'status' => 'offline' |
@@ -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; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $this->notificationDelay = $delay; |
42 | 42 | } |
43 | 43 | |
44 | - public function setDb(DatabaseInterface &$db) |
|
44 | + public function setDb(DatabaseInterface&$db) |
|
45 | 45 | { |
46 | 46 | $this->db = $db; |
47 | 47 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | private function checkIsComparatorValid() |
159 | 159 | { |
160 | - if (! $this->comparator) { |
|
160 | + if (!$this->comparator) { |
|
161 | 161 | throw new \Exception('Comparator invalid'); |
162 | 162 | } |
163 | 163 | } |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | */ |
173 | 173 | private function fireTrigger(Trigger $trigger, array $serverData, $msDelay) |
174 | 174 | { |
175 | - if (! $this->hasNotificationDelayExpired( |
|
175 | + if (!$this->hasNotificationDelayExpired( |
|
176 | 176 | $trigger->getId(), |
177 | 177 | $serverData['server_id'], |
178 | 178 | $msDelay |