Completed
Pull Request — master (#6962)
by
unknown
10:35
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   +4 added lines, -4 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
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         $this->reverseEngineerMappingFromDatabase();
163 163
 
164 164
         if ( ! isset($this->classToTableNames[$className])) {
165
-            throw new \InvalidArgumentException("Unknown class " . $className);
165
+            throw new \InvalidArgumentException("Unknown class ".$className);
166 166
         }
167 167
 
168 168
         // @todo guilhermeblanco This should somehow disappear... =)
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
             if ( ! $table->hasPrimaryKey()) {
279 279
                 throw new Mapping\MappingException(
280
-                    "Table " . $table->getName() . " has no primary key. Doctrine does not ".
280
+                    "Table ".$table->getName()." has no primary key. Doctrine does not ".
281 281
                     "support reverse engineering from tables that don't have a primary key."
282 282
                 );
283 283
             }
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
      */
525 525
     private function getClassNameForTable($tableName)
526 526
     {
527
-        return $this->namespace . (
527
+        return $this->namespace.(
528 528
             $this->classNamesForTables[$tableName] ??
529 529
             Inflector::classify(strtolower($tableName))
530 530
         );
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
 
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
      */
86 86
     final public function getParameter($name)
87 87
     {
88
-        if (!isset($this->parameters[$name])) {
89
-            throw new \InvalidArgumentException("Parameter '" . $name . "' does not exist.");
88
+        if ( ! isset($this->parameters[$name])) {
89
+            throw new \InvalidArgumentException("Parameter '".$name."' does not exist.");
90 90
         }
91 91
 
92 92
         return $this->em->getConnection()->quote($this->parameters[$name]['value'], $this->parameters[$name]['type']);
Please login to merge, or discard this patch.