@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | private $expressionBuilder; |
22 | 22 | |
23 | 23 | /** |
24 | - * @param QueryBuilder $expressionBuilder |
|
24 | + * @param ExpressionBuilder $expressionBuilder |
|
25 | 25 | */ |
26 | 26 | public function __construct(ExpressionBuilder $expressionBuilder) |
27 | 27 | { |
@@ -32,7 +32,6 @@ discard block |
||
32 | 32 | * Walk the given expression to build up the PHPCR-ODM query builder. |
33 | 33 | * |
34 | 34 | * @param Expression $expr |
35 | - * @param AbstractNode|null $parentNode |
|
36 | 35 | */ |
37 | 36 | public function dispatch(Expression $expr) |
38 | 37 | { |
@@ -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( |