Completed
Push — master ( 33d1c7...a9495c )
by Petrică
02:29
created
Config/ConfigLoader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
             }
58 58
 
59 59
             return $processedConfiguration;
60
-        }
61
-        else {
60
+        } else {
62 61
             throw new \RuntimeException(sprintf('Configuration file does not exist or is not accessible %s',
63 62
                 $this->filepath));
64 63
         }
Please login to merge, or discard this patch.
Command/NotifyCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -150,12 +150,10 @@
 block discarded – undo
150 150
                     if ($reflection->getConstructor()) {
151 151
                         $this->gauges[$path] = $reflection->newInstanceArgs(
152 152
                             $details['arguments'] ? $details['arguments'] : array());
153
-                    }
154
-                    else {
153
+                    } else {
155 154
                         $this->gauges[$path] = $reflection->newInstance();
156 155
                     }
157
-                }
158
-                else {
156
+                } else {
159 157
                     throw new \RuntimeException(sprintf(
160 158
                         'Class does not exists %s'
161 159
                     ), $className);
Please login to merge, or discard this patch.
Gauge/ProcessesGauge.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@  discard block
 block discarded – undo
111 111
         foreach ($processes as $process) {
112 112
             if (isset($cpus[$process->getName()])) {
113 113
                 $cpus[$process->getName()] += $process->getCpu();
114
-            }
115
-            else {
114
+            } else {
116 115
                 $cpus[$process->getName()] = $process->getCpu();
117 116
             }
118 117
         }
@@ -133,8 +132,7 @@  discard block
 block discarded – undo
133 132
         foreach ($processes as $process) {
134 133
             if (isset($memory[$process->getName()])) {
135 134
                 $memory[$process->getName()] += $process->getMemory();
136
-            }
137
-            else {
135
+            } else {
138 136
                 $memory[$process->getName()] = $process->getMemory();
139 137
             }
140 138
         }
Please login to merge, or discard this patch.