Completed
Push — master ( 15ce87...ea53d5 )
by Bhanu
71:12 queued 36:53
created
vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * Get a cache store instance by name.
47 47
      *
48 48
      * @param  string|null  $name
49
-     * @return mixed
49
+     * @return \Illuminate\Contracts\Cache\Repository
50 50
      */
51 51
     public function store($name = null)
52 52
     {
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * Get a cache driver instance.
60 60
      *
61 61
      * @param  string  $driver
62
-     * @return mixed
62
+     * @return \Illuminate\Contracts\Cache\Repository
63 63
      */
64 64
     public function driver($driver = null)
65 65
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * Create an instance of the APC cache driver.
122 122
      *
123 123
      * @param  array  $config
124
-     * @return \Illuminate\Cache\ApcStore
124
+     * @return Repository
125 125
      */
126 126
     protected function createApcDriver(array $config)
127 127
     {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     /**
134 134
      * Create an instance of the array cache driver.
135 135
      *
136
-     * @return \Illuminate\Cache\ArrayStore
136
+     * @return Repository
137 137
      */
138 138
     protected function createArrayDriver()
139 139
     {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      * Create an instance of the file cache driver.
145 145
      *
146 146
      * @param  array  $config
147
-     * @return \Illuminate\Cache\FileStore
147
+     * @return Repository
148 148
      */
149 149
     protected function createFileDriver(array $config)
150 150
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * Create an instance of the Memcached cache driver.
156 156
      *
157 157
      * @param  array  $config
158
-     * @return \Illuminate\Cache\MemcachedStore
158
+     * @return Repository
159 159
      */
160 160
     protected function createMemcachedDriver(array $config)
161 161
     {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     /**
170 170
      * Create an instance of the Null cache driver.
171 171
      *
172
-     * @return \Illuminate\Cache\NullStore
172
+     * @return Repository
173 173
      */
174 174
     protected function createNullDriver()
175 175
     {
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * Create an instance of the Redis cache driver.
181 181
      *
182 182
      * @param  array  $config
183
-     * @return \Illuminate\Cache\RedisStore
183
+     * @return Repository
184 184
      */
185 185
     protected function createRedisDriver(array $config)
186 186
     {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * Create an instance of the database cache driver.
196 196
      *
197 197
      * @param  array  $config
198
-     * @return \Illuminate\Cache\DatabaseStore
198
+     * @return Repository
199 199
      */
200 200
     protected function createDatabaseDriver(array $config)
201 201
     {
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param  \Illuminate\Contracts\Encryption\Encrypter  $encrypter
48 48
      * @param  string  $table
49 49
      * @param  string  $prefix
50
-     * @return void
50
+     * @return Store
51 51
      */
52 52
     public function __construct(ConnectionInterface $connection, EncrypterContract $encrypter, $table, $prefix = '')
53 53
     {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * Retrieve an item from the cache by key.
62 62
      *
63 63
      * @param  string|array  $key
64
-     * @return mixed
64
+     * @return null|string
65 65
      */
66 66
     public function get($key)
67 67
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * Increment the value of an item in the cache.
118 118
      *
119 119
      * @param  string  $key
120
-     * @param  mixed   $value
120
+     * @param  integer   $value
121 121
      * @return int|bool
122 122
      */
123 123
     public function increment($key, $value = 1)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * Increment the value of an item in the cache.
132 132
      *
133 133
      * @param  string  $key
134
-     * @param  mixed   $value
134
+     * @param  integer   $value
135 135
      * @return int|bool
136 136
      */
137 137
     public function decrement($key, $value = 1)
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * Increment or decrement an item in the cache.
146 146
      *
147 147
      * @param  string  $key
148
-     * @param  mixed  $value
148
+     * @param  integer  $value
149 149
      * @param  \Closure  $callback
150 150
      * @return int|bool
151 151
      */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         // If we have a cache record we will check the expiration time against current
73 73
         // time on the system and see if the record has expired. If it has, we will
74 74
         // remove the records from the database table so it isn't returned again.
75
-        if (! is_null($cache)) {
75
+        if (!is_null($cache)) {
76 76
             if (is_array($cache)) {
77 77
                 $cache = (object) $cache;
78 78
             }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function increment($key, $value = 1)
124 124
     {
125
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
125
+        return $this->incrementOrDecrement($key, $value, function($current, $value) {
126 126
             return $current + $value;
127 127
         });
128 128
     }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function decrement($key, $value = 1)
138 138
     {
139
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
139
+        return $this->incrementOrDecrement($key, $value, function($current, $value) {
140 140
             return $current - $value;
141 141
         });
142 142
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     protected function incrementOrDecrement($key, $value, Closure $callback)
153 153
     {
154
-        return $this->connection->transaction(function () use ($key, $value, $callback) {
154
+        return $this->connection->transaction(function() use ($key, $value, $callback) {
155 155
             $prefixed = $this->prefix.$key;
156 156
 
157 157
             $cache = $this->table()->where('key', $prefixed)->lockForUpdate()->first();
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             $current = $this->encrypter->decrypt($cache->value);
168 168
             $new = $callback($current, $value);
169 169
 
170
-            if (! is_numeric($current)) {
170
+            if (!is_numeric($current)) {
171 171
                 return false;
172 172
             }
173 173
 
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Cache/FileStore.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @param  \Illuminate\Filesystem\Filesystem  $files
32 32
      * @param  string  $directory
33
-     * @return void
33
+     * @return Store
34 34
      */
35 35
     public function __construct(Filesystem $files, $directory)
36 36
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * Increment the value of an item in the cache.
122 122
      *
123 123
      * @param  string  $key
124
-     * @param  mixed   $value
124
+     * @param  integer   $value
125 125
      * @return int
126 126
      */
127 127
     public function increment($key, $value = 1)
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * Decrement the value of an item in the cache.
140 140
      *
141 141
      * @param  string  $key
142
-     * @param  mixed   $value
142
+     * @param  integer   $value
143 143
      * @return int
144 144
      */
145 145
     public function decrement($key, $value = 1)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
      */
115 115
     protected function createCacheDirectory($path)
116 116
     {
117
-        if (! $this->files->exists(dirname($path))) {
117
+        if (!$this->files->exists(dirname($path))) {
118 118
             $this->files->makeDirectory(dirname($path), 0777, true, true);
119 119
         }
120 120
     }
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param  \Illuminate\Redis\Database  $redis
35 35
      * @param  string  $prefix
36 36
      * @param  string  $connection
37
-     * @return void
37
+     * @return Store
38 38
      */
39 39
     public function __construct(Redis $redis, $prefix = '', $connection = 'default')
40 40
     {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * Increment the value of an item in the cache.
121 121
      *
122 122
      * @param  string  $key
123
-     * @param  mixed   $value
123
+     * @param  integer   $value
124 124
      * @return int
125 125
      */
126 126
     public function increment($key, $value = 1)
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * Decrement the value of an item in the cache.
133 133
      *
134 134
      * @param  string  $key
135
-     * @param  mixed   $value
135
+     * @param  integer   $value
136 136
      * @return int
137 137
      */
138 138
     public function decrement($key, $value = 1)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function get($key)
53 53
     {
54
-        if (! is_null($value = $this->connection()->get($this->prefix.$key))) {
54
+        if (!is_null($value = $this->connection()->get($this->prefix.$key))) {
55 55
             return is_numeric($value) ? $value : unserialize($value);
56 56
         }
57 57
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $return = [];
70 70
 
71
-        $prefixedKeys = array_map(function ($key) {
71
+        $prefixedKeys = array_map(function($key) {
72 72
             return $this->prefix.$key;
73 73
         }, $keys);
74 74
 
@@ -235,6 +235,6 @@  discard block
 block discarded – undo
235 235
      */
236 236
     public function setPrefix($prefix)
237 237
     {
238
-        $this->prefix = ! empty($prefix) ? $prefix.':' : '';
238
+        $this->prefix = !empty($prefix) ? $prefix.':' : '';
239 239
     }
240 240
 }
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Cache/TaggedCache.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * Increment the value of an item in the cache.
44 44
      *
45 45
      * @param  string  $key
46
-     * @param  mixed   $value
46
+     * @param  integer   $value
47 47
      * @return void
48 48
      */
49 49
     public function increment($key, $value = 1)
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * Increment the value of an item in the cache.
56 56
      *
57 57
      * @param  string  $key
58
-     * @param  mixed   $value
58
+     * @param  integer   $value
59 59
      * @return void
60 60
      */
61 61
     public function decrement($key, $value = 1)
@@ -75,6 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     /**
77 77
      * {@inheritdoc}
78
+     * @param string $key
78 79
      */
79 80
     protected function itemKey($key)
80 81
     {
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Cache/TagSet.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @param  \Illuminate\Contracts\Cache\Store  $store
27 27
      * @param  array  $names
28
-     * @return void
28
+     * @return TagSet
29 29
      */
30 30
     public function __construct(Store $store, array $names = [])
31 31
     {
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Console/GeneratorCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * Execute the console command.
47 47
      *
48
-     * @return bool|null
48
+     * @return false|null
49 49
      */
50 50
     public function fire()
51 51
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
      */
133 133
     protected function makeDirectory($path)
134 134
     {
135
-        if (! $this->files->isDirectory(dirname($path))) {
135
+        if (!$this->files->isDirectory(dirname($path))) {
136 136
             $this->files->makeDirectory(dirname($path), 0777, true, true);
137 137
         }
138 138
     }
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -548,7 +548,7 @@
 block discarded – undo
548 548
     /**
549 549
      * Set the days of the week the command should run on.
550 550
      *
551
-     * @param  array|mixed  $days
551
+     * @param  integer  $days
552 552
      * @return $this
553 553
      */
554 554
     public function days($days)
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      */
231 231
     public function isDue($app)
232 232
     {
233
-        if (! $this->runsInMaintenanceMode() && $app->isDownForMaintenance()) {
233
+        if (!$this->runsInMaintenanceMode() && $app->isDownForMaintenance()) {
234 234
             return false;
235 235
         }
236 236
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     public function filtersPass($app)
264 264
     {
265 265
         foreach ($this->filters as $callback) {
266
-            if (! $app->call($callback)) {
266
+            if (!$app->call($callback)) {
267 267
                 return false;
268 268
             }
269 269
         }
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
     {
633 633
         $this->withoutOverlapping = true;
634 634
 
635
-        return $this->skip(function () {
635
+        return $this->skip(function() {
636 636
             return file_exists($this->mutexPath());
637 637
         });
638 638
     }
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
 
708 708
         $addresses = is_array($addresses) ? $addresses : func_get_args();
709 709
 
710
-        return $this->then(function (Mailer $mailer) use ($addresses, $onlyIfOutputExists) {
710
+        return $this->then(function(Mailer $mailer) use ($addresses, $onlyIfOutputExists) {
711 711
             $this->emailOutput($mailer, $addresses, $onlyIfOutputExists);
712 712
         });
713 713
     }
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
             return;
742 742
         }
743 743
 
744
-        $mailer->raw($text, function ($m) use ($addresses) {
744
+        $mailer->raw($text, function($m) use ($addresses) {
745 745
             $m->subject($this->getEmailSubject());
746 746
 
747 747
             foreach ($addresses as $address) {
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
      */
773 773
     public function pingBefore($url)
774 774
     {
775
-        return $this->before(function () use ($url) {
775
+        return $this->before(function() use ($url) {
776 776
             (new HttpClient)->get($url);
777 777
         });
778 778
     }
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
      */
799 799
     public function thenPing($url)
800 800
     {
801
-        return $this->then(function () use ($url) {
801
+        return $this->then(function() use ($url) {
802 802
             (new HttpClient)->get($url);
803 803
         });
804 804
     }
Please login to merge, or discard this patch.
vendor/laravel/framework/src/Illuminate/Container/Container.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
      * @param  string  $abstract
436 436
      * @param  mixed   $target
437 437
      * @param  string  $method
438
-     * @return mixed
438
+     * @return \Symfony\Component\HttpFoundation\Request
439 439
      */
440 440
     public function refresh($abstract, $target, $method)
441 441
     {
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
     /**
511 511
      * Determine if the given string is in Class@method syntax.
512 512
      *
513
-     * @param  mixed  $callback
513
+     * @param  callable  $callback
514 514
      * @return bool
515 515
      */
516 516
     protected function isCallableWithAtSign($callback)
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
      *
528 528
      * @param  callable|string  $callback
529 529
      * @param  array  $parameters
530
-     * @return array
530
+     * @return callable
531 531
      */
532 532
     protected function getMethodDependencies($callback, array $parameters = [])
533 533
     {
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         // If the factory is not a Closure, it means it is just a class name which is
202 202
         // bound into this container to the abstract type and we will just wrap it
203 203
         // up inside its own Closure to give us more convenience when extending.
204
-        if (! $concrete instanceof Closure) {
204
+        if (!$concrete instanceof Closure) {
205 205
             $concrete = $this->getClosure($abstract, $concrete);
206 206
         }
207 207
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     protected function getClosure($abstract, $concrete)
226 226
     {
227
-        return function ($c, $parameters = []) use ($abstract, $concrete) {
227
+        return function($c, $parameters = []) use ($abstract, $concrete) {
228 228
             $method = ($abstract == $concrete) ? 'build' : 'make';
229 229
 
230 230
             return $c->$method($concrete, $parameters);
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      */
255 255
     public function bindIf($abstract, $concrete = null, $shared = false)
256 256
     {
257
-        if (! $this->bound($abstract)) {
257
+        if (!$this->bound($abstract)) {
258 258
             $this->bind($abstract, $concrete, $shared);
259 259
         }
260 260
     }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      */
280 280
     public function share(Closure $closure)
281 281
     {
282
-        return function ($container) use ($closure) {
282
+        return function($container) use ($closure) {
283 283
             // We'll simply declare a static variable within the Closures and if it has
284 284
             // not been set we will execute the given Closures to resolve this value
285 285
             // and return it back to these consumers of the method as an instance.
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
         $tags = is_array($tags) ? $tags : array_slice(func_get_args(), 1);
362 362
 
363 363
         foreach ($tags as $tag) {
364
-            if (! isset($this->tags[$tag])) {
364
+            if (!isset($this->tags[$tag])) {
365 365
                 $this->tags[$tag] = [];
366 366
             }
367 367
 
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
      */
440 440
     public function refresh($abstract, $target, $method)
441 441
     {
442
-        return $this->rebinding($this->normalize($abstract), function ($app, $instance) use ($target, $method) {
442
+        return $this->rebinding($this->normalize($abstract), function($app, $instance) use ($target, $method) {
443 443
             $target->{$method}($instance);
444 444
         });
445 445
     }
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
      */
484 484
     public function wrap(Closure $callback, array $parameters = [])
485 485
     {
486
-        return function () use ($callback, $parameters) {
486
+        return function() use ($callback, $parameters) {
487 487
             return $this->call($callback, $parameters);
488 488
         };
489 489
     }
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
      */
516 516
     protected function isCallableWithAtSign($callback)
517 517
     {
518
-        if (! is_string($callback)) {
518
+        if (!is_string($callback)) {
519 519
             return false;
520 520
         }
521 521
 
@@ -664,14 +664,14 @@  discard block
 block discarded – undo
664 664
      */
665 665
     protected function getConcrete($abstract)
666 666
     {
667
-        if (! is_null($concrete = $this->getContextualConcrete($abstract))) {
667
+        if (!is_null($concrete = $this->getContextualConcrete($abstract))) {
668 668
             return $concrete;
669 669
         }
670 670
 
671 671
         // If we don't have a registered resolver or concrete for the type, we'll just
672 672
         // assume each type is a concrete name and will attempt to resolve it as is
673 673
         // since the container should be able to resolve concretes automatically.
674
-        if (! isset($this->bindings[$abstract])) {
674
+        if (!isset($this->bindings[$abstract])) {
675 675
             return $abstract;
676 676
         }
677 677
 
@@ -740,8 +740,8 @@  discard block
 block discarded – undo
740 740
         // If the type is not instantiable, the developer is attempting to resolve
741 741
         // an abstract type such as an Interface of Abstract Class and there is
742 742
         // no binding registered for the abstractions so we need to bail out.
743
-        if (! $reflector->isInstantiable()) {
744
-            if (! empty($this->buildStack)) {
743
+        if (!$reflector->isInstantiable()) {
744
+            if (!empty($this->buildStack)) {
745 745
                 $previous = implode(', ', $this->buildStack);
746 746
 
747 747
                 $message = "Target [$concrete] is not instantiable while building [$previous].";
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
      */
823 823
     protected function resolveNonClass(ReflectionParameter $parameter)
824 824
     {
825
-        if (! is_null($concrete = $this->getContextualConcrete('$'.$parameter->name))) {
825
+        if (!is_null($concrete = $this->getContextualConcrete('$'.$parameter->name))) {
826 826
             if ($concrete instanceof Closure) {
827 827
                 return call_user_func($concrete, $this);
828 828
             } else {
@@ -967,7 +967,7 @@  discard block
 block discarded – undo
967 967
 
968 968
         $expected = $function->getParameters()[0];
969 969
 
970
-        if (! $expected->getClass()) {
970
+        if (!$expected->getClass()) {
971 971
             return;
972 972
         }
973 973
 
@@ -1050,7 +1050,7 @@  discard block
 block discarded – undo
1050 1050
             return true;
1051 1051
         }
1052 1052
 
1053
-        if (! isset($this->bindings[$abstract]['shared'])) {
1053
+        if (!isset($this->bindings[$abstract]['shared'])) {
1054 1054
             return false;
1055 1055
         }
1056 1056
 
@@ -1190,8 +1190,8 @@  discard block
 block discarded – undo
1190 1190
         // If the value is not a Closure, we will make it one. This simply gives
1191 1191
         // more "drop-in" replacement functionality for the Pimple which this
1192 1192
         // container's simplest functions are base modeled and built after.
1193
-        if (! $value instanceof Closure) {
1194
-            $value = function () use ($value) {
1193
+        if (!$value instanceof Closure) {
1194
+            $value = function() use ($value) {
1195 1195
                 return $value;
1196 1196
             };
1197 1197
         }
Please login to merge, or discard this patch.