Passed
Pull Request — master (#7196)
by Grégoire
12:32
created
lib/Doctrine/ORM/Query/Lexer.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\Query;
6 6
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
             // Recognize identifiers, aliased or qualified names
157 157
             case (ctype_alpha($value[0]) || $value[0] === '_' || $value[0] === '\\'):
158
-                $name = 'Doctrine\ORM\Query\Lexer::T_' . strtoupper($value);
158
+                $name = 'Doctrine\ORM\Query\Lexer::T_'.strtoupper($value);
159 159
 
160 160
                 if (defined($name)) {
161 161
                     $type = constant($name);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/DeleteStatement.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\Query\AST;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/BitAndFunction.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\Query\AST\Functions;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/AST/Functions/IdentityFunction.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\Query\AST\Functions;
6 6
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $tableAlias       = $sqlWalker->getSQLTableAlias($tableName, $dqlAlias);
74 74
         $quotedColumnName = $platform->quoteIdentifier($joinColumn->getColumnName());
75 75
 
76
-        return $tableAlias . '.' . $quotedColumnName;
76
+        return $tableAlias.'.'.$quotedColumnName;
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Internal/HydrationCompleteHandlerTest.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\Tests\ORM\Internal;
6 6
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 $metadata,
75 75
                 Events::postLoad,
76 76
                 $entity,
77
-                $this->callback(function (LifecycleEventArgs $args) use ($entityManager, $entity) {
77
+                $this->callback(function(LifecycleEventArgs $args) use ($entityManager, $entity) {
78 78
                     return $entity === $args->getEntity() && $entityManager === $args->getObjectManager();
79 79
                 }),
80 80
                 $listenersFlag
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 $this->logicalOr($metadata1, $metadata2),
143 143
                 Events::postLoad,
144 144
                 $this->logicalOr($entity1, $entity2),
145
-                $this->callback(function (LifecycleEventArgs $args) use ($entityManager, $entity1, $entity2) {
145
+                $this->callback(function(LifecycleEventArgs $args) use ($entityManager, $entity1, $entity2) {
146 146
                     return in_array($args->getEntity(), [$entity1, $entity2], true)
147 147
                         && $entityManager === $args->getObjectManager();
148 148
                 }),
Please login to merge, or discard this patch.
bin/doctrine-pear.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
 require_once 'Doctrine/Common/ClassLoader.php';
7 7
 
@@ -11,13 +11,13 @@  discard block
 block discarded – undo
11 11
 $classLoader = new \Doctrine\Common\ClassLoader('Symfony');
12 12
 $classLoader->register();
13 13
 
14
-$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';
14
+$configFile = getcwd().DIRECTORY_SEPARATOR.'cli-config.php';
15 15
 
16 16
 $helperSet = null;
17 17
 if (file_exists($configFile)) {
18 18
     if ( ! is_readable($configFile)) {
19 19
         trigger_error(
20
-            'Configuration file [' . $configFile . '] does not have read permission.', E_USER_ERROR
20
+            'Configuration file ['.$configFile.'] does not have read permission.', E_USER_ERROR
21 21
         );
22 22
     }
23 23
 
Please login to merge, or discard this patch.
bin/doctrine.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 use Symfony\Component\Console\Helper\HelperSet;
6 6
 use Doctrine\ORM\Tools\Console\ConsoleRunner;
7 7
 
8 8
 $autoloadFiles = [
9
-    __DIR__ . '/../vendor/autoload.php',
10
-    __DIR__ . '/../../../autoload.php'
9
+    __DIR__.'/../vendor/autoload.php',
10
+    __DIR__.'/../../../autoload.php'
11 11
 ];
12 12
 
13 13
 foreach ($autoloadFiles as $autoloadFile) {
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
     }
18 18
 }
19 19
 
20
-$directories = [getcwd(), getcwd() . DIRECTORY_SEPARATOR . 'config'];
20
+$directories = [getcwd(), getcwd().DIRECTORY_SEPARATOR.'config'];
21 21
 
22 22
 $configFile = null;
23 23
 foreach ($directories as $directory) {
24
-    $configFile = $directory . DIRECTORY_SEPARATOR . 'cli-config.php';
24
+    $configFile = $directory.DIRECTORY_SEPARATOR.'cli-config.php';
25 25
 
26 26
     if (file_exists($configFile)) {
27 27
         break;
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 }
35 35
 
36 36
 if ( ! is_readable($configFile)) {
37
-    echo 'Configuration file [' . $configFile . '] does not have read permission.' . "\n";
37
+    echo 'Configuration file ['.$configFile.'] does not have read permission.'."\n";
38 38
     exit(1);
39 39
 }
40 40
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/UnexpectedResultException.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;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/CollectionCacheEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 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
 
Please login to merge, or discard this patch.