Completed
Push — v5 ( b9ce74...ac98a5 )
by Georges
02:32
created
src/autoload.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         return;
28 28
     } else if (strpos($entity, 'Psr\Cache') === 0) {
29 29
         trigger_error('If you cannot use <b>composer</b>, you have to include manually the Psr\\Cache interfaces.<br />See: https://github.com/php-fig/cache/tree/master/src<br /> Called ' . $entity,
30
-          E_USER_ERROR);
30
+            E_USER_ERROR);
31 31
 
32 32
         return;
33 33
     }
@@ -42,5 +42,5 @@  discard block
 block discarded – undo
42 42
 
43 43
 if (class_exists('Composer\Autoload\ClassLoader')) {
44 44
     trigger_error('Your project already makes use of Composer. You SHOULD use the composer dependency "phpfastcache/phpfastcache" instead of hard-autoloading.',
45
-      E_USER_WARNING);
45
+        E_USER_WARNING);
46 46
 }
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
src/phpFastCache/Core/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.
src/phpFastCache/Core/PathSeekerTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,9 +160,9 @@  discard block
 block discarded – undo
160 160
     protected static function cleanFileName($filename)
161 161
     {
162 162
         $regex = [
163
-          '/[\?\[\]\/\\\=\<\>\:\;\,\'\"\&\$\#\*\(\)\|\~\`\!\{\}]/',
164
-          '/\.$/',
165
-          '/^\./',
163
+            '/[\?\[\]\/\\\=\<\>\:\;\,\'\"\&\$\#\*\(\)\|\~\`\!\{\}]/',
164
+            '/\.$/',
165
+            '/^\./',
166 166
         ];
167 167
         $replace = ['-', '', ''];
168 168
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                     chmod($path, 0777);
183 183
                 } catch (phpFastCacheDriverException $e) {
184 184
                     throw new phpFastCacheDriverException('PLEASE CHMOD ' . $path . ' - 0777 OR ANY WRITABLE PERMISSION!',
185
-                      92);
185
+                        92);
186 186
                 }
187 187
             }
188 188
 
Please login to merge, or discard this patch.
src/phpFastCache/Drivers/Memcached/Driver.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $servers = (!empty($this->config[ 'memcache' ]) && is_array($this->config[ 'memcache' ]) ? $this->config[ 'memcache' ] : []);
136 136
         if (count($servers) < 1) {
137 137
             $servers = [
138
-              ['127.0.0.1', 11211],
138
+                ['127.0.0.1', 11211],
139 139
             ];
140 140
         }
141 141
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             }
187 187
         } else {
188 188
             throw new \InvalidArgumentException(sprintf('$key must be a string, got type "%s" instead.',
189
-              gettype($key)));
189
+                gettype($key)));
190 190
         }
191 191
 
192 192
         return $this->itemInstances[ $key ];
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             return $this;
206 206
         } else {
207 207
             throw new \InvalidArgumentException(sprintf('Invalid Item Class "%s" for this driver.',
208
-              get_class($item)));
208
+                get_class($item)));
209 209
         }
210 210
     }
211 211
 
Please login to merge, or discard this patch.
src/phpFastCache/Drivers/Devnull/Driver.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,8 +140,8 @@
 block discarded – undo
140 140
     {
141 141
         $stat = new driverStatistic();
142 142
         $stat->setInfo('A void info string')
143
-          ->setSize(1337)
144
-          ->setData('A void data string');
143
+            ->setSize(1337)
144
+            ->setData('A void data string');
145 145
 
146 146
         return $stat;
147 147
     }
Please login to merge, or discard this patch.
src/phpFastCache/Drivers/Cookie/Item.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             $this->driver->setItem($this);
43 43
         } else {
44 44
             throw new \InvalidArgumentException(sprintf('$key must be a string, got type "%s" instead.',
45
-              gettype($key)));
45
+                gettype($key)));
46 46
         }
47 47
     }
48 48
 
Please login to merge, or discard this patch.
src/phpFastCache/Drivers/Devtrue/Driver.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,8 +140,8 @@
 block discarded – undo
140 140
     {
141 141
         $stat = new driverStatistic();
142 142
         $stat->setInfo('A void info string')
143
-          ->setSize(1337)
144
-          ->setData('A void data string');
143
+            ->setSize(1337)
144
+            ->setData('A void data string');
145 145
 
146 146
         return $stat;
147 147
     }
Please login to merge, or discard this patch.
src/phpFastCache/Drivers/Devfalse/Driver.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,8 +140,8 @@
 block discarded – undo
140 140
     {
141 141
         $stat = new driverStatistic();
142 142
         $stat->setInfo('A void info string')
143
-          ->setSize(1337)
144
-          ->setData('A void data string');
143
+            ->setSize(1337)
144
+            ->setData('A void data string');
145 145
 
146 146
         return $stat;
147 147
     }
Please login to merge, or discard this patch.
src/phpFastCache/Drivers/Ssdb/Driver.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -147,10 +147,10 @@
 block discarded – undo
147 147
     {
148 148
         try{
149 149
             $server = isset($this->config[ 'ssdb' ]) ? $this->config[ 'ssdb' ] : [
150
-              'host' => "127.0.0.1",
151
-              'port' => 8888,
152
-              'password' => '',
153
-              'timeout' => 2000,
150
+                'host' => "127.0.0.1",
151
+                'port' => 8888,
152
+                'password' => '',
153
+                'timeout' => 2000,
154 154
             ];
155 155
 
156 156
             $host = $server[ 'host' ];
Please login to merge, or discard this patch.