@@ -19,7 +19,6 @@ discard block |
||
19 | 19 | * |
20 | 20 | * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
21 | 21 | * |
22 | - * @param \Exception $exception |
|
23 | 22 | * @return void |
24 | 23 | */ |
25 | 24 | public function report(Exception $e) |
@@ -194,7 +193,7 @@ discard block |
||
194 | 193 | /** |
195 | 194 | * Create an API response. |
196 | 195 | * |
197 | - * @param mixed $message |
|
196 | + * @param string $message |
|
198 | 197 | * @param int $code |
199 | 198 | * @param \Exception $e |
200 | 199 | * @return \ElfSundae\Laravel\Api\Http\ApiResponse |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | ]; |
60 | 60 | |
61 | 61 | if ($this->container->runningInConsole()) { |
62 | - $info['Command'] = implode(' ', $request->server('argv', [])); |
|
62 | + $info[ 'Command' ] = implode(' ', $request->server('argv', [ ])); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return $info; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | protected function convertExceptionToResponse(Exception $e) |
173 | 173 | { |
174 | - if (request()->expectsJson() && ! $this->container->make('config')->get('app.debug')) { |
|
174 | + if (request()->expectsJson() && !$this->container->make('config')->get('app.debug')) { |
|
175 | 175 | return $this->convertExceptionToApiResponse($e); |
176 | 176 | } |
177 | 177 |