@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
| 3 | +require_once __DIR__.'/vendor/autoload.php'; |
|
| 4 | 4 | |
| 5 | 5 | class Foo |
| 6 | 6 | { |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | { |
| 154 | 154 | return array_filter( |
| 155 | 155 | $entities, |
| 156 | - function ($entity) { |
|
| 156 | + function($entity) { |
|
| 157 | 157 | return $entity instanceof Proxy && !$entity->__isInitialized(); |
| 158 | 158 | } |
| 159 | 159 | ); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | { |
| 169 | 169 | return array_filter( |
| 170 | 170 | array_map( |
| 171 | - function (Collection $collection) { |
|
| 171 | + function(Collection $collection) { |
|
| 172 | 172 | if ( |
| 173 | 173 | $collection instanceof PersistentCollection |
| 174 | 174 | && !$collection->isInitialized() |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | public function getIdentifierValueForMultiple(array $objects): array |
| 96 | 96 | { |
| 97 | 97 | return array_map( |
| 98 | - function ($object) { |
|
| 98 | + function($object) { |
|
| 99 | 99 | return $this->getIdentifierValueForOne($object); |
| 100 | 100 | }, |
| 101 | 101 | $objects |
@@ -33,12 +33,12 @@ discard block |
||
| 33 | 33 | public function getClassMetadataWrapperByObjects(array $objects) |
| 34 | 34 | { |
| 35 | 35 | $classNames = array_unique(array_map( |
| 36 | - function ($object) { return get_class($object); }, |
|
| 36 | + function($object) { return get_class($object); }, |
|
| 37 | 37 | $objects |
| 38 | 38 | )); |
| 39 | 39 | |
| 40 | 40 | $classMetadataWrappers = array_map( |
| 41 | - function (string $className) { return $this->getClassMetadataWrapperByClassName($className); }, |
|
| 41 | + function(string $className) { return $this->getClassMetadataWrapperByClassName($className); }, |
|
| 42 | 42 | $classNames |
| 43 | 43 | ); |
| 44 | 44 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | $classNames = array_unique(array_map( |
| 51 | - function (ClassMetadataWrapper $classMetadataWrapper) { |
|
| 51 | + function(ClassMetadataWrapper $classMetadataWrapper) { |
|
| 52 | 52 | return $classMetadataWrapper->getClassName(); |
| 53 | 53 | }, |
| 54 | 54 | $classMetadataWrappers |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | $rootClassNames = array_unique(array_map( |
| 62 | - function (ClassMetadataWrapper $classMetadataWrapper) { |
|
| 62 | + function(ClassMetadataWrapper $classMetadataWrapper) { |
|
| 63 | 63 | return $classMetadataWrapper->getRootClassName(); |
| 64 | 64 | }, |
| 65 | 65 | $classMetadataWrappers |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $bufferedCollect = new BufferedCollect($objects, $associationPath); |
| 47 | 47 | $this->bufferedCollects[] = $bufferedCollect; |
| 48 | 48 | |
| 49 | - return function () use ($bufferedCollect) { |
|
| 49 | + return function() use ($bufferedCollect) { |
|
| 50 | 50 | if (!empty($this->bufferedCollects)) { |
| 51 | 51 | $this->resolveSimilar($bufferedCollect); |
| 52 | 52 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | protected function setupEntityManager() |
| 21 | 21 | { |
| 22 | 22 | $entityPaths = [ |
| 23 | - __DIR__ . '/Entity', |
|
| 23 | + __DIR__.'/Entity', |
|
| 24 | 24 | ]; |
| 25 | 25 | |
| 26 | 26 | $isDevMode = false; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function __construct() |
| 40 | 40 | { |
| 41 | 41 | $data = Yaml::parse( |
| 42 | - file_get_contents(__DIR__ . '/data.yml') |
|
| 42 | + file_get_contents(__DIR__.'/data.yml') |
|
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | $categoriesMap = []; |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | ); |
| 195 | 195 | } |
| 196 | 196 | foreach (array_keys($childPaths) as $childPathIndex) { |
| 197 | - $childPaths[$childPathIndex] = $path . $childPaths[$childPathIndex]; |
|
| 197 | + $childPaths[$childPathIndex] = $path.$childPaths[$childPathIndex]; |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | return $childPaths; |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | protected function setupEntityManager() |
| 22 | 22 | { |
| 23 | 23 | $entityPaths = [ |
| 24 | - __DIR__ . '/DoctrineOrm/Mock/Entity', |
|
| 24 | + __DIR__.'/DoctrineOrm/Mock/Entity', |
|
| 25 | 25 | ]; |
| 26 | 26 | |
| 27 | 27 | $isDevMode = false; |