Completed
Push — master ( 724113...779cfb )
by Elf
03:51
created
src/Exceptions/Handler.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.