Completed
Pull Request — master (#952)
by Kévin
03:04
created
src/HttpCache/VarnishPurger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             return;
35 35
         }
36 36
 
37
-        $parts = array_map(function ($iri) {
37
+        $parts = array_map(function($iri) {
38 38
             sprintf('(^|\,)%s($|\,)', preg_quote($iri));
39 39
         }, $iris);
40 40
         $regex = isset($parts[1]) ? sprintf('(%s)', implode(')|(', $parts)) : $parts[0];
Please login to merge, or discard this patch.
src/Serializer/AbstractItemNormalizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Serializer;
15 15
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor();
58 58
         $this->resourceManager = $resourceManager;
59 59
 
60
-        $this->setCircularReferenceHandler(function ($object) {
60
+        $this->setCircularReferenceHandler(function($object) {
61 61
             return $this->iriConverter->getIriFromItem($object);
62 62
         });
63 63
     }
Please login to merge, or discard this patch.