Failed Conditions
Pull Request — develop (#6935)
by Michael
65:23
created
lib/Doctrine/ORM/Cache/CollectionCacheKey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache;
7 7
 
@@ -46,6 +46,6 @@  discard block
 block discarded – undo
46 46
         $this->ownerIdentifier  = $ownerIdentifier;
47 47
         $this->entityClass      = (string) $entityClass;
48 48
         $this->association      = (string) $association;
49
-        $this->hash             = str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' .  $association;
49
+        $this->hash             = str_replace('\\', '.', strtolower($entityClass)).'_'.implode(' ', $ownerIdentifier).'__'.$association;
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/RepositoryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/ToolEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Tools;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Event/GenerateSchemaTableEventArgs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Doctrine\ORM\Tools\Event;
5 5
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Setup.php 1 patch
Spacing   +5 added lines, -5 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\Tools;
6 6
 
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public static function registerAutoloadDirectory($directory)
30 30
     {
31
-        if (!class_exists('Doctrine\Common\ClassLoader', false)) {
32
-            require_once $directory . "/Doctrine/Common/ClassLoader.php";
31
+        if ( ! class_exists('Doctrine\Common\ClassLoader', false)) {
32
+            require_once $directory."/Doctrine/Common/ClassLoader.php";
33 33
         }
34 34
 
35 35
         $loader = new ClassLoader("Doctrine", $directory);
36 36
         $loader->register();
37 37
 
38
-        $loader = new ClassLoader('Symfony\Component', $directory . "/Doctrine");
38
+        $loader = new ClassLoader('Symfony\Component', $directory."/Doctrine");
39 39
         $loader->register();
40 40
     }
41 41
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
 
113 113
         if ($cache instanceof CacheProvider) {
114
-            $cache->setNamespace("dc2_" . md5($proxyDir) . "_"); // to avoid collisions
114
+            $cache->setNamespace("dc2_".md5($proxyDir)."_"); // to avoid collisions
115 115
         }
116 116
 
117 117
         $config = new Configuration();
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/RowNumberOverFunction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Tools\Pagination;
7 7
 
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
31 31
     {
32
-        return 'ROW_NUMBER() OVER(' . trim($sqlWalker->walkOrderByClause(
32
+        return 'ROW_NUMBER() OVER('.trim($sqlWalker->walkOrderByClause(
33 33
             $this->orderByClause
34
-        )) . ')';
34
+        )).')';
35 35
     }
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/CountOutputWalker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Tools\Pagination;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.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\Tools\Pagination;
6 6
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 [$pathExpression]
98 98
             );
99 99
             $expression = new InExpression($arithmeticExpression);
100
-            $expression->literals[] = new InputParameter(":" . self::PAGINATOR_ID_ALIAS);
100
+            $expression->literals[] = new InputParameter(":".self::PAGINATOR_ID_ALIAS);
101 101
 
102 102
         } else {
103 103
             $expression = new NullComparisonExpression($pathExpression);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryWalker.php 2 patches
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\Tools\Pagination;
6 6
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         if ($property instanceof AssociationMetadata) {
74 74
             throw new \RuntimeException(
75
-                "Paginating an entity with foreign key as identifier only works when using the Output Walkers. " .
75
+                "Paginating an entity with foreign key as identifier only works when using the Output Walkers. ".
76 76
                 "Call Paginator#setUseOutputWalkers(true) before iterating the paginator."
77 77
             );
78 78
         }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
                 $AST->selectClause->selectExpressions[] = new SelectExpression(
101 101
                     $this->createSelectExpressionItem($item->expression),
102
-                    '_dctrn_ord' . $this->aliasCounter++
102
+                    '_dctrn_ord'.$this->aliasCounter++
103 103
                 );
104 104
             }
105 105
         }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Pagination;
6 6
 
7
-use Doctrine\DBAL\Types\Type;
8 7
 use Doctrine\ORM\Mapping\AssociationMetadata;
9 8
 use Doctrine\ORM\Mapping\ToManyAssociationMetadata;
10 9
 use Doctrine\ORM\Query;
Please login to merge, or discard this patch.