@@ -135,7 +135,7 @@ |
||
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | 137 | * @param array|\Traversable $keys |
| 138 | - * @param mixed $default |
|
| 138 | + * @param string $default |
|
| 139 | 139 | * @return array |
| 140 | 140 | * @throws \Roave\DoctrineSimpleCache\Exception\InvalidArgumentException |
| 141 | 141 | */ |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Roave\DoctrineSimpleCache; |
| 5 | 5 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | throw Exception\InvalidArgumentException::fromEmptyKey(); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - if (preg_match('/[' . preg_quote('{}()/\@:', '/') . ']/', $key)) { |
|
| 50 | + if (preg_match('/['.preg_quote('{}()/\@:', '/').']/', $key)) { |
|
| 51 | 51 | throw Exception\InvalidArgumentException::fromInvalidKeyCharacters($key); |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Roave\DoctrineSimpleCache\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTestAsset\DoctrineSimpleCache; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTest\DoctrineSimpleCache\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTest\DoctrineSimpleCache; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTest\DoctrineSimpleCache; |
| 5 | 5 | |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | uniqid('key1', true) => uniqid('value1', true), |
| 275 | 275 | ]; |
| 276 | 276 | |
| 277 | - $generator = function () use ($values) { |
|
| 277 | + $generator = function() use ($values) { |
|
| 278 | 278 | /** @noinspection ForeachOnArrayComponentsInspection */ |
| 279 | 279 | foreach (array_keys($values) as $k) { |
| 280 | 280 | yield $k; |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | $key1 => uniqid('value1', true), |
| 379 | 379 | ]; |
| 380 | 380 | |
| 381 | - $generator = function () use ($values) { |
|
| 381 | + $generator = function() use ($values) { |
|
| 382 | 382 | foreach ($values as $k => $v) { |
| 383 | 383 | yield $k => $v; |
| 384 | 384 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Roave\DoctrineSimpleCache\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTest\DoctrineSimpleCache\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTestAsset\DoctrineSimpleCache; |
| 5 | 5 | |