@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | ?string $className = null, |
| 81 | 81 | ?string $embeddedClassName = null |
| 82 | 82 | ) : string { |
| 83 | - return $this->underscore($propertyName) . '_' . $embeddedColumnName; |
|
| 83 | + return $this->underscore($propertyName).'_'.$embeddedColumnName; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function joinColumnName(string $propertyName, ?string $className = null) : string |
| 98 | 98 | { |
| 99 | - return $this->underscore($propertyName) . '_' . $this->referenceColumnName(); |
|
| 99 | + return $this->underscore($propertyName).'_'.$this->referenceColumnName(); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function joinTableName(string $sourceEntity, string $targetEntity, ?string $propertyName = null) : string |
| 106 | 106 | { |
| 107 | - return $this->classToTableName($sourceEntity) . '_' . $this->classToTableName($targetEntity); |
|
| 107 | + return $this->classToTableName($sourceEntity).'_'.$this->classToTableName($targetEntity); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function joinKeyColumnName(string $entityName, ?string $referencedColumnName = null) : string |
| 114 | 114 | { |
| 115 | - return $this->classToTableName($entityName) . '_' . |
|
| 115 | + return $this->classToTableName($entityName).'_'. |
|
| 116 | 116 | ($referencedColumnName ?: $this->referenceColumnName()); |
| 117 | 117 | } |
| 118 | 118 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ) : ClassMetadataDefinition { |
| 31 | 31 | $definition = $this->createDefinition($className, $parentMetadata); |
| 32 | 32 | |
| 33 | - if (! class_exists($definition->metadataClassName, false)) { |
|
| 33 | + if ( ! class_exists($definition->metadataClassName, false)) { |
|
| 34 | 34 | $metadataClassPath = $this->resolver->resolveMetadataClassPath($className); |
| 35 | 35 | |
| 36 | 36 | $this->generatorStrategy->generate($metadataClassPath, $definition, $metadataBuildingContext); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | public function joinColumnName(string $propertyName, ?string $className = null) : string |
| 19 | 19 | { |
| 20 | 20 | return strtolower($this->classToTableName($className)) |
| 21 | - . '_' . $propertyName |
|
| 22 | - . '_' . $this->referenceColumnName(); |
|
| 21 | + . '_'.$propertyName |
|
| 22 | + . '_'.$this->referenceColumnName(); |
|
| 23 | 23 | } |
| 24 | 24 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $driver = new DatabaseDriver($sm); |
| 62 | 62 | |
| 63 | 63 | foreach ($driver->getAllClassNames() as $className) { |
| 64 | - if (! in_array(strtolower($className), $classNames, true)) { |
|
| 64 | + if ( ! in_array(strtolower($className), $classNames, true)) { |
|
| 65 | 65 | continue; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | if (count($metadataList) !== count($classNames)) { |
| 74 | - $this->fail("Have not found all classes matching the names '" . implode(', ', $classNames) . "' only tables " . implode(', ', array_keys($metadataList))); |
|
| 74 | + $this->fail("Have not found all classes matching the names '".implode(', ', $classNames)."' only tables ".implode(', ', array_keys($metadataList))); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | return $metadataList; |
@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | $config = new Configuration(); |
| 27 | 27 | |
| 28 | - $config->setProxyDir(__DIR__ . '/../Tests/Proxies'); |
|
| 28 | + $config->setProxyDir(__DIR__.'/../Tests/Proxies'); |
|
| 29 | 29 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 30 | 30 | $config->setAutoGenerateProxyClasses(StaticProxyFactory::AUTOGENERATE_EVAL); |
| 31 | 31 | $config->setMetadataDriverImpl( |
| 32 | 32 | $config->newDefaultAnnotationDriver([ |
| 33 | - realpath(__DIR__ . '/Models/Cache'), |
|
| 34 | - realpath(__DIR__ . '/Models/GeoNames'), |
|
| 33 | + realpath(__DIR__.'/Models/Cache'), |
|
| 34 | + realpath(__DIR__.'/Models/GeoNames'), |
|
| 35 | 35 | ]) |
| 36 | 36 | ); |
| 37 | 37 | |
@@ -53,15 +53,15 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $config = new Configuration(); |
| 55 | 55 | |
| 56 | - $config->setProxyDir(__DIR__ . '/../Tests/Proxies'); |
|
| 56 | + $config->setProxyDir(__DIR__.'/../Tests/Proxies'); |
|
| 57 | 57 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 58 | 58 | $config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_EVAL); |
| 59 | 59 | $config->setMetadataDriverImpl( |
| 60 | 60 | $config->newDefaultAnnotationDriver( |
| 61 | 61 | [ |
| 62 | - realpath(__DIR__ . '/Models/Cache'), |
|
| 63 | - realpath(__DIR__ . '/Models/Generic'), |
|
| 64 | - realpath(__DIR__ . '/Models/GeoNames'), |
|
| 62 | + realpath(__DIR__.'/Models/Cache'), |
|
| 63 | + realpath(__DIR__.'/Models/Generic'), |
|
| 64 | + realpath(__DIR__.'/Models/GeoNames'), |
|
| 65 | 65 | ] |
| 66 | 66 | ) |
| 67 | 67 | ); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | protected function getReflectionService() : ReflectionService |
| 20 | 20 | { |
| 21 | - if (! $this->reflectionService) { |
|
| 21 | + if ( ! $this->reflectionService) { |
|
| 22 | 22 | $this->reflectionService = new StaticReflectionService(); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | protected function getReflectionService() : ReflectionService |
| 20 | 20 | { |
| 21 | - if (! $this->reflectionService) { |
|
| 21 | + if ( ! $this->reflectionService) { |
|
| 22 | 22 | $this->reflectionService = new RuntimeReflectionService(); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -25,11 +25,11 @@ |
||
| 25 | 25 | /** @var FieldMetadata $value */ |
| 26 | 26 | $variableExporter = new VariableExporter(); |
| 27 | 27 | $indentation = str_repeat(self::INDENTATION, $indentationLevel); |
| 28 | - $objectReference = $indentation . self::VARIABLE; |
|
| 28 | + $objectReference = $indentation.self::VARIABLE; |
|
| 29 | 29 | |
| 30 | 30 | $lines = []; |
| 31 | 31 | $lines[] = parent::export($value, $indentationLevel); |
| 32 | - $lines[] = $objectReference . '->setVersioned(' . ltrim($variableExporter->export($value->isVersioned(), $indentationLevel + 1)) . ');'; |
|
| 32 | + $lines[] = $objectReference.'->setVersioned('.ltrim($variableExporter->export($value->isVersioned(), $indentationLevel + 1)).');'; |
|
| 33 | 33 | |
| 34 | 34 | return implode(PHP_EOL, $lines); |
| 35 | 35 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** @var Mapping\ClassMetadata $metadata */ |
| 46 | 46 | $metadata = $event->getClassMetadata(); |
| 47 | 47 | |
| 48 | - if (! isset($this->entityListeners[$metadata->getClassName()])) { |
|
| 48 | + if ( ! isset($this->entityListeners[$metadata->getClassName()])) { |
|
| 49 | 49 | return; |
| 50 | 50 | } |
| 51 | 51 | |