@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | * @author Georges.L (Geolim4) <[email protected]> |
| 12 | 12 | * |
| 13 | 13 | */ |
| 14 | -declare(strict_types=1); |
|
| 14 | +declare(strict_types = 1); |
|
| 15 | 15 | |
| 16 | 16 | namespace Phpfastcache\Helper; |
| 17 | 17 | |
@@ -43,12 +43,12 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function __construct($driver, $config = null) |
| 45 | 45 | { |
| 46 | - if($driver instanceof ExtendedCacheItemPoolInterface){ |
|
| 47 | - if($config !== null){ |
|
| 46 | + if ($driver instanceof ExtendedCacheItemPoolInterface) { |
|
| 47 | + if ($config !== null) { |
|
| 48 | 48 | throw new PhpfastcacheLogicException("You can't pass a config parameter along with an non-string '\$driver' parameter."); |
| 49 | 49 | } |
| 50 | 50 | $this->internalCacheInstance = $driver; |
| 51 | - }else{ |
|
| 51 | + } else { |
|
| 52 | 52 | $this->internalCacheInstance = CacheManager::getInstance($driver, $config); |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | public function getMultiple($keys, $default = null) |
| 134 | 134 | { |
| 135 | 135 | try { |
| 136 | - return array_map(function (ExtendedCacheItemInterface $item) { |
|
| 136 | + return array_map(function(ExtendedCacheItemInterface $item) { |
|
| 137 | 137 | return $item->get(); |
| 138 | 138 | }, $this->internalCacheInstance->getItems($keys)); |
| 139 | 139 | } catch (PhpfastcacheInvalidArgumentException $e) { |