@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | ) |
| 71 | 71 | ); |
| 72 | 72 | foreach ($this->console->getLogs() as $log) { |
| 73 | - switch($log['type']) { |
|
| 73 | + switch ($log['type']) { |
|
| 74 | 74 | case 'log': |
| 75 | 75 | $message = array( |
| 76 | 76 | 'message' => print_r($log['data'], true), |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | break; |
| 81 | 81 | case 'memory': |
| 82 | 82 | $message = array( |
| 83 | - 'message' => (!empty($log['data_type']) ? "{$log['data_type']}: " : '') . $log['name'], |
|
| 83 | + 'message' => (!empty($log['data_type']) ? "{$log['data_type']}: " : '').$log['name'], |
|
| 84 | 84 | 'data' => $this->getReadableMemory($log['data']), |
| 85 | 85 | 'type' => 'memory' |
| 86 | 86 | ); |
@@ -287,11 +287,11 @@ discard block |
||
| 287 | 287 | |
| 288 | 288 | public function __invoke() |
| 289 | 289 | { |
| 290 | - $console= $this->formatConsoleData(); |
|
| 291 | - $speed= $this->formatSpeedData(); |
|
| 292 | - $query= $this->formatQueryData(); |
|
| 293 | - $memory= $this->formatMemoryData(); |
|
| 294 | - $files= $this->formatFileData(); |
|
| 290 | + $console = $this->formatConsoleData(); |
|
| 291 | + $speed = $this->formatSpeedData(); |
|
| 292 | + $query = $this->formatQueryData(); |
|
| 293 | + $memory = $this->formatMemoryData(); |
|
| 294 | + $files = $this->formatFileData(); |
|
| 295 | 295 | |
| 296 | 296 | $header = array( |
| 297 | 297 | 'console' => count($console['messages']), |
@@ -301,18 +301,18 @@ discard block |
||
| 301 | 301 | 'files' => $files['meta']['count'] |
| 302 | 302 | ); |
| 303 | 303 | |
| 304 | - $speed['messages'] = array_filter($console['messages'], function ($message) { |
|
| 304 | + $speed['messages'] = array_filter($console['messages'], function($message) { |
|
| 305 | 305 | return $message['type'] == 'speed'; |
| 306 | 306 | }); |
| 307 | 307 | |
| 308 | - $memory['messages'] = array_filter($console['messages'], function ($message) { |
|
| 308 | + $memory['messages'] = array_filter($console['messages'], function($message) { |
|
| 309 | 309 | return $message['type'] == 'memory'; |
| 310 | 310 | }); |
| 311 | 311 | |
| 312 | 312 | // todo is this really the best way to load these? |
| 313 | - $styles = file_get_contents(__DIR__ . "./../{$this->options['style_path']}"); |
|
| 314 | - $script = file_get_contents(__DIR__ . "./../{$this->options['script_path']}"); |
|
| 313 | + $styles = file_get_contents(__DIR__."./../{$this->options['style_path']}"); |
|
| 314 | + $script = file_get_contents(__DIR__."./../{$this->options['script_path']}"); |
|
| 315 | 315 | |
| 316 | - require_once __DIR__ .'/../asset/display.html'; |
|
| 316 | + require_once __DIR__.'/../asset/display.html'; |
|
| 317 | 317 | } |
| 318 | 318 | } |