Passed
Branch master (33d1c7)
by Petrică
03:39 queued 01:15
created
Tests/Command/NotifyCommandTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,9 +124,9 @@
 block discarded – undo
124 124
         $input = $this->getInputInterface();
125 125
 
126 126
         $map = array(
127
-            [ 'statsd-host', 'localhost' ],
128
-            [ 'statsd-port', '8125' ],
129
-            [ 'statsd-namespace', 'test' ]
127
+            ['statsd-host', 'localhost'],
128
+            ['statsd-port', '8125'],
129
+            ['statsd-namespace', 'test']
130 130
         );
131 131
 
132 132
         $input->expects($this->atLeastOnce())
Please login to merge, or discard this patch.
Command/NotifyCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
 
89 89
         $iterations = $input->getOption('iterations');
90 90
         $count = 0;
91
-        while($count < $iterations)
91
+        while ($count < $iterations)
92 92
         {
93
-            foreach($gauges as $path => $gauge) {
93
+            foreach ($gauges as $path => $gauge) {
94 94
                 // Sampling period attained for current gauge?
95 95
                 if (fmod($count, $gauge->getSamplingPeriod()) == 0) {
96 96
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                     $statsd->startBatch();
100 100
 
101 101
                     foreach ($values as $key => $value) {
102
-                        $composed = $path . '.' . $key;
102
+                        $composed = $path.'.'.$key;
103 103
 
104 104
                         if (null !== $value) {
105 105
                             $statsd->gauge($composed, $value);
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             }
116 116
 
117 117
             sleep(1);
118
-            $count ++;
118
+            $count++;
119 119
         }
120 120
     }
121 121
 
Please login to merge, or discard this patch.
Model/TopCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         foreach ($lines as $line) {
66 66
             $data = explode(' ', $line);
67 67
             array_walk($data, 'trim');
68
-            $stats[] = array_values(array_filter($data, function ($value) {
68
+            $stats[] = array_values(array_filter($data, function($value) {
69 69
                 return strlen($value) > 0;
70 70
             }));
71 71
         }
Please login to merge, or discard this patch.
Gauge/ProcessesGauge.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
         $collection = new ValuesCollection();
64 64
 
65 65
         foreach ($cpu as $name => $value) {
66
-            $collection->add($name . '.cpu.value', $value);
66
+            $collection->add($name.'.cpu.value', $value);
67 67
         }
68 68
 
69 69
         foreach ($memory as $name => $value) {
70
-            $collection->add($name . '.memory.value', $value);
70
+            $collection->add($name.'.memory.value', $value);
71 71
         }
72 72
 
73 73
         return $collection;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function filterAbove($processes, $gate)
96 96
     {
97
-        return array_filter($processes, function ($item) use ($gate) {
97
+        return array_filter($processes, function($item) use ($gate) {
98 98
             return $item >= $gate;
99 99
         });
100 100
     }
Please login to merge, or discard this patch.