Passed
Push — v7 ( 8c8f4f...b7a561 )
by Georges
01:55
created
lib/Phpfastcache/Drivers/Predis/Config.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,10 +115,10 @@
 block discarded – undo
115 115
     public function getPredisConfigArray(): array
116 116
     {
117 117
         return [
118
-          'host' => $this->getHost(),
119
-          'port' => $this->getPort(),
120
-          'password' => $this->getPassword() ?: null,
121
-          'database' => $this->getDatabase(),
118
+            'host' => $this->getHost(),
119
+            'port' => $this->getPort(),
120
+            'password' => $this->getPassword() ?: null,
121
+            'database' => $this->getDatabase(),
122 122
         ];
123 123
     }
124 124
 
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Predis/Driver.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface};
20 20
 use Phpfastcache\Entities\DriverStatistic;
21 21
 use Phpfastcache\Exceptions\{
22
-  PhpfastcacheInvalidArgumentException, PhpfastcacheDriverException, PhpfastcacheLogicException
22
+    PhpfastcacheInvalidArgumentException, PhpfastcacheDriverException, PhpfastcacheLogicException
23 23
 };
24 24
 use Phpfastcache\Util\ArrayObject;
25 25
 use Predis\Client as PredisClient;
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 
75 75
         if(!empty($this->getConfig()->getPath())){
76 76
             $this->instance = new PredisClient([
77
-              'scheme' => 'unix',
78
-              'path' =>  $this->getConfig()->getPath()
77
+                'scheme' => 'unix',
78
+                'path' =>  $this->getConfig()->getPath()
79 79
             ]);
80 80
         }else{
81 81
             $this->instance = new PredisClient($this->getConfig()->getPredisConfigArray());
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
         $date = (isset($info[ 'Server' ][ 'uptime_in_seconds' ]) ? (new \DateTime())->setTimestamp(\time() - $info[ 'Server' ][ 'uptime_in_seconds' ]) : 'unknown date');
189 189
 
190 190
         return (new DriverStatistic())
191
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
192
-          ->setRawData($info)
193
-          ->setSize((int) $size)
194
-          ->setInfo(\sprintf("The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.",
191
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
192
+            ->setRawData($info)
193
+            ->setSize((int) $size)
194
+            ->setInfo(\sprintf("The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.",
195 195
             $version, $date->format(DATE_RFC2822)));
196 196
     }
197 197
 }
198 198
\ No newline at end of file
Please login to merge, or discard this patch.