Completed
Pull Request — master (#26)
by James
05:06
created
src/SimpleCacheAdapter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             throw Exception\InvalidArgumentException::fromEmptyKey();
50 50
         }
51 51
 
52
-        if (preg_match('/[' . preg_quote('{}()/\@:', '/') . ']/', $key)) {
52
+        if (preg_match('/['.preg_quote('{}()/\@:', '/').']/', $key)) {
53 53
             throw Exception\InvalidArgumentException::fromInvalidKeyCharacters($key);
54 54
         }
55 55
     }
Please login to merge, or discard this patch.
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.
test/unit/SimpleCacheAdapterTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
             uniqid('key1', true) => uniqid('value1', true),
282 282
         ];
283 283
 
284
-        $generator = function () use ($values) {
284
+        $generator = function() use ($values) {
285 285
             /** @noinspection ForeachOnArrayComponentsInspection */
286 286
             foreach (array_keys($values) as $k) {
287 287
                 yield $k;
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             $key1 => uniqid('value1', true),
386 386
         ];
387 387
 
388
-        $generator = function () use ($values) {
388
+        $generator = function() use ($values) {
389 389
             foreach ($values as $k => $v) {
390 390
                 yield $k => $v;
391 391
             }
Please login to merge, or discard this patch.