Passed
Push — v7 ( ebd842...f31319 )
by Georges
01:32
created
lib/Phpfastcache/Entities/DriverStatistic.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -135,10 +135,10 @@
 block discarded – undo
135 135
     public function getPublicDesc(): array
136 136
     {
137 137
         return [
138
-          'Info' => 'Cache Information',
139
-          'Size' => 'Cache Size',
140
-          'Data' => 'Cache items keys',
141
-          'RawData' => 'Cache raw data',
138
+            'Info' => 'Cache Information',
139
+            'Size' => 'Cache Size',
140
+            'Data' => 'Cache items keys',
141
+            'RawData' => 'Cache raw data',
142 142
         ];
143 143
     }
144 144
 }
145 145
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Memcache/Config.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
      * @var array
17 17
      */
18 18
     protected $servers = [
19
-      [
19
+        [
20 20
         'host' => '127.0.0.1',
21 21
         'port' => 11211,
22 22
         'saslUser' => false,
23 23
         'saslPassword' => false,
24
-      ],
24
+        ],
25 25
     ];
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Predis/Config.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,10 +110,10 @@
 block discarded – undo
110 110
     public function getPredisConfigArray(): array
111 111
     {
112 112
         return [
113
-          'host' => $this->getHost(),
114
-          'port' => $this->getPort(),
115
-          'password' => $this->getPassword() ?: null,
116
-          'database' => $this->getDatabase(),
113
+            'host' => $this->getHost(),
114
+            'port' => $this->getPort(),
115
+            'password' => $this->getPassword() ?: null,
116
+            'database' => $this->getDatabase(),
117 117
         ];
118 118
     }
119 119
 }
120 120
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Couchbase/Config.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
      * @var array
33 33
      */
34 34
     protected $buckets = [
35
-      [
35
+        [
36 36
         'bucket' => 'default',
37 37
         'password' => '',
38
-      ],
38
+        ],
39 39
     ];
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Helper/TestHelper.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -188,11 +188,11 @@
 block discarded – undo
188 188
             $this->printSkipText('A driver could not be initialized due to missing requirement: ' . $exception->getMessage());
189 189
         }else{
190 190
             $this->printFailText(sprintf(
191
-              'Uncaught exception "%s" in "%s" line %d with message: "%s"',
192
-              \get_class($exception),
193
-              $exception->getFile(),
194
-              $exception->getLine(),
195
-              $exception->getMessage()
191
+                'Uncaught exception "%s" in "%s" line %d with message: "%s"',
192
+                \get_class($exception),
193
+                $exception->getFile(),
194
+                $exception->getLine(),
195
+                $exception->getMessage()
196 196
             ));
197 197
         }
198 198
         $this->terminateTest();
Please login to merge, or discard this patch.
lib/Phpfastcache/Autoload/Autoload.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,5 +62,5 @@
 block discarded – undo
62 62
 
63 63
 if ((!\defined('PFC_IGNORE_COMPOSER_WARNING') || !PFC_IGNORE_COMPOSER_WARNING) && \class_exists('Composer\Autoload\ClassLoader')) {
64 64
     trigger_error('Your project already makes use of Composer. You SHOULD use the composer dependency "phpfastcache/phpfastcache" instead of hard-autoloading.',
65
-      E_USER_WARNING);
65
+        E_USER_WARNING);
66 66
 }
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Phpfastcache/Core/Pool/IO/IOHelperTrait.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
     protected static function cleanFileName($filename): string
193 193
     {
194 194
         $regex = [
195
-          '/[\?\[\]\/\\\=\<\>\:\;\,\'\"\&\$\#\*\(\)\|\~\`\!\{\}]/',
196
-          '/\.$/',
197
-          '/^\./',
195
+            '/[\?\[\]\/\\\=\<\>\:\;\,\'\"\&\$\#\*\(\)\|\~\`\!\{\}]/',
196
+            '/\.$/',
197
+            '/^\./',
198 198
         ];
199 199
         $replace = ['-', '', ''];
200 200
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
             $tmpFilename = Directory::getAbsolutePath(\dirname($file) . '/tmp_' . \md5(
291 291
                 str_shuffle(\uniqid($this->getDriverName(), false))
292 292
                 . str_shuffle(\uniqid($this->getDriverName(), false))
293
-              ));
293
+                ));
294 294
 
295 295
             $f = fopen($tmpFilename, 'w+');
296 296
             flock($f, LOCK_EX);
@@ -332,11 +332,11 @@  discard block
 block discarded – undo
332 332
         }
333 333
 
334 334
         $stat->setData(\implode(', ', \array_keys($this->itemInstances)))
335
-          ->setRawData([
335
+            ->setRawData([
336 336
             'tmp' => $this->tmp,
337
-          ])
338
-          ->setSize(Directory::dirSize($path))
339
-          ->setInfo('Number of files used to build the cache: ' . Directory::getFileCount($path));
337
+            ])
338
+            ->setSize(Directory::dirSize($path))
339
+            ->setInfo('Number of files used to build the cache: ' . Directory::getFileCount($path));
340 340
 
341 341
         return $stat;
342 342
     }
Please login to merge, or discard this patch.
lib/Phpfastcache/Util/Directory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@
 block discarded – undo
83 83
 
84 84
         $files = new RecursiveIteratorIterator
85 85
         (
86
-          new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS),
87
-          RecursiveIteratorIterator::CHILD_FIRST
86
+            new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS),
87
+            RecursiveIteratorIterator::CHILD_FIRST
88 88
         );
89 89
         
90 90
         foreach ($files as $fileinfo) {
Please login to merge, or discard this patch.
lib/Phpfastcache/Util/MemcacheDriverCollisionDetectorTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
                 return true;
28 28
             } else if (constant($CONSTANT_NAME) !== $driverName) {
29 29
                 trigger_error('Memcache collision detected, you used both Memcache and Memcached driver in your script, this may leads to unexpected behaviours',
30
-                  E_USER_WARNING);
30
+                    E_USER_WARNING);
31 31
 
32 32
                 return false;
33 33
             }
Please login to merge, or discard this patch.