Completed
Pull Request — master (#27)
by
unknown
04:48
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.
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/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/asset/NotClearableCache.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/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.
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/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/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.