@@ -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} */ |
@@ -45,7 +45,7 @@ |
||
45 | 45 | foreach ($entities as $entity) { |
46 | 46 | self::assertInternalType('int', $entity->getId()); |
47 | 47 | self::assertInstanceOf(SubEntity::class, $entity); |
48 | - self::assertEquals('test-payload-'.$entity->getId(), $entity->getPayload()); |
|
48 | + self::assertEquals('test-payload-' . $entity->getId(), $entity->getPayload()); |
|
49 | 49 | self::assertEquals('sub-payload', $entity->getSubPayload()); |
50 | 50 | |
51 | 51 | if (null !== $entity->getStringPayload()) { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | self::assertInternalType('int', $reference->getId()); |
102 | 102 | self::assertInternalType('int', $reference->getOwner()->getId()); |
103 | 103 | self::assertInstanceOf(TestReference::class, $reference); |
104 | - self::assertEquals('test-payload-'.$reference->getId(), $reference->getReferencePayload()); |
|
104 | + self::assertEquals('test-payload-' . $reference->getId(), $reference->getReferencePayload()); |
|
105 | 105 | self::assertEquals($entity, $reference->getOwner()); |
106 | 106 | } |
107 | 107 | } |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | |
198 | 198 | self::assertCount(2, $references); |
199 | 199 | foreach ($references as $reference) { |
200 | - self::assertSame('test-payload-'.$reference->getId(), $reference->getReferencePayload()); |
|
200 | + self::assertSame('test-payload-' . $reference->getId(), $reference->getReferencePayload()); |
|
201 | 201 | } |
202 | 202 | } |
203 | 203 |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $cache = $this->prophesize(CacheItemPoolInterface::class); |
91 | 91 | $that = $this; |
92 | 92 | $cache->getItem(Argument::type('string'))->will( |
93 | - function ($args) use (&$items, $that) { |
|
93 | + function($args) use (&$items, $that) { |
|
94 | 94 | $key = $args[0]; |
95 | 95 | if (!array_key_exists($key, $items)) { |
96 | 96 | $item = $that->prophesize(CacheItemInterface::class); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $item->isHit()->willReturn(false); |
99 | 99 | $item->get()->willReturn(null); |
100 | 100 | $item->set(Argument::any())->will( |
101 | - function ($args) use ($item) { |
|
101 | + function($args) use ($item) { |
|
102 | 102 | $item->get()->willReturn($args[0]); |
103 | 103 | |
104 | 104 | return $item; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | } |
116 | 116 | ); |
117 | 117 | $cache->save(Argument::type(CacheItemInterface::class))->will( |
118 | - function ($args) use (&$items) { |
|
118 | + function($args) use (&$items) { |
|
119 | 119 | $item = $args[0]; |
120 | 120 | $items[$item->getKey()]->isHit()->willReturn(true); |
121 | 121 | } |