Completed
Pull Request — master (#141)
by Bhanu
37:51 queued 34s
created
vendor/laravel/framework/src/Illuminate/Session/CookieSessionHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      *
28 28
      * @param  \Illuminate\Contracts\Cookie\QueueingFactory  $cookie
29 29
      * @param  int  $minutes
30
-     * @return void
30
+     * @return SessionHandlerInterface
31 31
      */
32 32
     public function __construct(CookieJar $cookie, $minutes)
33 33
     {
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * @param  \Illuminate\Database\ConnectionInterface  $connection
44 44
      * @param  string  $table
45 45
      * @param  \Illuminate\Contracts\Container\Container|null  $container
46
-     * @return void
46
+     * @return SessionHandlerInterface
47 47
      */
48 48
     public function __construct(ConnectionInterface $connection, $table, Container $container = null)
49 49
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $payload = $this->getDefaultPayload($data);
91 91
 
92
-        if (! $this->exists) {
92
+        if (!$this->exists) {
93 93
             $this->read($sessionId);
94 94
         }
95 95
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $payload = ['payload' => base64_encode($data), 'last_activity' => time()];
116 116
 
117
-        if (! $container = $this->container) {
117
+        if (!$container = $this->container) {
118 118
             return $payload;
119 119
         }
120 120
 
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      *
28 28
      * @param  \Illuminate\Filesystem\Filesystem  $files
29 29
      * @param  string  $path
30
-     * @return void
30
+     * @return SessionHandlerInterface
31 31
      */
32 32
     public function __construct(Filesystem $files, $path)
33 33
     {
Please login to merge, or discard this patch.
laravel/framework/src/Illuminate/Session/LegacyDatabaseSessionHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      *
37 37
      * @param  \Illuminate\Database\ConnectionInterface  $connection
38 38
      * @param  string  $table
39
-     * @return void
39
+     * @return SessionHandlerInterface
40 40
      */
41 41
     public function __construct(ConnectionInterface $connection, $table)
42 42
     {
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Session/SessionManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      * Call a custom driver creator.
12 12
      *
13 13
      * @param  string  $driver
14
-     * @return mixed
14
+     * @return Store
15 15
      */
16 16
     protected function callCustomCreator($driver)
17 17
     {
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Session/Store.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@
 block discarded – undo
393 393
      * Push a value onto a session array.
394 394
      *
395 395
      * @param  string  $key
396
-     * @param  mixed   $value
396
+     * @param  string   $value
397 397
      * @return void
398 398
      */
399 399
     public function push($key, $value)
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $this->loadSession();
93 93
 
94
-        if (! $this->has('_token')) {
94
+        if (!$this->has('_token')) {
95 95
             $this->regenerateToken();
96 96
         }
97 97
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */
170 170
     public function setId($id)
171 171
     {
172
-        if (! $this->isValidId($id)) {
172
+        if (!$this->isValidId($id)) {
173 173
             $id = $this->generateSessionId();
174 174
         }
175 175
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     public function has($name)
312 312
     {
313
-        return ! is_null($this->get($name));
313
+        return !is_null($this->get($name));
314 314
     }
315 315
 
316 316
     /**
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
     {
344 344
         $old = $this->getOldInput($key);
345 345
 
346
-        return is_null($key) ? count($old) > 0 : ! is_null($old);
346
+        return is_null($key) ? count($old) > 0 : !is_null($old);
347 347
     }
348 348
 
349 349
     /**
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
      */
381 381
     public function put($key, $value = null)
382 382
     {
383
-        if (! is_array($key)) {
383
+        if (!is_array($key)) {
384 384
             $key = [$key => $value];
385 385
         }
386 386
 
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
      */
577 577
     public function getBag($name)
578 578
     {
579
-        return Arr::get($this->bags, $name, function () {
579
+        return Arr::get($this->bags, $name, function() {
580 580
             throw new InvalidArgumentException('Bag not registered.');
581 581
         });
582 582
     }
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Support/Manager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      * Call a custom driver creator.
95 95
      *
96 96
      * @param  string  $driver
97
-     * @return mixed
97
+     * @return \SessionHandlerInterface
98 98
      */
99 99
     protected function callCustomCreator($driver)
100 100
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         // If the given driver has not been created before, we will create the instances
60 60
         // here and cache it so we can return it next time very quickly. If there is
61 61
         // already a driver created by this name, we'll just return that instance.
62
-        if (! isset($this->drivers[$driver])) {
62
+        if (!isset($this->drivers[$driver])) {
63 63
             $this->drivers[$driver] = $this->createDriver($driver);
64 64
         }
65 65
 
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Translation/Translator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
      * Sort the replacements array.
172 172
      *
173 173
      * @param  array  $replace
174
-     * @return array
174
+     * @return Collection
175 175
      */
176 176
     protected function sortReplacements(array $replace)
177 177
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 $namespace, $group, $locale, $item, $replace
110 110
             );
111 111
 
112
-            if (! is_null($line)) {
112
+            if (!is_null($line)) {
113 113
                 break;
114 114
             }
115 115
         }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         // If the line doesn't exist, we will return back the key which was requested as
118 118
         // that will be quick to spot in the UI if language keys are wrong or missing
119 119
         // from the application's language files. Otherwise we can return the line.
120
-        if (! isset($line)) {
120
+        if (!isset($line)) {
121 121
             return $key;
122 122
         }
123 123
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     protected function sortReplacements(array $replace)
177 177
     {
178
-        return (new Collection($replace))->sortBy(function ($value, $key) {
178
+        return (new Collection($replace))->sortBy(function($value, $key) {
179 179
             return mb_strlen($key) * -1;
180 180
         });
181 181
     }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      */
304 304
     protected function parseLocale($locale)
305 305
     {
306
-        if (! is_null($locale)) {
306
+        if (!is_null($locale)) {
307 307
             return array_filter([$locale, $this->fallback]);
308 308
         }
309 309
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
      */
318 318
     public function getSelector()
319 319
     {
320
-        if (! isset($this->selector)) {
320
+        if (!isset($this->selector)) {
321 321
             $this->selector = new MessageSelector;
322 322
         }
323 323
 
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Validation/ValidationException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     /**
39 39
      * Get the underlying response instance.
40 40
      *
41
-     * @return \Symfony\Component\HttpFoundation\Response
41
+     * @return \Illuminate\Http\Response|null
42 42
      */
43 43
     public function getResponse()
44 44
     {
Please login to merge, or discard this patch.