Completed
Push — master ( 165599...1fe855 )
by Marco
17s queued 11s
created
src/SimpleCacheAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exception/InvalidArgumentException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Roave\DoctrineSimpleCache\Exception;
5 5
 
Please login to merge, or discard this patch.
test/asset/NotMultiOperationCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace RoaveTestAsset\DoctrineSimpleCache;
5 5
 
Please login to merge, or discard this patch.
test/unit/Exception/CacheExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace RoaveTest\DoctrineSimpleCache\Exception;
5 5
 
Please login to merge, or discard this patch.
test/unit/CacheIntegrationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace RoaveTest\DoctrineSimpleCache;
5 5
 
Please login to merge, or discard this patch.
test/unit/SimpleCacheAdapterTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Exception/CacheException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Roave\DoctrineSimpleCache\Exception;
5 5
 
Please login to merge, or discard this patch.
test/unit/Exception/InvalidArgumentExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace RoaveTest\DoctrineSimpleCache\Exception;
5 5
 
Please login to merge, or discard this patch.
test/asset/FullyImplementedCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace RoaveTestAsset\DoctrineSimpleCache;
5 5
 
Please login to merge, or discard this patch.