@@ -103,7 +103,7 @@ |
||
103 | 103 | /** |
104 | 104 | * Handle command action. |
105 | 105 | * |
106 | - * @param array $argv |
|
106 | + * @param string $argv |
|
107 | 107 | * |
108 | 108 | * @return bool |
109 | 109 | */ |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public function handleArguments() |
134 | 134 | { |
135 | - $serverOptions = array_map(function ($option) { |
|
135 | + $serverOptions = array_map(function($option) { |
|
136 | 136 | return "$option:"; |
137 | 137 | }, Server::$validServerOptions); |
138 | 138 | |
@@ -334,17 +334,17 @@ discard block |
||
334 | 334 | { |
335 | 335 | error_reporting(-1); |
336 | 336 | |
337 | - set_error_handler(function ($level, $message, $file = '', $line = 0) { |
|
337 | + set_error_handler(function($level, $message, $file = '', $line = 0) { |
|
338 | 338 | if (error_reporting() & $level) { |
339 | 339 | throw new ErrorException($message, 0, $level, $file, $line); |
340 | 340 | } |
341 | 341 | }); |
342 | 342 | |
343 | - set_exception_handler(function ($e) { |
|
343 | + set_exception_handler(function($e) { |
|
344 | 344 | $this->handleUncaughtException($e); |
345 | 345 | }); |
346 | 346 | |
347 | - register_shutdown_function(function () { |
|
347 | + register_shutdown_function(function() { |
|
348 | 348 | $this->handleShutdown(); |
349 | 349 | }); |
350 | 350 | } |
@@ -331,7 +331,7 @@ |
||
331 | 331 | * @param Response $lumenResponse |
332 | 332 | * @param string $obContents |
333 | 333 | * |
334 | - * @return $this |
|
334 | + * @return Response |
|
335 | 335 | */ |
336 | 336 | protected function appendObContents(Response $lumenResponse, $obContents) |
337 | 337 | { |