Completed
Push — master ( 6c6956...480fa3 )
by Georges
21s queued 10s
created
lib/Phpfastcache/Drivers/Leveldb/Driver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
          * Check for Cross-Driver type confusion
85 85
          */
86 86
         if ($item instanceof Item) {
87
-            return (bool)$this->instance->set($item->getKey(), $this->encode($this->driverPreWrap($item)));
87
+            return (bool) $this->instance->set($item->getKey(), $this->encode($this->driverPreWrap($item)));
88 88
         }
89 89
 
90 90
         throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected');
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             $this->instance->close();
117 117
             $this->instance = null;
118 118
         }
119
-        $result = (bool)LeveldbClient::destroy($this->getLeveldbFile());
119
+        $result = (bool) LeveldbClient::destroy($this->getLeveldbFile());
120 120
         $this->driverConnect();
121 121
 
122 122
         return $result;
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Zenddisk/Driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
          * Check for Cross-Driver type confusion
95 95
          */
96 96
         if ($item instanceof Item) {
97
-            return (bool)zend_disk_cache_delete($item->getKey());
97
+            return (bool) zend_disk_cache_delete($item->getKey());
98 98
         }
99 99
 
100 100
         throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected');
Please login to merge, or discard this patch.
lib/Phpfastcache/Config/ConfigurationOption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
     public function __construct(...$args)
98 98
     {
99 99
         parent::__construct(...$args);
100
-        $array =& $this->getArray();
100
+        $array = & $this->getArray();
101 101
 
102 102
         /**
103 103
          * Detect unwanted keys and throw an exception.
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Couchbase/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * @var int
30 30
      */
31
-    protected $port = 8091;// SSL: 18091
31
+    protected $port = 8091; // SSL: 18091
32 32
 
33 33
     /**
34 34
      * @var string
Please login to merge, or discard this patch.
lib/Phpfastcache/Helper/TestHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@
 block discarded – undo
363 363
     public function debugEvents(EventManagerInterface $eventManager)
364 364
     {
365 365
         $eventManager->onEveryEvents(
366
-            function (string $eventName) {
366
+            function(string $eventName) {
367 367
                 $this->printDebugText("Triggered event '{$eventName}'");
368 368
             },
369 369
             'debugCallback'
Please login to merge, or discard this patch.
lib/Phpfastcache/Helper/Psr16Adapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
         }
154 154
         try {
155 155
             return \array_map(
156
-                function (ExtendedCacheItemInterface $item) {
156
+                function(ExtendedCacheItemInterface $item) {
157 157
                     return $item->get();
158 158
                 },
159 159
                 $this->internalCacheInstance->getItems($keys)
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Zendshm/Driver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function getStats(): DriverStatistic
60 60
     {
61
-        $stats = (array)zend_shm_cache_info();
61
+        $stats = (array) zend_shm_cache_info();
62 62
         return (new DriverStatistic())
63 63
             ->setData(implode(', ', array_keys($this->itemInstances)))
64 64
             ->setInfo(sprintf("The Zend memory have %d item(s) in cache.\n For more information see RawData.", $stats['items_total']))
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
          * Check for Cross-Driver type confusion
125 125
          */
126 126
         if ($item instanceof Item) {
127
-            return (bool)zend_shm_cache_delete($item->getKey());
127
+            return (bool) zend_shm_cache_delete($item->getKey());
128 128
         }
129 129
 
130 130
         throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected');
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Memcache/Driver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function getStats(): DriverStatistic
74 74
     {
75
-        $stats = (array)$this->instance->getstats();
75
+        $stats = (array) $this->instance->getstats();
76 76
         $stats['uptime'] = (isset($stats['uptime']) ? $stats['uptime'] : 0);
77 77
         $stats['version'] = (isset($stats['version']) ? $stats['version'] : 'UnknownVersion');
78 78
         $stats['bytes'] = (isset($stats['bytes']) ? $stats['version'] : 0);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             ->setData(implode(', ', array_keys($this->itemInstances)))
84 84
             ->setInfo(sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(DATE_RFC2822)))
85 85
             ->setRawData($stats)
86
-            ->setSize((int)$stats['bytes']);
86
+            ->setSize((int) $stats['bytes']);
87 87
     }
88 88
 
89 89
     /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Redis/Driver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         return (new DriverStatistic())
56 56
             ->setData(implode(', ', array_keys($this->itemInstances)))
57 57
             ->setRawData($info)
58
-            ->setSize((int)$info['used_memory'])
58
+            ->setSize((int) $info['used_memory'])
59 59
             ->setInfo(
60 60
                 sprintf(
61 61
                     "The Redis daemon v%s is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.",
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
          * Check for Cross-Driver type confusion
172 172
          */
173 173
         if ($item instanceof Item) {
174
-            return (bool)$this->instance->del($item->getKey());
174
+            return (bool) $this->instance->del($item->getKey());
175 175
         }
176 176
 
177 177
         throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected');
Please login to merge, or discard this patch.