@@ -40,9 +40,9 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public static function emptyDiscriminatorValue($dqlAlias) |
| 42 | 42 | { |
| 43 | - return new self("The DQL alias '" . $dqlAlias . "' contains an entity " . |
|
| 44 | - 'of an inheritance hierarchy with an empty discriminator value. This means ' . |
|
| 45 | - 'that the database contains inconsistent data with an empty ' . |
|
| 43 | + return new self("The DQL alias '".$dqlAlias."' contains an entity ". |
|
| 44 | + 'of an inheritance hierarchy with an empty discriminator value. This means '. |
|
| 45 | + 'that the database contains inconsistent data with an empty '. |
|
| 46 | 46 | 'discriminator value in a table row.'); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $discrColumnName = $metaMappingDiscrColumnName; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - if (! isset($sqlResult[$discrColumnName])) { |
|
| 86 | + if ( ! isset($sqlResult[$discrColumnName])) { |
|
| 87 | 87 | throw HydrationException::missingDiscriminatorColumn($entityName, $discrColumnName, key($this->rsm->aliasMap)); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | $discrMap = $this->class->discriminatorMap; |
| 95 | 95 | |
| 96 | - if (! isset($discrMap[$sqlResult[$discrColumnName]])) { |
|
| 96 | + if ( ! isset($discrMap[$sqlResult[$discrColumnName]])) { |
|
| 97 | 97 | throw HydrationException::invalidDiscriminatorValue($sqlResult[$discrColumnName], array_keys($discrMap)); |
| 98 | 98 | } |
| 99 | 99 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | $cacheKeyInfo = $this->hydrateColumnInfo($column); |
| 112 | 112 | |
| 113 | - if (! $cacheKeyInfo) { |
|
| 113 | + if ( ! $cacheKeyInfo) { |
|
| 114 | 114 | continue; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $fieldName = $cacheKeyInfo['fieldName']; |
| 127 | 127 | |
| 128 | 128 | // Prevent overwrite in case of inherit classes using same property name (See AbstractHydrator) |
| 129 | - if (! isset($data[$fieldName]) || ! $valueIsNull) { |
|
| 129 | + if ( ! isset($data[$fieldName]) || ! $valueIsNull) { |
|
| 130 | 130 | $data[$fieldName] = $value; |
| 131 | 131 | } |
| 132 | 132 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | public function getNamingStrategy() : NamingStrategy |
| 80 | 80 | { |
| 81 | - if (! $this->namingStrategy) { |
|
| 81 | + if ( ! $this->namingStrategy) { |
|
| 82 | 82 | $this->namingStrategy = new DefaultNamingStrategy(); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public static function fromClassName(string $className) : self |
| 12 | 12 | { |
| 13 | 13 | return new self( |
| 14 | - "Invalid repository class '" . $className . "'. It must be a " . ObjectRepository::class . '.' |
|
| 14 | + "Invalid repository class '".$className."'. It must be a ".ObjectRepository::class.'.' |
|
| 15 | 15 | ); |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | public static function create() : self |
| 10 | 10 | { |
| 11 | 11 | return new self( |
| 12 | - "It's a requirement to specify a Metadata Driver and pass it " . |
|
| 12 | + "It's a requirement to specify a Metadata Driver and pass it ". |
|
| 13 | 13 | 'to Doctrine\\ORM\\Configuration::setMetadataDriverImpl().' |
| 14 | 14 | ); |
| 15 | 15 | } |
@@ -107,8 +107,8 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | $result = $this->loadMappingFile($this->locator->findMappingFile($className)); |
| 110 | - if (! isset($result[$className])) { |
|
| 111 | - throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className) . $this->locator->getFileExtension()); |
|
| 110 | + if ( ! isset($result[$className])) { |
|
| 111 | + throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className).$this->locator->getFileExtension()); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | $this->classCache[$className] = $result[$className]; |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $this->initialize(); |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - if (! $this->classCache) { |
|
| 144 | + if ( ! $this->classCache) { |
|
| 145 | 145 | return (array) $this->locator->getAllClassNames($this->globalBasename); |
| 146 | 146 | } |
| 147 | 147 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $this->classCache = []; |
| 176 | 176 | if ($this->globalBasename !== null) { |
| 177 | 177 | foreach ($this->locator->getPaths() as $path) { |
| 178 | - $file = $path . '/' . $this->globalBasename . $this->locator->getFileExtension(); |
|
| 178 | + $file = $path.'/'.$this->globalBasename.$this->locator->getFileExtension(); |
|
| 179 | 179 | if (is_file($file)) { |
| 180 | 180 | $this->classCache = array_merge( |
| 181 | 181 | $this->classCache, |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | foreach ($this->drivers as $namespace => $driver) { |
| 100 | 100 | $oid = spl_object_id($driver); |
| 101 | 101 | |
| 102 | - if (! isset($driverClasses[$oid])) { |
|
| 102 | + if ( ! isset($driverClasses[$oid])) { |
|
| 103 | 103 | $driverClasses[$oid] = $driver->getAllClassNames(); |
| 104 | 104 | } |
| 105 | 105 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | public function getQuotedQualifiedName(AbstractPlatform $platform) : string |
| 57 | 57 | { |
| 58 | - if (! $this->schema) { |
|
| 58 | + if ( ! $this->schema) { |
|
| 59 | 59 | return $platform->quoteIdentifier($this->name); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | public function addIndex(array $index) : void |
| 129 | 129 | { |
| 130 | - if (! isset($index['name'])) { |
|
| 130 | + if ( ! isset($index['name'])) { |
|
| 131 | 131 | $this->indexes[] = $index; |
| 132 | 132 | |
| 133 | 133 | return; |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | public function addUniqueConstraint(array $constraint) : void |
| 164 | 164 | { |
| 165 | - if (! isset($constraint['name'])) { |
|
| 165 | + if ( ! isset($constraint['name'])) { |
|
| 166 | 166 | $this->uniqueConstraints[] = $constraint; |
| 167 | 167 | |
| 168 | 168 | return; |
@@ -10,6 +10,6 @@ |
||
| 10 | 10 | { |
| 11 | 11 | public static function create(string $generatorType) : self |
| 12 | 12 | { |
| 13 | - return new self('Unknown generator type: ' . $generatorType); |
|
| 13 | + return new self('Unknown generator type: '.$generatorType); |
|
| 14 | 14 | } |
| 15 | 15 | } |