@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Auto-loader configuration |
| 23 | 23 | */ |
| 24 | -require_once __DIR__ . '/../../src/Common/Config/ClassLoader.php'; |
|
| 24 | +require_once __DIR__.'/../../src/Common/Config/ClassLoader.php'; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Load application services |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | // register_shutdown_function([PhpError::class,'runtimeShutdown']); |
| 37 | 37 | // set_error_handler([PhpError::class,'errorHandler']); |
| 38 | 38 | |
| 39 | -if (class_exists(PrettyPageHandler::class)){ |
|
| 39 | +if (class_exists(PrettyPageHandler::class)) { |
|
| 40 | 40 | $whoops = new Run(); |
| 41 | 41 | $whoops->pushHandler(new PrettyPageHandler()); |
| 42 | 42 | $whoops->register(); |
@@ -65,11 +65,11 @@ discard block |
||
| 65 | 65 | $response = json_decode($response, true); |
| 66 | 66 | |
| 67 | 67 | $filename = $response['data']['filename'] ?? ''; |
| 68 | - if ( ! file_exists($filename)) { |
|
| 68 | + if (!file_exists($filename)) { |
|
| 69 | 69 | $response['messages'][] = 'Log file not found'; |
| 70 | 70 | } else { |
| 71 | 71 | $response['data']['filename'] = $filename; |
| 72 | - $response['data']['content'] = mb_convert_encoding('' . file_get_contents($filename), 'UTF-8', 'UTF-8'); |
|
| 72 | + $response['data']['content'] = mb_convert_encoding(''.file_get_contents($filename), 'UTF-8', 'UTF-8'); |
|
| 73 | 73 | unlink($filename); |
| 74 | 74 | } |
| 75 | 75 | |
@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | if (array_key_exists('filename', $response['data'])) { |
| 102 | 102 | $di = Di::getDefault(); |
| 103 | 103 | $downloadLink = $di->getShared('config')->path('www.downloadCacheDir'); |
| 104 | - $filename = $downloadLink . "/" . $response['data']['filename'] ?? ''; |
|
| 105 | - if ( ! file_exists($filename)) { |
|
| 104 | + $filename = $downloadLink."/".$response['data']['filename'] ?? ''; |
|
| 105 | + if (!file_exists($filename)) { |
|
| 106 | 106 | $response['messages'][] = 'File not found'; |
| 107 | 107 | } else { |
| 108 | 108 | $scheme = $this->request->getScheme(); |