@@ -24,5 +24,5 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @return string |
| 26 | 26 | */ |
| 27 | - public function getEntityKey(ApiMetadata $metadata,array $identifier); |
|
| 27 | + public function getEntityKey(ApiMetadata $metadata, array $identifier); |
|
| 28 | 28 | } |
@@ -155,9 +155,9 @@ |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | if ($property->isProtected()) { |
| 158 | - return "\0*\0".$propertyName; |
|
| 158 | + return "\0*\0" . $propertyName; |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | - return "\0".$property->getDeclaringClass()->getName()."\0".$propertyName; |
|
| 161 | + return "\0" . $property->getDeclaringClass()->getName() . "\0" . $propertyName; |
|
| 162 | 162 | } |
| 163 | 163 | } |
@@ -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 | |
@@ -491,7 +491,7 @@ |
||
| 491 | 491 | } |
| 492 | 492 | |
| 493 | 493 | // Fetch mode. Default fetch mode to LAZY, if not set. |
| 494 | - if ( ! isset($mapping['fetch'])) { |
|
| 494 | + if (!isset($mapping['fetch'])) { |
|
| 495 | 495 | $mapping['fetch'] = self::FETCH_LAZY; |
| 496 | 496 | } |
| 497 | 497 | |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | return array_udiff_assoc( |
| 205 | 205 | $this->snapshot, |
| 206 | 206 | $this->collection->toArray(), |
| 207 | - function ($a, $b) { |
|
| 207 | + function($a, $b) { |
|
| 208 | 208 | return $a === $b ? 0 : 1; |
| 209 | 209 | } |
| 210 | 210 | ); |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | return array_udiff_assoc( |
| 222 | 222 | $this->collection->toArray(), |
| 223 | 223 | $this->snapshot, |
| 224 | - function ($a, $b) { |
|
| 224 | + function($a, $b) { |
|
| 225 | 225 | return $a === $b ? 0 : 1; |
| 226 | 226 | } |
| 227 | 227 | ); |
@@ -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 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | return $this->provider->getMethod($method); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - return $this->entityPath.$this->pathSeparator.$method; |
|
| 48 | + return $this->entityPath . $this->pathSeparator . $method; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** @var EntityMetadata $target */ |
| 45 | 45 | $target = $this->manager->getClassMetadata($mapping['target']); |
| 46 | 46 | |
| 47 | - $converter = function ($value) use ($target) { |
|
| 47 | + $converter = function($value) use ($target) { |
|
| 48 | 48 | if (!is_object($value)) { |
| 49 | 49 | return $value; |
| 50 | 50 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | $values = $converter($values); |
| 71 | 71 | } |
| 72 | 72 | } else { |
| 73 | - $caster = function ($value) use ($field) { |
|
| 73 | + $caster = function($value) use ($field) { |
|
| 74 | 74 | $type = $this->manager |
| 75 | 75 | ->getConfiguration() |
| 76 | 76 | ->getTypeRegistry()->get($this->metadata->getTypeOfField($field)); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | throw MappingException::unknownAlias($namespaceAlias); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - return $this->aliases[$namespaceAlias].$simpleClassName; |
|
| 57 | + return $this->aliases[$namespaceAlias] . $simpleClassName; |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** {@inheritdoc} */ |