@@ -57,8 +57,7 @@ |
||
| 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 | } |
@@ -150,12 +150,10 @@ |
||
| 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); |
@@ -88,9 +88,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | sleep(1); |
| 118 | - $count ++; |
|
| 118 | + $count++; |
|
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | 121 | |
@@ -124,9 +124,9 @@ |
||
| 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()) |