Skip to content

Commit d90939c

Browse files
authored
Apply fixes from StyleCI (#242)
Co-authored-by: Tobias Nyholm <[email protected]>
1 parent c7f3743 commit d90939c

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

src/Adapter/Chain/CachePoolChain.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,11 @@ private function handleException($poolKey, $operation, CachePoolException $excep
343343

344344
$this->log(
345345
'warning',
346-
sprintf('Removing pool "%s" from chain because it threw an exception when executing "%s"', $poolKey,
347-
$operation),
346+
sprintf(
347+
'Removing pool "%s" from chain because it threw an exception when executing "%s"',
348+
$poolKey,
349+
$operation
350+
),
348351
['exception' => $exception]
349352
);
350353

src/Adapter/Common/AbstractCachePool.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ protected function validateKey($key)
278278
{
279279
if (!is_string($key)) {
280280
$e = new InvalidArgumentException(sprintf(
281-
'Cache key must be string, "%s" given', gettype($key)
281+
'Cache key must be string, "%s" given',
282+
gettype($key)
282283
));
283284
$this->handleException($e, __FUNCTION__);
284285
}

src/SessionHandler/Psr16SessionHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public function __construct(CacheInterface $cache, array $options = [])
4848

4949
if ($diff = array_diff(array_keys($options), ['prefix', 'ttl'])) {
5050
throw new \InvalidArgumentException(sprintf(
51-
'The following options are not supported "%s"', implode(', ', $diff)
51+
'The following options are not supported "%s"',
52+
implode(', ', $diff)
5253
));
5354
}
5455

src/SessionHandler/Psr6SessionHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public function __construct(CacheItemPoolInterface $cache, array $options = [])
4949

5050
if ($diff = array_diff(array_keys($options), ['prefix', 'ttl'])) {
5151
throw new \InvalidArgumentException(sprintf(
52-
'The following options are not supported "%s"', implode(', ', $diff)
52+
'The following options are not supported "%s"',
53+
implode(', ', $diff)
5354
));
5455
}
5556

0 commit comments

Comments
 (0)