Completed
Pull Request — master (#141)
by Bhanu
37:51 queued 34s
created
vendor/laravel/framework/src/Illuminate/Foundation/Application.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -738,7 +738,7 @@
 block discarded – undo
738 738
     /**
739 739
      * Register a new boot listener.
740 740
      *
741
-     * @param  mixed  $callback
741
+     * @param  Closure  $callback
742 742
      * @return void
743 743
      */
744 744
     public function booting($callback)
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
      */
541 541
     public function register($provider, $options = [], $force = false)
542 542
     {
543
-        if (($registered = $this->getProvider($provider)) && ! $force) {
543
+        if (($registered = $this->getProvider($provider)) && !$force) {
544 544
             return $registered;
545 545
         }
546 546
 
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
     {
583 583
         $name = is_string($provider) ? $provider : get_class($provider);
584 584
 
585
-        return Arr::first($this->serviceProviders, function ($key, $value) use ($name) {
585
+        return Arr::first($this->serviceProviders, function($key, $value) use ($name) {
586 586
             return $value instanceof $name;
587 587
         });
588 588
     }
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
      */
639 639
     public function loadDeferredProvider($service)
640 640
     {
641
-        if (! isset($this->deferredServices[$service])) {
641
+        if (!isset($this->deferredServices[$service])) {
642 642
             return;
643 643
         }
644 644
 
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
         // If the service provider has not already been loaded and registered we can
648 648
         // register it with the application and remove the service from this list
649 649
         // of deferred services, since it will already be loaded on subsequent.
650
-        if (! isset($this->loadedProviders[$provider])) {
650
+        if (!isset($this->loadedProviders[$provider])) {
651 651
             $this->registerDeferredProvider($provider, $service);
652 652
         }
653 653
     }
@@ -670,8 +670,8 @@  discard block
 block discarded – undo
670 670
 
671 671
         $this->register($instance = new $provider($this));
672 672
 
673
-        if (! $this->booted) {
674
-            $this->booting(function () use ($instance) {
673
+        if (!$this->booted) {
674
+            $this->booting(function() use ($instance) {
675 675
                 $this->bootProvider($instance);
676 676
             });
677 677
         }
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
         // finished. This is useful when ordering the boot-up processes we run.
737 737
         $this->fireAppCallbacks($this->bootingCallbacks);
738 738
 
739
-        array_walk($this->serviceProviders, function ($p) {
739
+        array_walk($this->serviceProviders, function($p) {
740 740
             $this->bootProvider($p);
741 741
         });
742 742
 
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
      */
1004 1004
     public function hasMonologConfigurator()
1005 1005
     {
1006
-        return ! is_null($this->monologConfigurator);
1006
+        return !is_null($this->monologConfigurator);
1007 1007
     }
1008 1008
 
1009 1009
     /**
@@ -1123,7 +1123,7 @@  discard block
 block discarded – undo
1123 1123
      */
1124 1124
     public function getNamespace()
1125 1125
     {
1126
-        if (! is_null($this->namespace)) {
1126
+        if (!is_null($this->namespace)) {
1127 1127
             return $this->namespace;
1128 1128
         }
1129 1129
 
Please login to merge, or discard this patch.
laravel/framework/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * Get the failed login response instance.
123 123
      *
124 124
      * @param \Illuminate\Http\Request  $request
125
-     * @return \Illuminate\Http\Response
125
+     * @return \Illuminate\Http\RedirectResponse
126 126
      */
127 127
     protected function sendFailedLoginResponse(Request $request)
128 128
     {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * Log the user out of the application.
161 161
      *
162
-     * @return \Illuminate\Http\Response
162
+     * @return \Illuminate\Http\RedirectResponse
163 163
      */
164 164
     public function getLogout()
165 165
     {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     /**
170 170
      * Log the user out of the application.
171 171
      *
172
-     * @return \Illuminate\Http\Response
172
+     * @return \Illuminate\Http\RedirectResponse
173 173
      */
174 174
     public function logout()
175 175
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         // If the login attempt was unsuccessful we will increment the number of attempts
79 79
         // to login and redirect the user back to the login form. Of course, when this
80 80
         // user surpasses their maximum number of attempts they will get locked out.
81
-        if ($throttles && ! $lockedOut) {
81
+        if ($throttles && !$lockedOut) {
82 82
             $this->incrementLoginAttempts($request);
83 83
         }
84 84
 
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Foundation/Auth/RegistersUsers.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * Handle a registration request for the application.
38 38
      *
39 39
      * @param  \Illuminate\Http\Request  $request
40
-     * @return \Illuminate\Http\Response
40
+     * @return \Illuminate\Http\RedirectResponse
41 41
      */
42 42
     public function postRegister(Request $request)
43 43
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * Handle a registration request for the application.
49 49
      *
50 50
      * @param  \Illuminate\Http\Request  $request
51
-     * @return \Illuminate\Http\Response
51
+     * @return \Illuminate\Http\RedirectResponse
52 52
      */
53 53
     public function register(Request $request)
54 54
     {
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Foundation/Auth/ResetsPasswords.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * Send a reset link to the given user.
44 44
      *
45 45
      * @param  \Illuminate\Http\Request  $request
46
-     * @return \Illuminate\Http\Response
46
+     * @return \Illuminate\Http\RedirectResponse
47 47
      */
48 48
     public function postEmail(Request $request)
49 49
     {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * Send a reset link to the given user.
55 55
      *
56 56
      * @param  \Illuminate\Http\Request  $request
57
-     * @return \Illuminate\Http\Response
57
+     * @return \Illuminate\Http\RedirectResponse
58 58
      */
59 59
     public function sendResetLinkEmail(Request $request)
60 60
     {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * Reset the given user's password.
155 155
      *
156 156
      * @param  \Illuminate\Http\Request  $request
157
-     * @return \Illuminate\Http\Response
157
+     * @return \Illuminate\Http\RedirectResponse
158 158
      */
159 159
     public function postReset(Request $request)
160 160
     {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * Reset the given user's password.
166 166
      *
167 167
      * @param  \Illuminate\Http\Request  $request
168
-     * @return \Illuminate\Http\Response
168
+     * @return \Illuminate\Http\RedirectResponse
169 169
      */
170 170
     public function reset(Request $request)
171 171
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     protected function resetEmailBuilder()
85 85
     {
86
-        return function (Message $message) {
86
+        return function(Message $message) {
87 87
             $message->subject($this->getEmailSubject());
88 88
         };
89 89
     }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
         $broker = $this->getBroker();
191 191
 
192
-        $response = Password::broker($broker)->reset($credentials, function ($user, $password) {
192
+        $response = Password::broker($broker)->reset($credentials, function($user, $password) {
193 193
             $this->resetPassword($user, $password);
194 194
         });
195 195
 
Please login to merge, or discard this patch.
laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      * the HTTP and Console kernels. But, fatal error exceptions must
68 68
      * be handled differently since they are not normal exceptions.
69 69
      *
70
-     * @param  \Throwable  $e
70
+     * @param  FatalErrorException  $e
71 71
      * @return void
72 72
      */
73 73
     public function handleException($e)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         register_shutdown_function([$this, 'handleShutdown']);
38 38
 
39
-        if (! $app->environment('testing')) {
39
+        if (!$app->environment('testing')) {
40 40
             ini_set('display_errors', 'Off');
41 41
         }
42 42
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function handleException($e)
74 74
     {
75
-        if (! $e instanceof Exception) {
75
+        if (!$e instanceof Exception) {
76 76
             $e = new FatalThrowableError($e);
77 77
         }
78 78
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function handleShutdown()
116 116
     {
117
-        if (! is_null($error = error_get_last()) && $this->isFatal($error['type'])) {
117
+        if (!is_null($error = error_get_last()) && $this->isFatal($error['type'])) {
118 118
             $this->handleException($this->fatalExceptionFromError($error, 0));
119 119
         }
120 120
     }
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
     /**
177 177
      * Get all of the commands registered with the console.
178 178
      *
179
-     * @return array
179
+     * @return \Symfony\Component\Console\Command\Command[]
180 180
      */
181 181
     public function all()
182 182
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function __construct(Application $app, Dispatcher $events)
68 68
     {
69
-        if (! defined('ARTISAN_BINARY')) {
69
+        if (!defined('ARTISAN_BINARY')) {
70 70
             define('ARTISAN_BINARY', 'artisan');
71 71
         }
72 72
 
73 73
         $this->app = $app;
74 74
         $this->events = $events;
75 75
 
76
-        $this->app->booted(function () {
76
+        $this->app->booted(function() {
77 77
             $this->defineConsoleSchedule();
78 78
         });
79 79
     }
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function bootstrap()
206 206
     {
207
-        if (! $this->app->hasBeenBootstrapped()) {
207
+        if (!$this->app->hasBeenBootstrapped()) {
208 208
             $this->app->bootstrapWith($this->bootstrappers());
209 209
         }
210 210
 
Please login to merge, or discard this patch.
laravel/framework/src/Illuminate/Foundation/Console/TinkerCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Get artisan commands to pass through to PsySH.
59 59
      *
60
-     * @return array
60
+     * @return \Symfony\Component\Console\Command\Command[]
61 61
      */
62 62
     protected function getCommands()
63 63
     {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * Get an array of Laravel tailored casters.
77 77
      *
78
-     * @return array
78
+     * @return callable[]
79 79
      */
80 80
     protected function getCasters()
81 81
     {
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Foundation/helpers.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      *
200 200
      * @param  array|string  $key
201 201
      * @param  mixed  $default
202
-     * @return mixed
202
+     * @return boolean
203 203
      */
204 204
     function config($key = null, $default = null)
205 205
     {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     /**
258 258
      * Generate a CSRF token form field.
259 259
      *
260
-     * @return string
260
+     * @return HtmlString
261 261
      */
262 262
     function csrf_field()
263 263
     {
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     /**
409 409
      * Fire an event and call the listeners.
410 410
      *
411
-     * @param  string|object  $event
411
+     * @param  Illuminate\Auth\Events\Lockout  $event
412 412
      * @param  mixed  $payload
413 413
      * @param  bool  $halt
414 414
      * @return array|null
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
      * Generate a form field to spoof the HTTP verb used by forms.
480 480
      *
481 481
      * @param  string  $method
482
-     * @return string
482
+     * @return HtmlString
483 483
      */
484 484
     function method_field($method)
485 485
     {
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
      * @param  string  $path
726 726
      * @param  mixed   $parameters
727 727
      * @param  bool    $secure
728
-     * @return Illuminate\Contracts\Routing\UrlGenerator|string
728
+     * @return string
729 729
      */
730 730
     function url($path = null, $parameters = [], $secure = null)
731 731
     {
Please login to merge, or discard this patch.
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 use Illuminate\Database\Eloquent\Factory as EloquentFactory;
14 14
 use Illuminate\Contracts\Validation\Factory as ValidationFactory;
15 15
 
16
-if (! function_exists('abort')) {
16
+if (!function_exists('abort')) {
17 17
     /**
18 18
      * Throw an HttpException with the given data.
19 19
      *
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     }
32 32
 }
33 33
 
34
-if (! function_exists('abort_if')) {
34
+if (!function_exists('abort_if')) {
35 35
     /**
36 36
      * Throw an HttpException with the given data if the given condition is true.
37 37
      *
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     }
53 53
 }
54 54
 
55
-if (! function_exists('abort_unless')) {
55
+if (!function_exists('abort_unless')) {
56 56
     /**
57 57
      * Throw an HttpException with the given data unless the given condition is true.
58 58
      *
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
      */
68 68
     function abort_unless($boolean, $code, $message = '', array $headers = [])
69 69
     {
70
-        if (! $boolean) {
70
+        if (!$boolean) {
71 71
             abort($code, $message, $headers);
72 72
         }
73 73
     }
74 74
 }
75 75
 
76
-if (! function_exists('action')) {
76
+if (!function_exists('action')) {
77 77
     /**
78 78
      * Generate a URL to a controller action.
79 79
      *
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     }
89 89
 }
90 90
 
91
-if (! function_exists('app')) {
91
+if (!function_exists('app')) {
92 92
     /**
93 93
      * Get the available container instance.
94 94
      *
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     }
107 107
 }
108 108
 
109
-if (! function_exists('app_path')) {
109
+if (!function_exists('app_path')) {
110 110
     /**
111 111
      * Get the path to the application folder.
112 112
      *
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     }
120 120
 }
121 121
 
122
-if (! function_exists('asset')) {
122
+if (!function_exists('asset')) {
123 123
     /**
124 124
      * Generate an asset path for the application.
125 125
      *
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     }
134 134
 }
135 135
 
136
-if (! function_exists('auth')) {
136
+if (!function_exists('auth')) {
137 137
     /**
138 138
      * Get the available auth instance.
139 139
      *
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     }
151 151
 }
152 152
 
153
-if (! function_exists('back')) {
153
+if (!function_exists('back')) {
154 154
     /**
155 155
      * Create a new redirect response to the previous location.
156 156
      *
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     }
165 165
 }
166 166
 
167
-if (! function_exists('base_path')) {
167
+if (!function_exists('base_path')) {
168 168
     /**
169 169
      * Get the path to the base of the install.
170 170
      *
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     }
178 178
 }
179 179
 
180
-if (! function_exists('bcrypt')) {
180
+if (!function_exists('bcrypt')) {
181 181
     /**
182 182
      * Hash the given value.
183 183
      *
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     }
192 192
 }
193 193
 
194
-if (! function_exists('config')) {
194
+if (!function_exists('config')) {
195 195
     /**
196 196
      * Get / set the specified configuration value.
197 197
      *
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     }
216 216
 }
217 217
 
218
-if (! function_exists('config_path')) {
218
+if (!function_exists('config_path')) {
219 219
     /**
220 220
      * Get the configuration path.
221 221
      *
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     }
229 229
 }
230 230
 
231
-if (! function_exists('cookie')) {
231
+if (!function_exists('cookie')) {
232 232
     /**
233 233
      * Create a new cookie instance.
234 234
      *
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     }
254 254
 }
255 255
 
256
-if (! function_exists('csrf_field')) {
256
+if (!function_exists('csrf_field')) {
257 257
     /**
258 258
      * Generate a CSRF token form field.
259 259
      *
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     }
266 266
 }
267 267
 
268
-if (! function_exists('csrf_token')) {
268
+if (!function_exists('csrf_token')) {
269 269
     /**
270 270
      * Get the CSRF token value.
271 271
      *
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     }
286 286
 }
287 287
 
288
-if (! function_exists('database_path')) {
288
+if (!function_exists('database_path')) {
289 289
     /**
290 290
      * Get the database path.
291 291
      *
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     }
299 299
 }
300 300
 
301
-if (! function_exists('decrypt')) {
301
+if (!function_exists('decrypt')) {
302 302
     /**
303 303
      * Decrypt the given value.
304 304
      *
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
     }
312 312
 }
313 313
 
314
-if (! function_exists('dispatch')) {
314
+if (!function_exists('dispatch')) {
315 315
     /**
316 316
      * Dispatch a job to its appropriate handler.
317 317
      *
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     }
325 325
 }
326 326
 
327
-if (! function_exists('elixir')) {
327
+if (!function_exists('elixir')) {
328 328
     /**
329 329
      * Get the path to a versioned Elixir file.
330 330
      *
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     }
354 354
 }
355 355
 
356
-if (! function_exists('encrypt')) {
356
+if (!function_exists('encrypt')) {
357 357
     /**
358 358
      * Encrypt the given value.
359 359
      *
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
     }
367 367
 }
368 368
 
369
-if (! function_exists('env')) {
369
+if (!function_exists('env')) {
370 370
     /**
371 371
      * Gets the value of an environment variable. Supports boolean, empty and null.
372 372
      *
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     }
409 409
 }
410 410
 
411
-if (! function_exists('event')) {
411
+if (!function_exists('event')) {
412 412
     /**
413 413
      * Fire an event and call the listeners.
414 414
      *
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
     }
424 424
 }
425 425
 
426
-if (! function_exists('factory')) {
426
+if (!function_exists('factory')) {
427 427
     /**
428 428
      * Create a model factory builder for a given class, name, and amount.
429 429
      *
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
     }
447 447
 }
448 448
 
449
-if (! function_exists('info')) {
449
+if (!function_exists('info')) {
450 450
     /**
451 451
      * Write some information to the log.
452 452
      *
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
     }
461 461
 }
462 462
 
463
-if (! function_exists('logger')) {
463
+if (!function_exists('logger')) {
464 464
     /**
465 465
      * Log a debug message to the logs.
466 466
      *
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
     }
479 479
 }
480 480
 
481
-if (! function_exists('method_field')) {
481
+if (!function_exists('method_field')) {
482 482
     /**
483 483
      * Generate a form field to spoof the HTTP verb used by forms.
484 484
      *
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
     }
492 492
 }
493 493
 
494
-if (! function_exists('old')) {
494
+if (!function_exists('old')) {
495 495
     /**
496 496
      * Retrieve an old input item.
497 497
      *
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
     }
506 506
 }
507 507
 
508
-if (! function_exists('policy')) {
508
+if (!function_exists('policy')) {
509 509
     /**
510 510
      * Get a policy instance for a given class.
511 511
      *
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
     }
521 521
 }
522 522
 
523
-if (! function_exists('public_path')) {
523
+if (!function_exists('public_path')) {
524 524
     /**
525 525
      * Get the path to the public folder.
526 526
      *
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
     }
534 534
 }
535 535
 
536
-if (! function_exists('redirect')) {
536
+if (!function_exists('redirect')) {
537 537
     /**
538 538
      * Get an instance of the redirector.
539 539
      *
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
     }
554 554
 }
555 555
 
556
-if (! function_exists('request')) {
556
+if (!function_exists('request')) {
557 557
     /**
558 558
      * Get an instance of the current request or an input item from the request.
559 559
      *
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
     }
572 572
 }
573 573
 
574
-if (! function_exists('resource_path')) {
574
+if (!function_exists('resource_path')) {
575 575
     /**
576 576
      * Get the path to the resources folder.
577 577
      *
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
     }
585 585
 }
586 586
 
587
-if (! function_exists('response')) {
587
+if (!function_exists('response')) {
588 588
     /**
589 589
      * Return a new response from the application.
590 590
      *
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
     }
606 606
 }
607 607
 
608
-if (! function_exists('route')) {
608
+if (!function_exists('route')) {
609 609
     /**
610 610
      * Generate a URL to a named route.
611 611
      *
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
     }
622 622
 }
623 623
 
624
-if (! function_exists('secure_asset')) {
624
+if (!function_exists('secure_asset')) {
625 625
     /**
626 626
      * Generate an asset path for the application.
627 627
      *
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
     }
635 635
 }
636 636
 
637
-if (! function_exists('secure_url')) {
637
+if (!function_exists('secure_url')) {
638 638
     /**
639 639
      * Generate a HTTPS url for the application.
640 640
      *
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
     }
649 649
 }
650 650
 
651
-if (! function_exists('session')) {
651
+if (!function_exists('session')) {
652 652
     /**
653 653
      * Get / set the specified session value.
654 654
      *
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
     }
673 673
 }
674 674
 
675
-if (! function_exists('storage_path')) {
675
+if (!function_exists('storage_path')) {
676 676
     /**
677 677
      * Get the path to the storage folder.
678 678
      *
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
     }
686 686
 }
687 687
 
688
-if (! function_exists('trans')) {
688
+if (!function_exists('trans')) {
689 689
     /**
690 690
      * Translate the given message.
691 691
      *
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
     }
706 706
 }
707 707
 
708
-if (! function_exists('trans_choice')) {
708
+if (!function_exists('trans_choice')) {
709 709
     /**
710 710
      * Translates the given message based on a count.
711 711
      *
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
     }
723 723
 }
724 724
 
725
-if (! function_exists('url')) {
725
+if (!function_exists('url')) {
726 726
     /**
727 727
      * Generate a url for the application.
728 728
      *
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
     }
742 742
 }
743 743
 
744
-if (! function_exists('validator')) {
744
+if (!function_exists('validator')) {
745 745
     /**
746 746
      * Create a new Validator instance.
747 747
      *
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
     }
764 764
 }
765 765
 
766
-if (! function_exists('view')) {
766
+if (!function_exists('view')) {
767 767
     /**
768 768
      * Get the evaluated view contents for the given view.
769 769
      *
Please login to merge, or discard this patch.
framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      *
50 50
      * @param  \Illuminate\Http\Request  $request
51 51
      * @param  \Closure  $next
52
-     * @return mixed
52
+     * @return \Illuminate\Http\Response
53 53
      *
54 54
      * @throws \Illuminate\Session\TokenMismatchException
55 55
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,11 +110,11 @@
 block discarded – undo
110 110
 
111 111
         $token = $request->input('_token') ?: $request->header('X-CSRF-TOKEN');
112 112
 
113
-        if (! $token && $header = $request->header('X-XSRF-TOKEN')) {
113
+        if (!$token && $header = $request->header('X-XSRF-TOKEN')) {
114 114
             $token = $this->encrypter->decrypt($header);
115 115
         }
116 116
 
117
-        if (! is_string($sessionToken) || ! is_string($token)) {
117
+        if (!is_string($sessionToken) || !is_string($token)) {
118 118
             return false;
119 119
         }
120 120
 
Please login to merge, or discard this patch.