Completed
Push — master ( a0071b...e33605 )
by Michael
12s
created
lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Repository;
6 6
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function getRepository(EntityManagerInterface $entityManager, $entityName)
28 28
     {
29
-        $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName() . spl_object_id($entityManager);
29
+        $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName().spl_object_id($entityManager);
30 30
 
31 31
         return $this->repositoryList[$repositoryHash]
32 32
                 ?? $this->repositoryList[$repositoryHash] = $this->createRepository($entityManager, $entityName);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Mapping\Driver;
6 6
 
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
     ) {
146 146
         $this->reverseEngineerMappingFromDatabase();
147 147
 
148
-        if (! isset($this->classToTableNames[$className])) {
149
-            throw new \InvalidArgumentException('Unknown class ' . $className);
148
+        if ( ! isset($this->classToTableNames[$className])) {
149
+            throw new \InvalidArgumentException('Unknown class '.$className);
150 150
         }
151 151
 
152 152
         // @todo guilhermeblanco This should somehow disappear... =)
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         foreach ($this->manyToManyTables as $manyTable) {
162 162
             foreach ($manyTable->getForeignKeys() as $foreignKey) {
163 163
                 // foreign key maps to the table of the current entity, many to many association probably exists
164
-                if (! ($loweredTableName === strtolower($foreignKey->getForeignTableName()))) {
164
+                if ( ! ($loweredTableName === strtolower($foreignKey->getForeignTableName()))) {
165 165
                     continue;
166 166
                 }
167 167
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                     }
177 177
                 }
178 178
 
179
-                if (! $otherFk) {
179
+                if ( ! $otherFk) {
180 180
                     // the definition of this many to many table does not contain
181 181
                     // enough foreign key information to continue reverse engineering.
182 182
                     continue;
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
                 $allForeignKeyColumns = array_merge($allForeignKeyColumns, $foreignKey->getLocalColumns());
258 258
             }
259 259
 
260
-            if (! $table->hasPrimaryKey()) {
260
+            if ( ! $table->hasPrimaryKey()) {
261 261
                 throw new Mapping\MappingException(
262
-                    'Table ' . $table->getName() . ' has no primary key. Doctrine does not ' .
262
+                    'Table '.$table->getName().' has no primary key. Doctrine does not '.
263 263
                     "support reverse engineering from tables that don't have a primary key."
264 264
                 );
265 265
             }
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
             }
450 450
 
451 451
             // Here we need to check if $fkColumns are the same as $primaryKeys
452
-            if (! array_diff($fkColumns, $primaryKeys)) {
452
+            if ( ! array_diff($fkColumns, $primaryKeys)) {
453 453
                 $metadata->addProperty($associationMapping);
454 454
             } else {
455 455
                 $metadata->addProperty($associationMapping);
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
      */
495 495
     private function getClassNameForTable($tableName)
496 496
     {
497
-        return $this->namespace . (
497
+        return $this->namespace.(
498 498
             $this->classNamesForTables[$tableName]
499 499
                 ?? Inflector::classify(strtolower($tableName))
500 500
         );
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Filter/SQLFilter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Query\Filter;
6 6
 
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
      */
82 82
     final public function getParameter($name)
83 83
     {
84
-        if (! isset($this->parameters[$name])) {
85
-            throw new \InvalidArgumentException("Parameter '" . $name . "' does not exist.");
84
+        if ( ! isset($this->parameters[$name])) {
85
+            throw new \InvalidArgumentException("Parameter '".$name."' does not exist.");
86 86
         }
87 87
 
88 88
         return $this->em->getConnection()->quote($this->parameters[$name]['value'], $this->parameters[$name]['type']);
Please login to merge, or discard this patch.