Failed Conditions
Push — master ( 6d428c...2a5864 )
by Marco
165:30 queued 100:26
created
tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     protected function setUp()
30 30
     {
31
-        $this->visitor = new QueryExpressionVisitor(['o','p']);
31
+        $this->visitor = new QueryExpressionVisitor(['o', 'p']);
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/ParserTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
      */
30 30
     public function testAbstractSchemaNameSupportsClassnamesWithLeadingBackslash()
31 31
     {
32
-        $parser = $this->createParser('\\' . CmsUser::class);
32
+        $parser = $this->createParser('\\'.CmsUser::class);
33 33
 
34
-        $this->assertEquals('\\' . CmsUser::class, $parser->AbstractSchemaName());
34
+        $this->assertEquals('\\'.CmsUser::class, $parser->AbstractSchemaName());
35 35
     }
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             }
50 50
 
51 51
             $query->setHint(ORMQuery::HINT_FORCE_PARTIAL_LOAD, true)
52
-                  ->useQueryCache(false);
52
+                    ->useQueryCache(false);
53 53
 
54 54
             foreach ($queryHints AS $name => $value) {
55 55
                 $query->setHint($name, $value);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         }
89 89
 
90 90
         $query->setHint(ORMQuery::HINT_FORCE_PARTIAL_LOAD, true)
91
-              ->useQueryCache(false);
91
+                ->useQueryCache(false);
92 92
 
93 93
         foreach ($queryHints AS $name => $value) {
94 94
             $query->setHint($name, $value);
@@ -1640,9 +1640,9 @@  discard block
 block discarded – undo
1640 1640
         );
1641 1641
     }
1642 1642
 
1643
-     /**
1644
-     * @group DDC-1430
1645
-     */
1643
+        /**
1644
+         * @group DDC-1430
1645
+         */
1646 1646
     public function testGroupByAllFieldsWhenObjectHasForeignKeys()
1647 1647
     {
1648 1648
         $this->assertSqlGeneration(
@@ -1982,9 +1982,9 @@  discard block
 block discarded – undo
1982 1982
         );
1983 1983
     }
1984 1984
 
1985
-   /**
1986
-    * @group DDC-1845
1987
-    */
1985
+    /**
1986
+     * @group DDC-1845
1987
+     */
1988 1988
     public function testQuotedWalkJoinVariableDeclaration()
1989 1989
     {
1990 1990
         $this->assertSqlGeneration(
@@ -2018,9 +2018,9 @@  discard block
 block discarded – undo
2018 2018
         );
2019 2019
     }
2020 2020
 
2021
-   /**
2022
-    * @group DDC-2208
2023
-    */
2021
+    /**
2022
+     * @group DDC-2208
2023
+     */
2024 2024
     public function testCaseThenParameterArithmeticExpression()
2025 2025
     {
2026 2026
         $this->assertSqlGeneration(
@@ -2040,8 +2040,8 @@  discard block
 block discarded – undo
2040 2040
     }
2041 2041
 
2042 2042
     /**
2043
-    * @group DDC-2268
2044
-    */
2043
+     * @group DDC-2268
2044
+     */
2045 2045
     public function testCaseThenFunction()
2046 2046
     {
2047 2047
         $this->assertSqlGeneration(
@@ -2065,45 +2065,45 @@  discard block
 block discarded – undo
2065 2065
      */
2066 2066
     public function testSupportsMoreThanTwoParametersInConcatFunction()
2067 2067
     {
2068
-    	$connMock    = $this->_em->getConnection();
2069
-    	$orgPlatform = $connMock->getDatabasePlatform();
2068
+        $connMock    = $this->_em->getConnection();
2069
+        $orgPlatform = $connMock->getDatabasePlatform();
2070 2070
 
2071
-    	$connMock->setDatabasePlatform(new MySqlPlatform());
2072
-    	$this->assertSqlGeneration(
2071
+        $connMock->setDatabasePlatform(new MySqlPlatform());
2072
+        $this->assertSqlGeneration(
2073 2073
             "SELECT u.id FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE CONCAT(u.name, u.status, 's') = ?1",
2074 2074
             "SELECT c0_.id AS id_0 FROM cms_users c0_ WHERE CONCAT(c0_.name, c0_.status, 's') = ?"
2075
-    	);
2076
-    	$this->assertSqlGeneration(
2075
+        );
2076
+        $this->assertSqlGeneration(
2077 2077
             "SELECT CONCAT(u.id, u.name, u.status) FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1",
2078 2078
             "SELECT CONCAT(c0_.id, c0_.name, c0_.status) AS sclr_0 FROM cms_users c0_ WHERE c0_.id = ?"
2079
-    	);
2079
+        );
2080 2080
 
2081
-    	$connMock->setDatabasePlatform(new PostgreSqlPlatform());
2082
-    	$this->assertSqlGeneration(
2081
+        $connMock->setDatabasePlatform(new PostgreSqlPlatform());
2082
+        $this->assertSqlGeneration(
2083 2083
             "SELECT u.id FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE CONCAT(u.name, u.status, 's') = ?1",
2084 2084
             "SELECT c0_.id AS id_0 FROM cms_users c0_ WHERE c0_.name || c0_.status || 's' = ?"
2085
-    	);
2086
-    	$this->assertSqlGeneration(
2085
+        );
2086
+        $this->assertSqlGeneration(
2087 2087
             "SELECT CONCAT(u.id, u.name, u.status) FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1",
2088 2088
             "SELECT c0_.id || c0_.name || c0_.status AS sclr_0 FROM cms_users c0_ WHERE c0_.id = ?"
2089
-    	);
2089
+        );
2090 2090
 
2091
-    	$connMock->setDatabasePlatform(new SQLServerPlatform());
2092
-    	$this->assertSqlGeneration(
2091
+        $connMock->setDatabasePlatform(new SQLServerPlatform());
2092
+        $this->assertSqlGeneration(
2093 2093
             "SELECT u.id FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE CONCAT(u.name, u.status, 's') = ?1",
2094 2094
             "SELECT c0_.id AS id_0 FROM cms_users c0_ WHERE (c0_.name + c0_.status + 's') = ?"
2095
-    	);
2096
-    	$this->assertSqlGeneration(
2095
+        );
2096
+        $this->assertSqlGeneration(
2097 2097
             "SELECT CONCAT(u.id, u.name, u.status) FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1",
2098 2098
             "SELECT (c0_.id + c0_.name + c0_.status) AS sclr_0 FROM cms_users c0_ WHERE c0_.id = ?"
2099
-    	);
2099
+        );
2100 2100
 
2101
-    	$connMock->setDatabasePlatform($orgPlatform);
2101
+        $connMock->setDatabasePlatform($orgPlatform);
2102 2102
     }
2103 2103
 
2104
-     /**
2105
-     * @group DDC-2188
2106
-     */
2104
+        /**
2105
+         * @group DDC-2188
2106
+         */
2107 2107
     public function testArithmeticPriority()
2108 2108
     {
2109 2109
         $this->assertSqlGeneration(
@@ -2123,8 +2123,8 @@  discard block
 block discarded – undo
2123 2123
     }
2124 2124
 
2125 2125
     /**
2126
-    * @group DDC-2475
2127
-    */
2126
+     * @group DDC-2475
2127
+     */
2128 2128
     public function testOrderByClauseShouldReplaceOrderByRelationMapping()
2129 2129
     {
2130 2130
         $this->assertSqlGeneration(
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
             $query->free();
67 67
         } catch (\Exception $e) {
68
-            $this->fail($e->getMessage() ."\n".$e->getTraceAsString());
68
+            $this->fail($e->getMessage()."\n".$e->getTraceAsString());
69 69
         }
70 70
     }
71 71
 
@@ -1597,7 +1597,7 @@  discard block
 block discarded – undo
1597 1597
     public function testAliasDoesNotExceedPlatformDefinedLength()
1598 1598
     {
1599 1599
         $this->assertSqlGeneration(
1600
-            'SELECT m FROM ' . __NAMESPACE__ .  '\\DDC1384Model m',
1600
+            'SELECT m FROM '.__NAMESPACE__.'\\DDC1384Model m',
1601 1601
             "SELECT d0_.aVeryLongIdentifierThatShouldBeShortenedByTheSQLWalker_fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo AS ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo_0 FROM DDC1384Model d0_"
1602 1602
         );
1603 1603
     }
@@ -1630,12 +1630,12 @@  discard block
 block discarded – undo
1630 1630
     public function testSelectWithArithmeticExpressionBeforeField()
1631 1631
     {
1632 1632
         $this->assertSqlGeneration(
1633
-            'SELECT - e.value AS value, e.id FROM ' . __NAMESPACE__ . '\DDC1474Entity e',
1633
+            'SELECT - e.value AS value, e.id FROM '.__NAMESPACE__.'\DDC1474Entity e',
1634 1634
             'SELECT -d0_.value AS sclr_0, d0_.id AS id_1 FROM DDC1474Entity d0_'
1635 1635
         );
1636 1636
 
1637 1637
         $this->assertSqlGeneration(
1638
-            'SELECT e.id, + e.value AS value FROM ' . __NAMESPACE__ . '\DDC1474Entity e',
1638
+            'SELECT e.id, + e.value AS value FROM '.__NAMESPACE__.'\DDC1474Entity e',
1639 1639
             'SELECT d0_.id AS id_0, +d0_.value AS sclr_1 FROM DDC1474Entity d0_'
1640 1640
         );
1641 1641
     }
@@ -2297,8 +2297,8 @@  discard block
 block discarded – undo
2297 2297
     public function testHavingRegressionUsingVariableWithMathOperatorsExpression($operator)
2298 2298
     {
2299 2299
         $this->assertSqlGeneration(
2300
-            'SELECT COUNT(u.name) AS countName FROM Doctrine\Tests\Models\CMS\CmsUser u HAVING 1 ' . $operator . ' countName > 0',
2301
-            'SELECT COUNT(c0_.name) AS sclr_0 FROM cms_users c0_ HAVING 1 ' . $operator . ' sclr_0 > 0'
2300
+            'SELECT COUNT(u.name) AS countName FROM Doctrine\Tests\Models\CMS\CmsUser u HAVING 1 '.$operator.' countName > 0',
2301
+            'SELECT COUNT(c0_.name) AS sclr_0 FROM cms_users c0_ HAVING 1 '.$operator.' sclr_0 > 0'
2302 2302
         );
2303 2303
     }
2304 2304
 
@@ -2320,7 +2320,7 @@  discard block
 block discarded – undo
2320 2320
      */
2321 2321
     public function getSql(SqlWalker $sqlWalker)
2322 2322
     {
2323
-        return 'ABS(' . $sqlWalker->walkSimpleArithmeticExpression($this->simpleArithmeticExpression) . ')';
2323
+        return 'ABS('.$sqlWalker->walkSimpleArithmeticExpression($this->simpleArithmeticExpression).')';
2324 2324
     }
2325 2325
 
2326 2326
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/CustomTreeWalkersJoinTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         try {
29 29
             $query = $this->em->createQuery($dqlToBeTested);
30 30
             $query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [CustomTreeWalkerJoin::class])
31
-                  ->useQueryCache(false);
31
+                    ->useQueryCache(false);
32 32
 
33 33
             $this->assertEquals($sqlToBeConfirmed, $query->getSql());
34 34
             $query->free();
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             $this->assertEquals($sqlToBeConfirmed, $query->getSql());
34 34
             $query->free();
35 35
         } catch (\Exception $e) {
36
-            $this->fail($e->getMessage() . ' at "' . $e->getFile() . '" on line ' . $e->getLine());
36
+            $this->fail($e->getMessage().' at "'.$e->getFile().'" on line '.$e->getLine());
37 37
 
38 38
         }
39 39
     }
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $rangeVariableDecl       = $identificationVariableDecl->rangeVariableDeclaration;
76 76
         $joinAssocPathExpression = new Query\AST\JoinAssociationPathExpression($rangeVariableDecl->aliasIdentificationVariable, 'address');
77
-        $joinAssocDeclaration    = new Query\AST\JoinAssociationDeclaration($joinAssocPathExpression, $rangeVariableDecl->aliasIdentificationVariable . 'a', null);
77
+        $joinAssocDeclaration    = new Query\AST\JoinAssociationDeclaration($joinAssocPathExpression, $rangeVariableDecl->aliasIdentificationVariable.'a', null);
78 78
         $join                    = new Query\AST\Join(Query\AST\Join::JOIN_TYPE_LEFT, $joinAssocDeclaration);
79
-        $selectExpression        = new Query\AST\SelectExpression($rangeVariableDecl->aliasIdentificationVariable . 'a', null, false);
79
+        $selectExpression        = new Query\AST\SelectExpression($rangeVariableDecl->aliasIdentificationVariable.'a', null, false);
80 80
 
81 81
         $identificationVariableDecl->joins[]                = $join;
82 82
         $selectStatement->selectClause->selectExpressions[] = $selectExpression;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $userMetadata    = $entityManager->getClassMetadata(CmsUser::class);
86 86
         $addressMetadata = $entityManager->getClassMetadata(CmsAddress::class);
87 87
 
88
-        $this->setQueryComponent($rangeVariableDecl->aliasIdentificationVariable . 'a',
88
+        $this->setQueryComponent($rangeVariableDecl->aliasIdentificationVariable.'a',
89 89
             [
90 90
                 'metadata'     => $addressMetadata,
91 91
                 'parent'       => $rangeVariableDecl->aliasIdentificationVariable,
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/ExprTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
      */
232 232
     public function testLiteralExprProperlyQuotesStrings()
233 233
     {
234
-       $this->assertEquals("'00010001'", (string) $this->_expr->literal('00010001'));
234
+        $this->assertEquals("'00010001'", (string) $this->_expr->literal('00010001'));
235 235
     }
236 236
 
237 237
     public function testGreaterThanOrEqualToExpr()
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/ParameterTypeInfererTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
     public function providerParameterTypeInferer()
15 15
     {
16
-         $data = [
16
+            $data = [
17 17
             [1,                 Type::INTEGER],
18 18
             ["bar",             PDO::PARAM_STR],
19 19
             ["1",               PDO::PARAM_STR],
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             [["1","2"],    Connection::PARAM_STR_ARRAY],
24 24
             [[],           Connection::PARAM_STR_ARRAY],
25 25
             [true,              Type::BOOLEAN],
26
-         ];
26
+            ];
27 27
 
28 28
         if (PHP_VERSION_ID >= 50500) {
29 29
             $data[] = [new \DateTimeImmutable(), Type::DATETIME];
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,15 +14,15 @@
 block discarded – undo
14 14
     public function providerParameterTypeInferer()
15 15
     {
16 16
          $data = [
17
-            [1,                 Type::INTEGER],
18
-            ["bar",             PDO::PARAM_STR],
19
-            ["1",               PDO::PARAM_STR],
20
-            [new \DateTime,     Type::DATETIME],
21
-            [[2],          Connection::PARAM_INT_ARRAY],
22
-            [["foo"],      Connection::PARAM_STR_ARRAY],
23
-            [["1","2"],    Connection::PARAM_STR_ARRAY],
24
-            [[],           Connection::PARAM_STR_ARRAY],
25
-            [true,              Type::BOOLEAN],
17
+            [1, Type::INTEGER],
18
+            ["bar", PDO::PARAM_STR],
19
+            ["1", PDO::PARAM_STR],
20
+            [new \DateTime, Type::DATETIME],
21
+            [[2], Connection::PARAM_INT_ARRAY],
22
+            [["foo"], Connection::PARAM_STR_ARRAY],
23
+            [["1", "2"], Connection::PARAM_STR_ARRAY],
24
+            [[], Connection::PARAM_STR_ARRAY],
25
+            [true, Type::BOOLEAN],
26 26
          ];
27 27
 
28 28
         if (PHP_VERSION_ID >= 50500) {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/FilterCollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,6 +86,6 @@
 block discarded – undo
86 86
     public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
87 87
     {
88 88
         // getParameter applies quoting automatically
89
-        return $targetTableAlias . '.id = ' . $this->getParameter('id');
89
+        return $targetTableAlias.'.id = '.$this->getParameter('id');
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Console/Command/RunDqlCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $this->tester->execute(
68 68
                 [
69 69
                 'command' => $this->command->getName(),
70
-                'dql'     => 'SELECT e FROM ' . DateTimeModel::class . ' e',
70
+                'dql'     => 'SELECT e FROM '.DateTimeModel::class.' e',
71 71
                 ]
72 72
             )
73 73
         );
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $this->tester->execute(
86 86
                 [
87 87
                 'command'    => $this->command->getName(),
88
-                'dql'        => 'SELECT e FROM ' . DateTimeModel::class . ' e',
88
+                'dql'        => 'SELECT e FROM '.DateTimeModel::class.' e',
89 89
                 '--show-sql' => 'true'
90 90
                 ]
91 91
             )
Please login to merge, or discard this patch.
Tests/ORM/Tools/Console/Command/ClearCacheCollectionRegionCommandTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             ], ['decorated' => false]
54 54
         );
55 55
 
56
-        $this->assertEquals('Clearing all second-level cache collection regions' . PHP_EOL, $tester->getDisplay());
56
+        $this->assertEquals('Clearing all second-level cache collection regions'.PHP_EOL, $tester->getDisplay());
57 57
     }
58 58
 
59 59
     public function testClearByOwnerEntityClassName()
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             ], ['decorated' => false]
69 69
         );
70 70
 
71
-        $this->assertEquals('Clearing second-level cache for collection "Doctrine\Tests\Models\Cache\State#cities"' . PHP_EOL, $tester->getDisplay());
71
+        $this->assertEquals('Clearing second-level cache for collection "Doctrine\Tests\Models\Cache\State#cities"'.PHP_EOL, $tester->getDisplay());
72 72
     }
73 73
 
74 74
     public function testClearCacheEntryName()
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             ], ['decorated' => false]
85 85
         );
86 86
 
87
-        $this->assertEquals('Clearing second-level cache entry for collection "Doctrine\Tests\Models\Cache\State#cities" owner entity identified by "1"' . PHP_EOL, $tester->getDisplay());
87
+        $this->assertEquals('Clearing second-level cache entry for collection "Doctrine\Tests\Models\Cache\State#cities" owner entity identified by "1"'.PHP_EOL, $tester->getDisplay());
88 88
     }
89 89
 
90 90
     public function testFlushRegionName()
@@ -100,6 +100,6 @@  discard block
 block discarded – undo
100 100
             ], ['decorated' => false]
101 101
         );
102 102
 
103
-        $this->assertEquals('Flushing cache provider configured for "Doctrine\Tests\Models\Cache\State#cities"' . PHP_EOL, $tester->getDisplay());
103
+        $this->assertEquals('Flushing cache provider configured for "Doctrine\Tests\Models\Cache\State#cities"'.PHP_EOL, $tester->getDisplay());
104 104
     }
105 105
 }
Please login to merge, or discard this patch.