@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
4 | -require_once __DIR__ . '/helpers/function-overrides.php'; |
|
5 | -require_once __DIR__ . '/helpers/LoggingPdo.php'; |
|
3 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
4 | +require_once __DIR__.'/helpers/function-overrides.php'; |
|
5 | +require_once __DIR__.'/helpers/LoggingPdo.php'; |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | break; |
145 | 145 | case 'memory': |
146 | 146 | $message = array( |
147 | - 'message' => (!empty($log['data_type']) ? "{$log['data_type']}: " : '') . $log['name'], |
|
147 | + 'message' => (!empty($log['data_type']) ? "{$log['data_type']}: " : '').$log['name'], |
|
148 | 148 | 'data' => $this->getReadableMemory($log['data']), |
149 | 149 | 'type' => 'memory' |
150 | 150 | ); |
@@ -195,11 +195,11 @@ discard block |
||
195 | 195 | public function getQueryMeta() |
196 | 196 | { |
197 | 197 | $queryCount = count($this->queryData); |
198 | - $queryTotalTime = array_reduce($this->queryData, function ($sum, $row) { |
|
198 | + $queryTotalTime = array_reduce($this->queryData, function($sum, $row) { |
|
199 | 199 | return $sum + $row['time']; |
200 | 200 | }, 0); |
201 | 201 | $queryTotalTime = $this->getReadableTime($queryTotalTime); |
202 | - $querySlowestTime = array_reduce($this->queryData, function ($slowest, $row) { |
|
202 | + $querySlowestTime = array_reduce($this->queryData, function($slowest, $row) { |
|
203 | 203 | return ($slowest < $row['time']) ? $row['time'] : $slowest; |
204 | 204 | }, 0); |
205 | 205 | $querySlowestTime = $this->getReadableTime($querySlowestTime); |
@@ -247,11 +247,11 @@ discard block |
||
247 | 247 | protected function getFileMeta() |
248 | 248 | { |
249 | 249 | $fileCount = count($this->fileData); |
250 | - $fileTotalSize = array_reduce($this->fileData, function ($sum, $row) { |
|
250 | + $fileTotalSize = array_reduce($this->fileData, function($sum, $row) { |
|
251 | 251 | return $sum + $row['size']; |
252 | 252 | }, 0); |
253 | 253 | $fileTotalSize = $this->getReadableMemory($fileTotalSize); |
254 | - $fileLargestSize = array_reduce($this->fileData, function ($largest, $row) { |
|
254 | + $fileLargestSize = array_reduce($this->fileData, function($largest, $row) { |
|
255 | 255 | return ($largest < $row['size']) ? $row['size'] : $largest; |
256 | 256 | }, 0); |
257 | 257 | $fileLargestSize = $this->getReadableMemory($fileLargestSize); |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | */ |
326 | 326 | protected function filterMessages($messages, $type) |
327 | 327 | { |
328 | - return array_filter($messages, function ($message) use ($type) { |
|
328 | + return array_filter($messages, function($message) use ($type) { |
|
329 | 329 | return $message['type'] == $type; |
330 | 330 | }); |
331 | 331 | } |
@@ -376,9 +376,9 @@ discard block |
||
376 | 376 | ); |
377 | 377 | |
378 | 378 | // todo is this really the best way to load these? |
379 | - $styles = file_get_contents(__DIR__ . "/../{$this->options['style_path']}"); |
|
380 | - $script = file_get_contents(__DIR__ . "/../{$this->options['script_path']}"); |
|
379 | + $styles = file_get_contents(__DIR__."/../{$this->options['style_path']}"); |
|
380 | + $script = file_get_contents(__DIR__."/../{$this->options['script_path']}"); |
|
381 | 381 | |
382 | - require_once __DIR__ .'/../asset/display.html'; |
|
382 | + require_once __DIR__.'/../asset/display.html'; |
|
383 | 383 | } |
384 | 384 | } |