@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | { |
| 208 | 208 | $application = new \Mezon\Application\Application(); |
| 209 | 209 | |
| 210 | - $application->fly = function () { |
|
| 210 | + $application->fly = function() { |
|
| 211 | 211 | return 'OK!'; |
| 212 | 212 | }; |
| 213 | 213 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | // setup |
| 233 | 233 | $application = new \Mezon\Application\Application(); |
| 234 | 234 | |
| 235 | - $application->fly = function () { |
|
| 235 | + $application->fly = function() { |
|
| 236 | 236 | return 'OK!'; |
| 237 | 237 | }; |
| 238 | 238 | |
@@ -44,12 +44,12 @@ discard block |
||
| 44 | 44 | $reflector = new \ReflectionClass(get_class($this)); |
| 45 | 45 | $classPath = dirname($reflector->getFileName()); |
| 46 | 46 | |
| 47 | - if (file_exists($classPath.'/conf/routes.php')) { |
|
| 48 | - $this->loadRoutesFromConfig($classPath.'/conf/routes.php'); |
|
| 47 | + if (file_exists($classPath . '/conf/routes.php')) { |
|
| 48 | + $this->loadRoutesFromConfig($classPath . '/conf/routes.php'); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - if (file_exists($classPath.'/conf/routes.json')) { |
|
| 52 | - $this->loadRoutesFromConfig($classPath.'/conf/routes.json'); |
|
| 51 | + if (file_exists($classPath . '/conf/routes.json')) { |
|
| 52 | + $this->loadRoutesFromConfig($classPath . '/conf/routes.json'); |
|
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | */ |
| 185 | 185 | public function handleException(\Exception $e): void |
| 186 | 186 | { |
| 187 | - print('<pre>' . $e->getMessage().'<br/>'.$this->formatCallStack($e)); |
|
| 187 | + print('<pre>' . $e->getMessage() . '<br/>' . $this->formatCallStack($e)); |
|
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | /** |