@@ -18,6 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * @inheritDoc |
| 20 | 20 | * @param ArgumentResolverException $previous |
| 21 | + * @param string $entryId |
|
| 21 | 22 | */ |
| 22 | 23 | public function __construct($entryId, array $referenceChain, ArgumentResolverException $previous) |
| 23 | 24 | { |
@@ -48,8 +48,7 @@ discard block |
||
| 48 | 48 | private function formatFunction(ReflectionFunctionAbstract $function) |
| 49 | 49 | { |
| 50 | 50 | return $function instanceof ReflectionMethod ? |
| 51 | - $function->getDeclaringClass()->getName() . '::' . $function->getName() : |
|
| 52 | - $function->getName(); |
|
| 51 | + $function->getDeclaringClass()->getName() . '::' . $function->getName() : $function->getName(); |
|
| 53 | 52 | } |
| 54 | 53 | |
| 55 | 54 | /** |
@@ -61,7 +60,6 @@ discard block |
||
| 61 | 60 | private function formatParameter(ReflectionParameter $parameter): string |
| 62 | 61 | { |
| 63 | 62 | return $parameter->hasType() ? |
| 64 | - sprintf('%s $%s', $parameter->getType(), $parameter->getName()) : |
|
| 65 | - sprintf('$%s', $parameter->getName()); |
|
| 63 | + sprintf('%s $%s', $parameter->getType(), $parameter->getName()) : sprintf('$%s', $parameter->getName()); |
|
| 66 | 64 | } |
| 67 | 65 | } |
| 68 | 66 | \ No newline at end of file |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @param \Swift_Events_EventObject $evt |
| 46 | - * @param $target |
|
| 46 | + * @param string $target |
|
| 47 | 47 | * @return string |
| 48 | 48 | */ |
| 49 | 49 | protected function normalizeEventName(Swift_Events_EventObject $evt, $target) |
@@ -223,7 +223,7 @@ |
||
| 223 | 223 | /** |
| 224 | 224 | * Returns proper transport closure factory |
| 225 | 225 | * |
| 226 | - * @param $transportName |
|
| 226 | + * @param string $transportName |
|
| 227 | 227 | * @return \Closure |
| 228 | 228 | */ |
| 229 | 229 | protected function getTransport($transportName) |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | public function __construct() |
| 95 | 95 | { |
| 96 | 96 | $this->setArgumentResolver(new ArgumentResolver($this)) |
| 97 | - ->setObjectInflector(new ObjectInflector($this->argumentResolver)); |
|
| 97 | + ->setObjectInflector(new ObjectInflector($this->argumentResolver)); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $handler->pushProcessor(new PsrLogMessageProcessor); |
| 34 | 34 | |
| 35 | 35 | if (!$this->kernel->isCli()) { |
| 36 | - $handler->pushProcessor(new WebProcessor(null, [ // todo: make list configurable? |
|
| 36 | + $handler->pushProcessor(new WebProcessor(null, [// todo: make list configurable? |
|
| 37 | 37 | 'url' => 'REQUEST_URI', |
| 38 | 38 | 'ip' => 'REMOTE_ADDR', |
| 39 | 39 | 'http_method' => 'REQUEST_METHOD', |
@@ -62,7 +62,8 @@ |
||
| 62 | 62 | $item->set($value); |
| 63 | 63 | if (is_int($expires) || $expires instanceof \DateInterval) { |
| 64 | 64 | $item->expiresAfter($expires); |
| 65 | - } elseif ($expires instanceof \DateTimeInterface) { // @codeCoverageIgnore |
|
| 65 | + } elseif ($expires instanceof \DateTimeInterface) { |
|
| 66 | +// @codeCoverageIgnore |
|
| 66 | 67 | $item->expiresAt($expires); |
| 67 | 68 | } |
| 68 | 69 | |
@@ -66,6 +66,7 @@ |
||
| 66 | 66 | * Adds service Ids to the reference chain. |
| 67 | 67 | * |
| 68 | 68 | * @param string[] ...$serviceId |
| 69 | + * @param string $serviceId |
|
| 69 | 70 | */ |
| 70 | 71 | protected function addToReferenceChain(string ...$serviceId) |
| 71 | 72 | { |
@@ -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( |
@@ -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 | } |