@@ -97,7 +97,6 @@ |
||
| 97 | 97 | * |
| 98 | 98 | * @param array $keys |
| 99 | 99 | * An array of keys that should be removed from the pool. |
| 100 | - |
|
| 101 | 100 | * @throws InvalidArgumentException |
| 102 | 101 | * If any of the keys in $keys are not a legal value a \Psr\Cache\InvalidArgumentException |
| 103 | 102 | * MUST be thrown. |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | if(\strpos($entity, PFC_TESTS_NS) === 0){ |
| 68 | 68 | $path = PFC_TESTS_DIR . \str_replace(str_replace('\\', '/', PFC_TESTS_NS), '', $entityPath) . '.' . PFC_PHP_EXT; |
| 69 | - }else{ |
|
| 69 | + } else{ |
|
| 70 | 70 | $path = PFC_LIB_DIR . $entityPath . '.' . PFC_PHP_EXT; |
| 71 | 71 | } |
| 72 | 72 | |
@@ -110,8 +110,7 @@ |
||
| 110 | 110 | } elseif (unlink($realpath) === false) { |
| 111 | 111 | return false; |
| 112 | 112 | } |
| 113 | - } |
|
| 114 | - else{ |
|
| 113 | + } else{ |
|
| 115 | 114 | return false; |
| 116 | 115 | } |
| 117 | 116 | } |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | break; |
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | - }else{ |
|
| 109 | + } else{ |
|
| 110 | 110 | while (isset($tokens[++$i][1])) { |
| 111 | 111 | if (\in_array($tokens[$i][0], [T_STRING, T_NS_SEPARATOR], true)) { |
| 112 | 112 | $namespace .= $tokens[$i][1]; |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | if($this->getConfig()->isUseStaticItemCaching()){ |
| 68 | 68 | $stat->setData(implode(', ', \array_keys($this->itemInstances))); |
| 69 | - }else{ |
|
| 69 | + } else{ |
|
| 70 | 70 | $stat->setData('No data available since static item caching option (useStaticItemCaching) is disabled.'); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -227,7 +227,7 @@ |
||
| 227 | 227 | $item->expiresAfter(abs((int)$this->getConfig()['defaultTtl'])); |
| 228 | 228 | } |
| 229 | 229 | } |
| 230 | - }else{ |
|
| 230 | + } else{ |
|
| 231 | 231 | $item = $this->itemInstances[$key]; |
| 232 | 232 | } |
| 233 | 233 | |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | try{ |
| 80 | 80 | $content = $this->readFile($file_path); |
| 81 | - }catch (PhpfastcacheIOException $e){ |
|
| 81 | + } catch (PhpfastcacheIOException $e){ |
|
| 82 | 82 | return null; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -246,7 +246,7 @@ |
||
| 246 | 246 | protected function driverClear(): bool |
| 247 | 247 | { |
| 248 | 248 | try { |
| 249 | - return $this->collection->deleteMany([])->isAcknowledged(); |
|
| 249 | + return $this->collection->deleteMany([])->isAcknowledged(); |
|
| 250 | 250 | } catch (MongoDBException $e) { |
| 251 | 251 | throw new PhpfastcacheDriverException('Got error while trying to empty the collection: ' . $e->getMessage(), 0, $e); |
| 252 | 252 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | |
| 96 | 96 | if (count($this->getConfig()->getServers()) < 1) { |
| 97 | 97 | $this->getConfig()->setServers( |
| 98 | - [ |
|
| 98 | + [ |
|
| 99 | 99 | [ |
| 100 | 100 | 'host' => $this->getConfig()->getHost(), |
| 101 | 101 | 'path' => $this->getConfig()->getPath(), |