@@ -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 | /** |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | /** @var EntityMetadata $target */ |
111 | 111 | $target = $this->manager->getClassMetadata($mapping['target']); |
112 | 112 | |
113 | - $converter = function ($value) use ($target) { |
|
113 | + $converter = function($value) use ($target) { |
|
114 | 114 | if (!is_object($value)) { |
115 | 115 | return $value; |
116 | 116 | } |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | $targetMetadata = $this->manager->getClassMetadata($targetClass); |
275 | 275 | |
276 | 276 | if ($this->metadata->isIdentifierComposite) { |
277 | - throw new \BadMethodCallException(__METHOD__.' on composite reference is not supported'); |
|
277 | + throw new \BadMethodCallException(__METHOD__ . ' on composite reference is not supported'); |
|
278 | 278 | } |
279 | 279 | |
280 | 280 | $criteria = [ |
@@ -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} */ |
@@ -65,12 +65,12 @@ discard block |
||
65 | 65 | |
66 | 66 | assert( |
67 | 67 | in_array(Searcher::class, class_implements($metadata->searcher), true), |
68 | - 'Searcher '.$metadata->searcher.' should implement '.Searcher::class |
|
68 | + 'Searcher ' . $metadata->searcher . ' should implement ' . Searcher::class |
|
69 | 69 | ); |
70 | 70 | |
71 | 71 | assert( |
72 | 72 | in_array(Finder::class, class_implements($metadata->finder), true), |
73 | - 'Finder '.$metadata->finder.' should implement '.Finder::class |
|
73 | + 'Finder ' . $metadata->finder . ' should implement ' . Finder::class |
|
74 | 74 | ); |
75 | 75 | |
76 | 76 | $methodProvider = null; |
@@ -80,8 +80,7 @@ discard block |
||
80 | 80 | if (array_key_exists('entityPath', $element['client'])) { |
81 | 81 | $pathSeparator = |
82 | 82 | array_key_exists('entityPathSeparator', $element['client']) ? |
83 | - $element['client']['entityPathSeparator'] : |
|
84 | - null; |
|
83 | + $element['client']['entityPathSeparator'] : null; |
|
85 | 84 | $methodProvider = |
86 | 85 | new EntityMethodProvider($element['client']['entityPath'], $pathSeparator, $methodProvider); |
87 | 86 | } |
@@ -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 | } |