Completed
Push — develop ( 8dee05 )
by Dmytro
20:08
created
core/vendor/illuminate/cache/ApcStore.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @param  \Illuminate\Cache\ApcWrapper  $apc
29 29
      * @param  string  $prefix
30
-     * @return void
30
+     * @return Store
31 31
      */
32 32
     public function __construct(ApcWrapper $apc, $prefix = '')
33 33
     {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @param  string  $key
57 57
      * @param  mixed   $value
58
-     * @param  float|int  $minutes
58
+     * @param  integer  $minutes
59 59
      * @return void
60 60
      */
61 61
     public function put($key, $value, $minutes)
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * Increment the value of an item in the cache.
68 68
      *
69 69
      * @param  string  $key
70
-     * @param  mixed   $value
70
+     * @param  integer   $value
71 71
      * @return int|bool
72 72
      */
73 73
     public function increment($key, $value = 1)
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * Decrement the value of an item in the cache.
80 80
      *
81 81
      * @param  string  $key
82
-     * @param  mixed   $value
82
+     * @param  integer   $value
83 83
      * @return int|bool
84 84
      */
85 85
     public function decrement($key, $value = 1)
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/ApcWrapper.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * Create a new APC wrapper instance.
16 16
      *
17
-     * @return void
17
+     * @return ApcWrapper
18 18
      */
19 19
     public function __construct()
20 20
     {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * Increment the value of an item in the cache.
50 50
      *
51 51
      * @param  string  $key
52
-     * @param  mixed   $value
52
+     * @param  integer   $value
53 53
      * @return int|bool
54 54
      */
55 55
     public function increment($key, $value)
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * Decrement the value of an item in the cache.
62 62
      *
63 63
      * @param  string  $key
64
-     * @param  mixed   $value
64
+     * @param  integer   $value
65 65
      * @return int|bool
66 66
      */
67 67
     public function decrement($key, $value)
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/ArrayStore.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @param  string  $key
33 33
      * @param  mixed   $value
34
-     * @param  float|int  $minutes
34
+     * @param  integer  $minutes
35 35
      * @return void
36 36
      */
37 37
     public function put($key, $value, $minutes)
@@ -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 int
48 48
      */
49 49
     public function increment($key, $value = 1)
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * Decrement the value of an item in the cache.
59 59
      *
60 60
      * @param  string  $key
61
-     * @param  mixed   $value
61
+     * @param  integer   $value
62 62
      * @return int
63 63
      */
64 64
     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
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function increment($key, $value = 1)
50 50
     {
51
-        $this->storage[$key] = ! isset($this->storage[$key])
51
+        $this->storage[$key] = !isset($this->storage[$key])
52 52
                 ? $value : ((int) $this->storage[$key]) + $value;
53 53
 
54 54
         return $this->storage[$key];
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/CacheManager.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * Get a cache driver instance.
63 63
      *
64 64
      * @param  string|null  $driver
65
-     * @return mixed
65
+     * @return \Illuminate\Contracts\Cache\Repository
66 66
      */
67 67
     public function driver($driver = null)
68 68
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * Create an instance of the APC cache driver.
125 125
      *
126 126
      * @param  array  $config
127
-     * @return \Illuminate\Cache\ApcStore
127
+     * @return Repository
128 128
      */
129 129
     protected function createApcDriver(array $config)
130 130
     {
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * Create an instance of the array cache driver.
138 138
      *
139
-     * @return \Illuminate\Cache\ArrayStore
139
+     * @return Repository
140 140
      */
141 141
     protected function createArrayDriver()
142 142
     {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      * Create an instance of the file cache driver.
148 148
      *
149 149
      * @param  array  $config
150
-     * @return \Illuminate\Cache\FileStore
150
+     * @return Repository
151 151
      */
152 152
     protected function createFileDriver(array $config)
153 153
     {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * Create an instance of the Memcached cache driver.
159 159
      *
160 160
      * @param  array  $config
161
-     * @return \Illuminate\Cache\MemcachedStore
161
+     * @return Repository
162 162
      */
163 163
     protected function createMemcachedDriver(array $config)
164 164
     {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * Create an instance of the Null cache driver.
179 179
      *
180
-     * @return \Illuminate\Cache\NullStore
180
+     * @return Repository
181 181
      */
182 182
     protected function createNullDriver()
183 183
     {
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      * Create an instance of the Redis cache driver.
189 189
      *
190 190
      * @param  array  $config
191
-     * @return \Illuminate\Cache\RedisStore
191
+     * @return Repository
192 192
      */
193 193
     protected function createRedisDriver(array $config)
194 194
     {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * Create an instance of the database cache driver.
204 204
      *
205 205
      * @param  array  $config
206
-     * @return \Illuminate\Cache\DatabaseStore
206
+     * @return Repository
207 207
      */
208 208
     protected function createDatabaseDriver(array $config)
209 209
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 namespace Illuminate\Cache;
4 4
 
5 5
 use Closure;
6
-use InvalidArgumentException;
7
-use Illuminate\Contracts\Cache\Store;
8 6
 use Illuminate\Contracts\Cache\Factory as FactoryContract;
7
+use Illuminate\Contracts\Cache\Store;
9 8
 use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
9
+use InvalidArgumentException;
10 10
 
11 11
 /**
12 12
  * @mixin \Illuminate\Contracts\Cache\Repository
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/CacheServiceProvider.php 3 patches
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
      * Get the services provided by the provider.
38 38
      *
39
-     * @return array
39
+     * @return string[]
40 40
      */
41 41
     public function provides()
42 42
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,15 +20,15 @@
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        $this->app->singleton('cache', function ($app) {
23
+        $this->app->singleton('cache', function($app){
24 24
             return new CacheManager($app);
25 25
         });
26 26
 
27
-        $this->app->singleton('cache.store', function ($app) {
27
+        $this->app->singleton('cache.store', function($app){
28 28
             return $app['cache']->driver();
29 29
         });
30 30
 
31
-        $this->app->singleton('memcached.connector', function () {
31
+        $this->app->singleton('memcached.connector', function(){
32 32
             return new MemcachedConnector;
33 33
         });
34 34
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,15 +20,15 @@
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        $this->app->singleton('cache', function ($app) {
23
+        $this->app->singleton('cache', function ($app){
24 24
             return new CacheManager($app);
25 25
         });
26 26
 
27
-        $this->app->singleton('cache.store', function ($app) {
27
+        $this->app->singleton('cache.store', function ($app){
28 28
             return $app['cache']->driver();
29 29
         });
30 30
 
31
-        $this->app->singleton('memcached.connector', function () {
31
+        $this->app->singleton('memcached.connector', function (){
32 32
             return new MemcachedConnector;
33 33
         });
34 34
     }
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/Console/CacheTableCommand.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Illuminate\Cache\Console;
4 4
 
5 5
 use Illuminate\Console\Command;
6
-use Illuminate\Support\Composer;
7 6
 use Illuminate\Filesystem\Filesystem;
7
+use Illuminate\Support\Composer;
8 8
 
9 9
 class CacheTableCommand extends Command
10 10
 {
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/Console/ClearCommand.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Cache\Console;
4 4
 
5
-use Illuminate\Console\Command;
6 5
 use Illuminate\Cache\CacheManager;
6
+use Illuminate\Console\Command;
7 7
 use Illuminate\Filesystem\Filesystem;
8
-use Symfony\Component\Console\Input\InputOption;
9 8
 use Symfony\Component\Console\Input\InputArgument;
9
+use Symfony\Component\Console\Input\InputOption;
10 10
 
11 11
 class ClearCommand extends Command
12 12
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      */
83 83
     public function flushFacades()
84 84
     {
85
-        if (! $this->files->exists($storagePath = storage_path('framework/cache'))) {
85
+        if (!$this->files->exists($storagePath = storage_path('framework/cache'))) {
86 86
             return;
87 87
         }
88 88
 
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/Console/ForgetCommand.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Cache\Console;
4 4
 
5
-use Illuminate\Console\Command;
6 5
 use Illuminate\Cache\CacheManager;
6
+use Illuminate\Console\Command;
7 7
 
8 8
 class ForgetCommand extends Command
9 9
 {
Please login to merge, or discard this patch.
core/vendor/illuminate/cache/DatabaseStore.php 4 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @param  \Illuminate\Database\ConnectionInterface  $connection
40 40
      * @param  string  $table
41 41
      * @param  string  $prefix
42
-     * @return void
42
+     * @return Store
43 43
      */
44 44
     public function __construct(ConnectionInterface $connection, $table, $prefix = '')
45 45
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @param  string  $key
88 88
      * @param  mixed   $value
89
-     * @param  float|int  $minutes
89
+     * @param  integer  $minutes
90 90
      * @return void
91 91
      */
92 92
     public function put($key, $value, $minutes)
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * Increment the value of an item in the cache.
109 109
      *
110 110
      * @param  string  $key
111
-     * @param  mixed   $value
111
+     * @param  integer   $value
112 112
      * @return int|bool
113 113
      */
114 114
     public function increment($key, $value = 1)
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * Decrement the value of an item in the cache.
123 123
      *
124 124
      * @param  string  $key
125
-     * @param  mixed   $value
125
+     * @param  integer   $value
126 126
      * @return int|bool
127 127
      */
128 128
     public function decrement($key, $value = 1)
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      * Increment or decrement an item in the cache.
137 137
      *
138 138
      * @param  string  $key
139
-     * @param  mixed  $value
139
+     * @param  integer  $value
140 140
      * @param  \Closure  $callback
141 141
      * @return int|bool
142 142
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Closure;
6 6
 use Exception;
7 7
 use Illuminate\Contracts\Cache\Store;
8
-use Illuminate\Support\InteractsWithTime;
9 8
 use Illuminate\Database\ConnectionInterface;
9
+use Illuminate\Support\InteractsWithTime;
10 10
 
11 11
 class DatabaseStore implements Store
12 12
 {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function increment($key, $value = 1)
115 115
     {
116
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
116
+        return $this->incrementOrDecrement($key, $value, function($current, $value){
117 117
             return $current + $value;
118 118
         });
119 119
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function decrement($key, $value = 1)
129 129
     {
130
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
130
+        return $this->incrementOrDecrement($key, $value, function($current, $value){
131 131
             return $current - $value;
132 132
         });
133 133
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     protected function incrementOrDecrement($key, $value, Closure $callback)
144 144
     {
145
-        return $this->connection->transaction(function () use ($key, $value, $callback) {
145
+        return $this->connection->transaction(function() use ($key, $value, $callback) {
146 146
             $prefixed = $this->prefix.$key;
147 147
 
148 148
             $cache = $this->table()->where('key', $prefixed)
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             // so we do not have to recreate all this logic in each of the functions.
165 165
             $new = $callback((int) $current, $value);
166 166
 
167
-            if (! is_numeric($current)) {
167
+            if (!is_numeric($current)) {
168 168
                 return false;
169 169
             }
170 170
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function increment($key, $value = 1)
115 115
     {
116
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
116
+        return $this->incrementOrDecrement($key, $value, function ($current, $value){
117 117
             return $current + $value;
118 118
         });
119 119
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function decrement($key, $value = 1)
129 129
     {
130
-        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
130
+        return $this->incrementOrDecrement($key, $value, function ($current, $value){
131 131
             return $current - $value;
132 132
         });
133 133
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     protected function incrementOrDecrement($key, $value, Closure $callback)
144 144
     {
145
-        return $this->connection->transaction(function () use ($key, $value, $callback) {
145
+        return $this->connection->transaction(function () use ($key, $value, $callback){
146 146
             $prefixed = $this->prefix.$key;
147 147
 
148 148
             $cache = $this->table()->where('key', $prefixed)
Please login to merge, or discard this patch.