@@ -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 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 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 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\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 |