@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ) |
82 | 82 | ); |
83 | 83 | foreach ($this->console->getLogs() as $log) { |
84 | - switch($log['type']) { |
|
84 | + switch ($log['type']) { |
|
85 | 85 | case 'log': |
86 | 86 | $message = array( |
87 | 87 | 'message' => print_r($log['data'], true), |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | break; |
92 | 92 | case 'memory': |
93 | 93 | $message = array( |
94 | - 'message' => (!empty($log['data_type']) ? "{$log['data_type']}: " : '') . $log['name'], |
|
94 | + 'message' => (!empty($log['data_type']) ? "{$log['data_type']}: " : '').$log['name'], |
|
95 | 95 | 'data' => $this->getReadableMemory($log['data']), |
96 | 96 | 'type' => 'memory' |
97 | 97 | ); |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | */ |
307 | 307 | protected function filterMessages($messages, $type) |
308 | 308 | { |
309 | - return array_filter($messages, function ($message) use ($type) { |
|
309 | + return array_filter($messages, function($message) use ($type) { |
|
310 | 310 | return $message['type'] == $type; |
311 | 311 | }); |
312 | 312 | } |
@@ -315,9 +315,9 @@ discard block |
||
315 | 315 | { |
316 | 316 | $console = $this->formatConsoleData(); |
317 | 317 | $speedMeta = $this->getSpeedMeta(); |
318 | - $query= $this->formatQueryData(); |
|
318 | + $query = $this->formatQueryData(); |
|
319 | 319 | $memoryMeta = $this->getMemoryMeta(); |
320 | - $files= $this->formatFileData(); |
|
320 | + $files = $this->formatFileData(); |
|
321 | 321 | |
322 | 322 | $header = array( |
323 | 323 | 'console' => count($console['messages']), |
@@ -338,9 +338,9 @@ discard block |
||
338 | 338 | ); |
339 | 339 | |
340 | 340 | // todo is this really the best way to load these? |
341 | - $styles = file_get_contents(__DIR__ . "/../{$this->options['style_path']}"); |
|
342 | - $script = file_get_contents(__DIR__ . "/../{$this->options['script_path']}"); |
|
341 | + $styles = file_get_contents(__DIR__."/../{$this->options['style_path']}"); |
|
342 | + $script = file_get_contents(__DIR__."/../{$this->options['script_path']}"); |
|
343 | 343 | |
344 | - require_once __DIR__ .'/../asset/display.html'; |
|
344 | + require_once __DIR__.'/../asset/display.html'; |
|
345 | 345 | } |
346 | 346 | } |