@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $types = is_array($types) ? $types : array($types); |
| 134 | 134 | |
| 135 | 135 | $types = array_map( |
| 136 | - function ($type) { |
|
| 136 | + function($type) { |
|
| 137 | 137 | if ($type instanceof Type) { |
| 138 | 138 | $type = $type->getName(); |
| 139 | 139 | } |
@@ -80,12 +80,10 @@ |
||
| 80 | 80 | public function __construct(array $config = array(), $callback = null) |
| 81 | 81 | { |
| 82 | 82 | $dispatcher = isset($config['dispatcher']) ? |
| 83 | - $config['dispatcher'] : |
|
| 84 | - null; |
|
| 83 | + $config['dispatcher'] : null; |
|
| 85 | 84 | unset($config['dispatcher']); |
| 86 | 85 | $resultSetBuilder = isset($config['resultSetBuilder']) ? |
| 87 | - $config['resultSetBuilder'] : |
|
| 88 | - new Builder($dispatcher); |
|
| 86 | + $config['resultSetBuilder'] : new Builder($dispatcher); |
|
| 89 | 87 | unset($config['resultSetBuilder']); |
| 90 | 88 | |
| 91 | 89 | $this->_resultSetBuilder = $resultSetBuilder; |
@@ -55,7 +55,6 @@ |
||
| 55 | 55 | private function getObjectIdentifier($object) |
| 56 | 56 | { |
| 57 | 57 | return method_exists($object, 'getId') ? |
| 58 | - $object->getId() : |
|
| 59 | - $object->id; |
|
| 58 | + $object->getId() : $object->id; |
|
| 60 | 59 | } |
| 61 | 60 | } |