Failed Conditions
Push — develop ( 856053...a7d1bd )
by Guilherme
61:28
created
lib/Doctrine/ORM/Tools/Export/Driver/AbstractExporter.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\Tools\Export\Driver;
6 6
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 if ( ! is_dir($dir)) {
127 127
                     mkdir($dir, 0775, true);
128 128
                 }
129
-                if (file_exists($path) && !$this->overwriteExistingFiles) {
129
+                if (file_exists($path) && ! $this->overwriteExistingFiles) {
130 130
                     throw ExportException::attemptOverwriteExistingFile($path);
131 131
                 }
132 132
                 file_put_contents($path, $output);
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function generateOutputPath(ClassMetadata $metadata)
146 146
     {
147
-        return $this->outputDir . '/' . str_replace('\\', '.', $metadata->getClassName()) . $this->extension;
147
+        return $this->outputDir.'/'.str_replace('\\', '.', $metadata->getClassName()).$this->extension;
148 148
     }
149 149
 
150 150
     /**
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/LimitSubqueryOutputWalker.php 1 patch
Spacing   +10 added lines, -10 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
 
@@ -194,11 +194,11 @@  discard block
 block discarded – undo
194 194
 
195 195
         $innerSql           = $this->getInnerSQL($AST);
196 196
         $sqlIdentifier      = $this->getSQLIdentifier($AST);
197
-        $sqlAliasIdentifier = array_map(function ($info) { return $info['alias']; }, $sqlIdentifier);
197
+        $sqlAliasIdentifier = array_map(function($info) { return $info['alias']; }, $sqlIdentifier);
198 198
 
199 199
         if ($hasOrderBy) {
200
-            $orderGroupBy = ' GROUP BY ' . implode(', ', $sqlAliasIdentifier);
201
-            $sqlPiece     = 'MIN(' . $this->walkResultVariable('dctrn_rownum') . ') AS dctrn_minrownum';
200
+            $orderGroupBy = ' GROUP BY '.implode(', ', $sqlAliasIdentifier);
201
+            $sqlPiece     = 'MIN('.$this->walkResultVariable('dctrn_rownum').') AS dctrn_minrownum';
202 202
 
203 203
             $sqlAliasIdentifier[] = $sqlPiece;
204 204
             $sqlIdentifier[] = [
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         $sql = sprintf('SELECT DISTINCT %s FROM (%s) dctrn_result', implode(', ', $sqlAliasIdentifier), $innerSql);
212 212
 
213 213
         if ($hasOrderBy) {
214
-            $sql .= $orderGroupBy . $outerOrderBy;
214
+            $sql .= $orderGroupBy.$outerOrderBy;
215 215
         }
216 216
 
217 217
         // Apply the limit and offset.
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
         $innerSql           = $this->getInnerSQL($AST);
258 258
         $sqlIdentifier      = $this->getSQLIdentifier($AST);
259
-        $sqlAliasIdentifier = array_map(function ($info) { return $info['alias']; }, $sqlIdentifier);
259
+        $sqlAliasIdentifier = array_map(function($info) { return $info['alias']; }, $sqlIdentifier);
260 260
 
261 261
         // Build the counter query
262 262
         $sql = sprintf('SELECT DISTINCT %s FROM (%s) dctrn_result', implode(', ', $sqlAliasIdentifier), $innerSql);
@@ -361,10 +361,10 @@  discard block
 block discarded – undo
361 361
         array $sqlIdentifier,
362 362
         string $innerSql,
363 363
         string $sql,
364
-        ?OrderByClause $orderByClause
364
+        ? OrderByClause $orderByClause
365 365
     ) : string {
366 366
         // If the sql statement has an order by clause, we need to wrap it in a new select distinct statement
367
-        if (! $orderByClause) {
367
+        if ( ! $orderByClause) {
368 368
             return $sql;
369 369
         }
370 370
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
             $orderByItems[] = $orderByItemString;
407 407
             $identifier     = \substr($orderByItemString, 0, \strrpos($orderByItemString, ' '));
408 408
 
409
-            if (! \in_array($identifier, $identifiers, true)) {
409
+            if ( ! \in_array($identifier, $identifiers, true)) {
410 410
                 $identifiers[] = $identifier;
411 411
             }
412 412
         }
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
      */
563 563
     public function walkPathExpression($pathExpr)
564 564
     {
565
-        if (!$this->inSubSelect && !$this->platformSupportsRowNumber() && !in_array($pathExpr, $this->orderByPathExpressions)) {
565
+        if ( ! $this->inSubSelect && ! $this->platformSupportsRowNumber() && ! in_array($pathExpr, $this->orderByPathExpressions)) {
566 566
             $this->orderByPathExpressions[] = $pathExpr;
567 567
         }
568 568
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/MetadataFilter.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\Console;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Helper/EntityManagerHelper.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\Console\Helper;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.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\Console\Command;
6 6
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         }
83 83
 
84 84
         $hydrationModeName = $input->getOption('hydrate');
85
-        $hydrationMode = 'Doctrine\ORM\Query::HYDRATE_' . strtoupper(str_replace('-', '_', $hydrationModeName));
85
+        $hydrationMode = 'Doctrine\ORM\Query::HYDRATE_'.strtoupper(str_replace('-', '_', $hydrationModeName));
86 86
 
87 87
         if ( ! defined($hydrationMode)) {
88 88
             throw new \RuntimeException(
Please login to merge, or discard this patch.