@@ -65,7 +65,7 @@ |
||
| 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 | } |
@@ -63,11 +63,11 @@ discard block |
||
| 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 |
||
| 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 | } |