Completed
Push — master ( 8fdd0f...2be002 )
by Ma
02:29
created
src/Monitor/Monitor.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'
Please login to merge, or discard this patch.
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.