@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | $wakeupProxy = $classMetadata->getReflectionClass()->hasMethod('__wakeup'); |
| 91 | 91 | |
| 92 | - return function (Proxy $proxy) use ($classMetadata, $wakeupProxy, $persister) { |
|
| 92 | + return function(Proxy $proxy) use ($classMetadata, $wakeupProxy, $persister) { |
|
| 93 | 93 | $initializer = $proxy->__getInitializer(); |
| 94 | 94 | $cloner = $proxy->__getCloner(); |
| 95 | 95 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | */ |
| 131 | 131 | private function createCloner(ApiMetadata $classMetadata, ApiPersister $persister) |
| 132 | 132 | { |
| 133 | - return function (Proxy $proxy) use ($classMetadata, $persister) { |
|
| 133 | + return function(Proxy $proxy) use ($classMetadata, $persister) { |
|
| 134 | 134 | if ($proxy->__isInitialized()) { |
| 135 | 135 | return; |
| 136 | 136 | } |
@@ -175,10 +175,10 @@ |
||
| 175 | 175 | * @todo Check identity map? loadById method? Try to guess whether $criteria is the id? |
| 176 | 176 | */ |
| 177 | 177 | public function load(array $criteria, |
| 178 | - $entity = null, |
|
| 179 | - $assoc = null, |
|
| 180 | - $limit = null, |
|
| 181 | - array $orderBy = null) |
|
| 178 | + $entity = null, |
|
| 179 | + $assoc = null, |
|
| 180 | + $limit = null, |
|
| 181 | + array $orderBy = null) |
|
| 182 | 182 | { |
| 183 | 183 | // TODO: Implement load() method. |
| 184 | 184 | } |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | /** @var EntityMetadata $target */ |
| 116 | 116 | $target = $this->manager->getClassMetadata($mapping['target']); |
| 117 | 117 | |
| 118 | - $converter = function ($value) use ($target) { |
|
| 118 | + $converter = function($value) use ($target) { |
|
| 119 | 119 | if (!is_object($value)) { |
| 120 | 120 | return $value; |
| 121 | 121 | } |
@@ -87,8 +87,7 @@ |
||
| 87 | 87 | if (array_key_exists('entityPath', $element['client'])) { |
| 88 | 88 | $pathSeparator = |
| 89 | 89 | array_key_exists('entityPathSeparator', $element['client']) ? |
| 90 | - $element['client']['entityPathSeparator'] : |
|
| 91 | - null; |
|
| 90 | + $element['client']['entityPathSeparator'] : null; |
|
| 92 | 91 | $methodProvider = new EntityMethodProvider($element['client']['entityPath'], $pathSeparator); |
| 93 | 92 | } |
| 94 | 93 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * @param ApiMetadata $metadata |
| 80 | 80 | * @param array $identifiers |
| 81 | 81 | * |
| 82 | - * @return mixed |
|
| 82 | + * @return string |
|
| 83 | 83 | */ |
| 84 | 84 | private function getEntityKey(ApiMetadata $metadata, array $identifiers) |
| 85 | 85 | { |
@@ -258,7 +258,7 @@ |
||
| 258 | 258 | |
| 259 | 259 | self::assertCount(2, $references); |
| 260 | 260 | foreach ($references as $reference) { |
| 261 | - self::assertSame('test-payload-'.$reference->getId(), $reference->getReferencePayload()); |
|
| 261 | + self::assertSame('test-payload-' . $reference->getId(), $reference->getReferencePayload()); |
|
| 262 | 262 | } |
| 263 | 263 | } |
| 264 | 264 | |