Passed
Pull Request — master (#4)
by Alex
01:58
created
src/Service/Repository/ReferenceRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function getCollectionReference(string $name): iterable
36 36
     {
37
-        if (! $this->hasCollectionReference($name)) {
37
+        if (!$this->hasCollectionReference($name)) {
38 38
             throw new \OutOfBoundsException(sprintf('Collection reference to "%s" does not exist', $name));
39 39
         }
40 40
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function setCollectionReference(string $name, iterable $collection): void
54 54
     {
55 55
         foreach ($collection as $index => $item) {
56
-            $itemName = $name . '.' . $index;
56
+            $itemName = $name.'.'.$index;
57 57
             $this->setReference($itemName, $item);
58 58
             $this->collectionReferences[$name][$index] = $itemName;
59 59
         }
Please login to merge, or discard this patch.