Passed
Pull Request — master (#625)
by Georges
03:37 queued 01:54
created
lib/Phpfastcache/Core/Pool/ExtendedCacheItemPoolTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function getItemsAsJsonString(array $keys = [], $option = 0, $depth = 512): string
38 38
     {
39
-        $callback = function (CacheItemInterface $item) {
39
+        $callback = function(CacheItemInterface $item) {
40 40
             return $item->get();
41 41
         };
42 42
         return \json_encode(\array_map($callback, \array_values($this->getItems($keys))), $option, $depth);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         if (\is_string($tagName)) {
51 51
             $driverResponse = $this->getItem($this->getTagKey($tagName));
52 52
             if ($driverResponse->isHit()) {
53
-                $items = (array)$driverResponse->get();
53
+                $items = (array) $driverResponse->get();
54 54
 
55 55
                 /**
56 56
                  * getItems() may provides expired item(s)
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                  *
63 63
                  * #headache
64 64
                  */
65
-                return \array_filter($this->getItems(\array_unique(\array_keys($items))), function (ExtendedCacheItemInterface $item) {
65
+                return \array_filter($this->getItems(\array_unique(\array_keys($items))), function(ExtendedCacheItemInterface $item) {
66 66
                     return $item->isHit();
67 67
                 });
68 68
             }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function getItemsByTagsAsJsonString(array $tagNames, $option = 0, $depth = 512): string
114 114
     {
115
-        $callback = function (CacheItemInterface $item) {
115
+        $callback = function(CacheItemInterface $item) {
116 116
             return $item->get();
117 117
         };
118 118
 
Please login to merge, or discard this patch.
lib/Phpfastcache/CacheManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
                 $fallback = $config->getFallback();
166 166
                 $config->setFallback('');
167 167
                 \trigger_error(\sprintf('The "%s" driver is unavailable at the moment, the fallback driver "%s" has been used instead.', $driver,
168
-                    $fallback),  \E_USER_WARNING);
168
+                    $fallback), \E_USER_WARNING);
169 169
                 return self::getInstance($fallback, $config->getFallbackConfig());
170 170
             } catch (PhpfastcacheInvalidArgumentException $e) {
171 171
                 throw new PhpfastcacheInvalidConfigurationException('Invalid fallback driver configuration', 0, $e);
Please login to merge, or discard this patch.