@@ -87,7 +87,7 @@ |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @return callable |
|
| 90 | + * @return \Closure |
|
| 91 | 91 | */ |
| 92 | 92 | protected function filesystemCachePoolFactory(): callable |
| 93 | 93 | { |
@@ -54,25 +54,25 @@ |
||
| 54 | 54 | case 'void': |
| 55 | 55 | case 'null': |
| 56 | 56 | $this->container() |
| 57 | - ->bindClass(CacheItemPoolInterface::class, 'Cache\Adapter\Void\VoidCachePool', true); |
|
| 57 | + ->bindClass(CacheItemPoolInterface::class, 'Cache\Adapter\Void\VoidCachePool', true); |
|
| 58 | 58 | break; |
| 59 | 59 | case 'file': |
| 60 | 60 | case 'files': |
| 61 | 61 | case 'filesystem': |
| 62 | 62 | $this->container() |
| 63 | - ->bindFactory(CacheItemPoolInterface::class, $this->filesystemCachePoolFactory(), true); |
|
| 63 | + ->bindFactory(CacheItemPoolInterface::class, $this->filesystemCachePoolFactory(), true); |
|
| 64 | 64 | break; |
| 65 | 65 | case 'redis': |
| 66 | 66 | $this->container() |
| 67 | - ->bindClass(CacheItemPoolInterface::class, 'Cache\Adapter\Redis\RedisCachePool', true); |
|
| 67 | + ->bindClass(CacheItemPoolInterface::class, 'Cache\Adapter\Redis\RedisCachePool', true); |
|
| 68 | 68 | break; |
| 69 | 69 | case 'predis': |
| 70 | 70 | $this->container() |
| 71 | - ->bindClass(CacheItemPoolInterface::class, 'Cache\Adapter\Predis\PredisCachePool', true); |
|
| 71 | + ->bindClass(CacheItemPoolInterface::class, 'Cache\Adapter\Predis\PredisCachePool', true); |
|
| 72 | 72 | break; |
| 73 | 73 | case 'memcached': |
| 74 | 74 | $this->container() |
| 75 | - ->bindClass(CacheItemPoolInterface::class, 'Cache\Adapter\Memcached\MemcachedCachePool', true); |
|
| 75 | + ->bindClass(CacheItemPoolInterface::class, 'Cache\Adapter\Memcached\MemcachedCachePool', true); |
|
| 76 | 76 | break; |
| 77 | 77 | default: |
| 78 | 78 | $this->container()->bindClass( |
@@ -89,6 +89,7 @@ |
||
| 89 | 89 | * Merges config params from service provider with the global configuration. |
| 90 | 90 | * |
| 91 | 91 | * @param string[] ...$configFiles |
| 92 | + * @param string $configFiles |
|
| 92 | 93 | */ |
| 93 | 94 | protected function loadConfigFromFiles(string ...$configFiles) |
| 94 | 95 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | public function list(string $path = '.', bool $recursive = false): array |
| 88 | 88 | { |
| 89 | 89 | return array_map( |
| 90 | - function($item){ return new Metadata($item); }, |
|
| 90 | + function ($item) { return new Metadata($item); }, |
|
| 91 | 91 | $this->flysystem->listContents($path, $recursive) |
| 92 | 92 | ); |
| 93 | 93 | } |
@@ -98,10 +98,10 @@ discard block |
||
| 98 | 98 | public function listDirectories(string $path = '.', bool $recursive = false): array |
| 99 | 99 | { |
| 100 | 100 | return array_map( |
| 101 | - function($item){ return new Metadata($item); }, |
|
| 101 | + function ($item) { return new Metadata($item); }, |
|
| 102 | 102 | array_filter( |
| 103 | 103 | $this->flysystem->listContents($path, $recursive), |
| 104 | - function($item){ return $item['type'] === MetadataContract::TYPE_DIR; } |
|
| 104 | + function ($item) { return $item['type'] === MetadataContract::TYPE_DIR; } |
|
| 105 | 105 | ) |
| 106 | 106 | ); |
| 107 | 107 | } |
@@ -112,10 +112,10 @@ discard block |
||
| 112 | 112 | public function listFiles(string $path = '.', bool $recursive = false): array |
| 113 | 113 | { |
| 114 | 114 | return array_map( |
| 115 | - function($item){ return new Metadata($item); }, |
|
| 115 | + function ($item) { return new Metadata($item); }, |
|
| 116 | 116 | array_filter( |
| 117 | 117 | $this->flysystem->listContents($path, $recursive), |
| 118 | - function($item){ return $item['type'] === MetadataContract::TYPE_FILE; } |
|
| 118 | + function ($item) { return $item['type'] === MetadataContract::TYPE_FILE; } |
|
| 119 | 119 | ) |
| 120 | 120 | ); |
| 121 | 121 | } |