@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | ) |
| 48 | 48 | ); |
| 49 | 49 | foreach ($console->getLogs() as $log) { |
| 50 | - switch($log['type']) { |
|
| 50 | + switch ($log['type']) { |
|
| 51 | 51 | case 'log': |
| 52 | 52 | $message = array( |
| 53 | 53 | 'message' => print_r($log['data'], true), |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | break; |
| 58 | 58 | case 'memory': |
| 59 | 59 | $message = array( |
| 60 | - 'message' => (!empty($log['data_type']) ? "{$log['data_type']}: " : '') . $log['name'], |
|
| 60 | + 'message' => (!empty($log['data_type']) ? "{$log['data_type']}: " : '').$log['name'], |
|
| 61 | 61 | 'data' => self::getReadableMemory($log['data']), |
| 62 | 62 | 'type' => 'memory' |
| 63 | 63 | ); |
@@ -231,14 +231,14 @@ discard block |
||
| 231 | 231 | |
| 232 | 232 | $console = $output['console']; |
| 233 | 233 | $speed = $output['speed']; |
| 234 | - $speed['messages'] = array_filter($console['messages'], function ($message) { |
|
| 234 | + $speed['messages'] = array_filter($console['messages'], function($message) { |
|
| 235 | 235 | return $message['type'] == 'speed'; |
| 236 | 236 | }); |
| 237 | 237 | |
| 238 | 238 | // todo is this really the best way to load these? |
| 239 | - $styles = file_get_contents(__DIR__ . "./../{$this->options['style_path']}"); |
|
| 240 | - $script = file_get_contents(__DIR__ . "./../{$this->options['script_path']}"); |
|
| 239 | + $styles = file_get_contents(__DIR__."./../{$this->options['style_path']}"); |
|
| 240 | + $script = file_get_contents(__DIR__."./../{$this->options['script_path']}"); |
|
| 241 | 241 | |
| 242 | - require_once __DIR__ .'/../asset/display.tpl.php'; |
|
| 242 | + require_once __DIR__.'/../asset/display.tpl.php'; |
|
| 243 | 243 | } |
| 244 | 244 | } |