Passed
Push — master ( 667c74...5caefd )
by Alexander
04:36
created
src/components/Http/Concerns/InteractsWithInput.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -302,13 +302,13 @@
 block discarded – undo
302 302
     }
303 303
 
304 304
     /**
305
-	 * Remove a parameter array item.
306
-	 *
307
-	 * @param  string  $key 
308
-	 *
309
-	 * @return void
310
-	 */
311
-	public function remove($key)
305
+     * Remove a parameter array item.
306
+     *
307
+     * @param  string  $key 
308
+     *
309
+     * @return void
310
+     */
311
+    public function remove($key)
312 312
     {
313 313
         return $this->getInputSource()->remove($key);
314 314
     }
Please login to merge, or discard this patch.
src/components/Http/Cookie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
274 274
         
275 275
         // unless the domain already starts with a dot
276 276
         if ($domain[0] !== '.') {
277
-            $domain = '.' . $domain;
277
+            $domain = '.'.$domain;
278 278
         }
279 279
         
280 280
         // return the normalized domain
Please login to merge, or discard this patch.
src/components/Version/Version.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,6 +85,6 @@
 block discarded – undo
85 85
     public static function longVersion(): string
86 86
     {
87 87
         return self::COPY.' '.self::YEAR.' '.self::COPYRIGHT.' - '.self::NAME.' ' .self::RELEASE. ' '. 
88
-               self::STATUS.' [ '.self::CODENAME.' ] '.self::RELEASEDATE;
88
+                self::STATUS.' [ '.self::CODENAME.' ] '.self::RELEASEDATE;
89 89
     }
90 90
 }
91 91
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      */
85 85
     public static function longVersion(): string
86 86
     {
87
-        return self::COPY.' '.self::YEAR.' '.self::COPYRIGHT.' - '.self::NAME.' ' .self::RELEASE. ' '. 
87
+        return self::COPY.' '.self::YEAR.' '.self::COPYRIGHT.' - '.self::NAME.' '.self::RELEASE.' '. 
88 88
                self::STATUS.' [ '.self::CODENAME.' ] '.self::RELEASEDATE;
89 89
     }
90 90
 }
91 91
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Cache/CacheManager.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
      */
302 302
     public function getDefaultDriver(): string
303 303
     {
304
-       return $this->app['config']['cache.default'];
304
+        return $this->app['config']['cache.default'];
305 305
     }
306 306
     
307 307
     /**
Please login to merge, or discard this patch.
src/components/Cache/CacheRepository.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -472,7 +472,7 @@
 block discarded – undo
472 472
      */
473 473
     public function offsetSet($offset, $value): void
474 474
     {
475
-       $this->put($offset, $value, $this->cacheTime);
475
+        $this->put($offset, $value, $this->cacheTime);
476 476
     }
477 477
 
478 478
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      * 
280 280
      * @return int|bool
281 281
      */
282
-    public function increment(string $key, mixed $value = 1): int|bool
282
+    public function increment(string $key, mixed $value = 1): int | bool
283 283
     {
284 284
         return $this->store->increment($key, $value);
285 285
     }
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      * 
293 293
      * @return int|bool
294 294
      */
295
-    public function decrement(string $key, mixed $value = 1): int|bool
295
+    public function decrement(string $key, mixed $value = 1): int | bool
296 296
     {
297 297
         return $this->store->decrement($key, $value);
298 298
     }
Please login to merge, or discard this patch.
src/components/Cache/Concerns/CacheMultipleKeys.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $return = [];
40 40
         
41
-        $keys = collect($keys)->mapKeys(function ($value, $key) {
41
+        $keys = collect($keys)->mapKeys(function($value, $key) {
42 42
             return [is_string($key) ? $key : $value => is_string($key) ? $value : null];
43 43
         })->all();
44 44
         
Please login to merge, or discard this patch.
src/components/Cache/Store/ArrayStore.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
      * 
112 112
      * @return int|bool
113 113
      */
114
-    public function increment(string $key, mixed $value = 1): int|bool
114
+    public function increment(string $key, mixed $value = 1): int | bool
115 115
     {
116 116
         if ( ! is_null($existing = $this->get($key))) {
117
-            return take(((int) $existing) + $value, function ($incremented) use ($key) {
117
+            return take(((int) $existing) + $value, function($incremented) use ($key) {
118 118
                 $value = $this->serialized ? serialize($incremented) : $incremented;
119 119
                 
120 120
                 $this->storage[$key]['value'] = $value;
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * 
135 135
      * @return int|bool
136 136
      */
137
-    public function decrement(string $key, mixed $value = 1): int|bool
137
+    public function decrement(string $key, mixed $value = 1): int | bool
138 138
     {
139 139
         return $this->increment($key, $value * -1);
140 140
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,9 @@
 block discarded – undo
69 69
      */
70 70
     public function get(string $key)
71 71
     {
72
-        if ( ! isset($this->storage[$key])) return;
72
+        if ( ! isset($this->storage[$key])) {
73
+            return;
74
+        }
73 75
 
74 76
         $item = $this->storage[$key];
75 77
 
Please login to merge, or discard this patch.
src/components/Cache/Store/MemcachedStore.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $this->memcached = $memcached;
71 71
         $this->onVersion = (new ReflectionMethod('Memcached', 'getMulti'))
72
-                           ->getNumberOfParameters() == 2;
72
+                            ->getNumberOfParameters() == 2;
73 73
     }
74 74
 
75 75
     /**
@@ -201,13 +201,13 @@  discard block
 block discarded – undo
201 201
         return $this->memcached->decrement($this->prefix.$key, $value = 1);
202 202
     }
203 203
 
204
-     /**
205
-     * Deletes a specific item from the cache store.
206
-     * 
207
-     * @param  string  $key
208
-     * 
209
-     * @return mixed
210
-     */
204
+        /**
205
+         * Deletes a specific item from the cache store.
206
+         * 
207
+         * @param  string  $key
208
+         * 
209
+         * @return mixed
210
+         */
211 211
     public function delete(string $key): mixed
212 212
     {
213 213
         return $this->memcached->delete($this->prefix.$key);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function many(array $keys): array
111 111
     {
112
-        $prefixed = array_map(function ($key) {
112
+        $prefixed = array_map(function($key) {
113 113
             return $this->prefix.$key;
114 114
         }, $keys);
115 115
         
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * 
184 184
      * @return int|bool
185 185
      */
186
-    public function increment(string $key, mixed $value = 1): int|bool
186
+    public function increment(string $key, mixed $value = 1): int | bool
187 187
     {
188 188
         return $this->memcached->increment($this->prefix.$key, $value);
189 189
     }
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      * 
197 197
      * @return int|bool
198 198
      */
199
-    public function decrement(string $key, mixed $value = 1): int|bool
199
+    public function decrement(string $key, mixed $value = 1): int | bool
200 200
     {
201 201
         return $this->memcached->decrement($this->prefix.$key, $value = 1);
202 202
     }
Please login to merge, or discard this patch.
src/components/Cache/Store/FileStore.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -297,11 +297,11 @@
 block discarded – undo
297 297
         return $this->files;
298 298
     }
299 299
 
300
-     /**
301
-     * Gets the cache key prefix.
302
-     *
303
-     * @return string
304
-     */
300
+        /**
301
+         * Gets the cache key prefix.
302
+         *
303
+         * @return string
304
+         */
305 305
     public function getPrefix(): string
306 306
     {
307 307
         return '';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      * 
206 206
      * @return int|bool
207 207
      */
208
-    public function increment(string $key, mixed $value = 1): int|bool
208
+    public function increment(string $key, mixed $value = 1): int | bool
209 209
     {
210 210
         $raw = $this->getPayLoad($key);
211 211
         $int = ((int) $raw['data']) + $value;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      * 
224 224
      * @return int|bool
225 225
      */
226
-    public function decrement(string $key, mixed $value = 1): int|bool
226
+    public function decrement(string $key, mixed $value = 1): int | bool
227 227
     {
228 228
         return $this->increment($key, $value * -1);
229 229
     }
Please login to merge, or discard this patch.