@@ -13,14 +13,14 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function __invoke(ContainerInterface $container, array $options): FilesystemCachePool |
| 15 | 15 | { |
| 16 | - $flySystemServiceName = (string)($options['flySystemService'] ?? ''); |
|
| 17 | - $folder = (string)($options['folder'] ?? 'cache'); |
|
| 16 | + $flySystemServiceName = (string) ($options['flySystemService'] ?? ''); |
|
| 17 | + $folder = (string) ($options['folder'] ?? 'cache'); |
|
| 18 | 18 | |
| 19 | 19 | $flySystem = $container->get($flySystemServiceName); |
| 20 | 20 | |
| 21 | 21 | if (!$flySystem instanceof FilesystemInterface) { |
| 22 | 22 | throw new InvalidConfigException( |
| 23 | - 'Service provided for the filesystem must be an instance of ' . FilesystemInterface::class |
|
| 23 | + 'Service provided for the filesystem must be an instance of '.FilesystemInterface::class |
|
| 24 | 24 | ); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(ContainerInterface $container, array $options): ApcuCachePool |
| 13 | 13 | { |
| 14 | - $skipOnCli = (bool)($options['skipOnCli'] ?? false); |
|
| 14 | + $skipOnCli = (bool) ($options['skipOnCli'] ?? false); |
|
| 15 | 15 | |
| 16 | 16 | return new ApcuCachePool($skipOnCli); |
| 17 | 17 | } |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function __invoke(ContainerInterface $container, array $options): IlluminateCachePool |
| 15 | 15 | { |
| 16 | - $cacheStoreName = (string)($options['store'] ?? ''); |
|
| 16 | + $cacheStoreName = (string) ($options['store'] ?? ''); |
|
| 17 | 17 | |
| 18 | 18 | $cacheStore = $container->get($cacheStoreName); |
| 19 | 19 | |
| 20 | 20 | if (!$cacheStore instanceof Store) { |
| 21 | 21 | throw new InvalidConfigException( |
| 22 | - 'Service provided for the Illuminate Cache must be an instance of ' . Store::class |
|
| 22 | + 'Service provided for the Illuminate Cache must be an instance of '.Store::class |
|
| 23 | 23 | ); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(ContainerInterface $container, array $options): ApcCachePool |
| 13 | 13 | { |
| 14 | - $skipOnCli = (bool)($options['skipOnCli'] ?? false); |
|
| 14 | + $skipOnCli = (bool) ($options['skipOnCli'] ?? false); |
|
| 15 | 15 | |
| 16 | 16 | return new ApcCachePool($skipOnCli); |
| 17 | 17 | } |