@@ -58,7 +58,7 @@ |
||
58 | 58 | public function delete($object) |
59 | 59 | { |
60 | 60 | $collection = $this->getCollection($classFqn = get_class($object)); |
61 | - $collection = array_filter($collection, function ($element) use ($object) { |
|
61 | + $collection = array_filter($collection, function($element) use ($object) { |
|
62 | 62 | if ($object === $element) { |
63 | 63 | return false; |
64 | 64 | } |
@@ -82,8 +82,9 @@ |
||
82 | 82 | public function getIdentifier($object) |
83 | 83 | { |
84 | 84 | foreach ($this->getCollectionFor($object) as $identifier => $element) { |
85 | - if ($element === $object) |
|
86 | - return $identifier; |
|
85 | + if ($element === $object) { |
|
86 | + return $identifier; |
|
87 | + } |
|
87 | 88 | } |
88 | 89 | |
89 | 90 | throw new \RuntimeException(sprintf( |