Completed
Pull Request — master (#6)
by Daniel
02:32
created
lib/Agent/InMemoryAgent.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,9 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.