Completed
Push — master ( ba3223...b47a39 )
by Luís
17s
created
tests/Doctrine/Tests/ORM/Decorator/EntityManagerDecoratorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $methods = [];
36 36
 
37 37
         foreach ($class->getMethods() as $method) {
38
-            if ($method->isConstructor() || $method->isStatic() || !$method->isPublic()) {
38
+            if ($method->isConstructor() || $method->isStatic() || ! $method->isPublic()) {
39 39
                 continue;
40 40
             }
41 41
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function testAllMethodCallsAreDelegatedToTheWrappedInstance($method, array $parameters)
74 74
     {
75
-        $return = !in_array($method, self::VOID_METHODS) ? 'INNER VALUE FROM ' . $method : null;
75
+        $return = ! in_array($method, self::VOID_METHODS) ? 'INNER VALUE FROM '.$method : null;
76 76
 
77 77
         $this->wrapped->expects($this->once())
78 78
             ->method($method)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Internal/HydrationCompleteHandlerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 $metadata,
90 90
                 Events::postLoad,
91 91
                 $entity,
92
-                $this->callback(function (LifecycleEventArgs $args) use ($entityManager, $entity) {
92
+                $this->callback(function(LifecycleEventArgs $args) use ($entityManager, $entity) {
93 93
                     return $entity === $args->getEntity() && $entityManager === $args->getObjectManager();
94 94
                 }),
95 95
                 $listenersFlag
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 $this->logicalOr($metadata1, $metadata2),
158 158
                 Events::postLoad,
159 159
                 $this->logicalOr($entity1, $entity2),
160
-                $this->callback(function (LifecycleEventArgs $args) use ($entityManager, $entity1, $entity2) {
160
+                $this->callback(function(LifecycleEventArgs $args) use ($entityManager, $entity1, $entity2) {
161 161
                     return in_array($args->getEntity(), [$entity1, $entity2], true)
162 162
                         && $entityManager === $args->getObjectManager();
163 163
                 }),
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/SimpleObjectHydratorTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
         $rsm->addMetaResult('p ', 'discr', 'discr', false, 'string');
28 28
         $rsm->setDiscriminatorColumn('p', 'discr');
29 29
         $resultSet = [
30
-              [
31
-                  'u__id'   => '1',
32
-                  'u__name' => 'Fabio B. Silva'
33
-              ],
30
+                [
31
+                    'u__id'   => '1',
32
+                    'u__name' => 'Fabio B. Silva'
33
+                ],
34 34
         ];
35 35
 
36 36
         $stmt       = new HydratorMockStatement($resultSet);
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
         $rsm->setDiscriminatorColumn('p', 'discr');
81 81
 
82 82
         $resultSet = [
83
-              [
84
-                  'p__id'   => '1',
85
-                  'p__name' => 'Fabio B. Silva',
86
-                  'discr'   => 'subworker'
87
-              ],
83
+                [
84
+                    'p__id'   => '1',
85
+                    'p__name' => 'Fabio B. Silva',
86
+                    'discr'   => 'subworker'
87
+                ],
88 88
         ];
89 89
 
90 90
         $stmt       = new HydratorMockStatement($resultSet);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/ResultSetMappingTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,8 +189,8 @@
 block discarded – undo
189 189
     }
190 190
 
191 191
         /**
192
-     * @group DDC-1663
193
-     */
192
+         * @group DDC-1663
193
+         */
194 194
     public function testAddNamedNativeQueryResultSetMappingWithoutFields()
195 195
     {
196 196
         $cm = new ClassMetadata(CmsUser::class);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $rms = $this->_rsm;
78 78
 
79
-        $this->_rsm->addEntityResult(CmsUser::class,'u');
80
-        $this->_rsm->addJoinedEntityResult(CmsPhonenumber::class,'p','u','phonenumbers');
79
+        $this->_rsm->addEntityResult(CmsUser::class, 'u');
80
+        $this->_rsm->addJoinedEntityResult(CmsPhonenumber::class, 'p', 'u', 'phonenumbers');
81 81
         $this->_rsm->addFieldResult('u', 'id', 'id');
82 82
         $this->_rsm->addFieldResult('u', 'name', 'name');
83 83
         $this->_rsm->setDiscriminatorColumn('name', 'name');
@@ -276,8 +276,8 @@  discard block
 block discarded – undo
276 276
     {
277 277
         $this->_rsm->addEntityResult(LegacyUser::class, 'u');
278 278
         $this->_rsm->addJoinedEntityResult(LegacyUserReference::class, 'lu', 'u', '_references');
279
-        $this->_rsm->addMetaResult('lu', '_source',  '_source', true, 'integer');
280
-        $this->_rsm->addMetaResult('lu', '_target',  '_target', true, 'integer');
279
+        $this->_rsm->addMetaResult('lu', '_source', '_source', true, 'integer');
280
+        $this->_rsm->addMetaResult('lu', '_target', '_target', true, 'integer');
281 281
         $this->_rsm->addIndexBy('lu', '_source');
282 282
 
283 283
         $this->assertTrue($this->_rsm->hasIndexBy('lu'));
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/ObjectHydratorTest.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1020,14 +1020,14 @@  discard block
 block discarded – undo
1020 1020
 
1021 1021
         // mocking the proxy factory
1022 1022
         $proxyFactory = $this->getMockBuilder(ProxyFactory::class)
1023
-                             ->setMethods(['getProxy'])
1024
-                             ->disableOriginalConstructor()
1025
-                             ->getMock();
1023
+                                ->setMethods(['getProxy'])
1024
+                                ->disableOriginalConstructor()
1025
+                                ->getMock();
1026 1026
 
1027 1027
         $proxyFactory->expects($this->once())
1028
-                     ->method('getProxy')
1029
-                     ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1030
-                     ->will($this->returnValue($proxyInstance));
1028
+                        ->method('getProxy')
1029
+                        ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1030
+                        ->will($this->returnValue($proxyInstance));
1031 1031
 
1032 1032
         $this->_em->setProxyFactory($proxyFactory);
1033 1033
 
@@ -1069,14 +1069,14 @@  discard block
 block discarded – undo
1069 1069
 
1070 1070
         // mocking the proxy factory
1071 1071
         $proxyFactory = $this->getMockBuilder(ProxyFactory::class)
1072
-                             ->setMethods(['getProxy'])
1073
-                             ->disableOriginalConstructor()
1074
-                             ->getMock();
1072
+                                ->setMethods(['getProxy'])
1073
+                                ->disableOriginalConstructor()
1074
+                                ->getMock();
1075 1075
 
1076 1076
         $proxyFactory->expects($this->once())
1077
-                     ->method('getProxy')
1078
-                     ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1079
-                     ->will($this->returnValue($proxyInstance));
1077
+                        ->method('getProxy')
1078
+                        ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1079
+                        ->will($this->returnValue($proxyInstance));
1080 1080
 
1081 1081
         $this->_em->setProxyFactory($proxyFactory);
1082 1082
 
@@ -1836,10 +1836,10 @@  discard block
 block discarded – undo
1836 1836
         $rsm->setDiscriminatorColumn('c', 'c_discr');
1837 1837
 
1838 1838
         $resultSet = [
1839
-              [
1840
-                  'c__id'   => '1',
1841
-                  'c_discr' => 'fix',
1842
-              ],
1839
+                [
1840
+                    'c__id'   => '1',
1841
+                    'c_discr' => 'fix',
1842
+                ],
1843 1843
         ];
1844 1844
 
1845 1845
         $stmt     = new HydratorMockStatement($resultSet);
@@ -1868,12 +1868,12 @@  discard block
 block discarded – undo
1868 1868
         $rsm->setDiscriminatorColumn('e', 'e_discr');
1869 1869
 
1870 1870
         $resultSet = [
1871
-              [
1872
-                  'c__id'   => '1',
1873
-                  'c_discr' => 'fix',
1874
-                  'e__id'   => '1',
1875
-                  'e__name' => 'Fabio B. Silva'
1876
-              ],
1871
+                [
1872
+                    'c__id'   => '1',
1873
+                    'c_discr' => 'fix',
1874
+                    'e__id'   => '1',
1875
+                    'e__name' => 'Fabio B. Silva'
1876
+                ],
1877 1877
         ];
1878 1878
 
1879 1879
         $stmt     = new HydratorMockStatement($resultSet);
@@ -1898,11 +1898,11 @@  discard block
 block discarded – undo
1898 1898
         $rsm->setDiscriminatorColumn('p', 'discr');
1899 1899
 
1900 1900
         $resultSet = [
1901
-              [
1902
-                  'p__id'   => '1',
1903
-                  'p__name' => 'Fabio B. Silva',
1904
-                  'discr'   => 'subworker'
1905
-              ],
1901
+                [
1902
+                    'p__id'   => '1',
1903
+                    'p__name' => 'Fabio B. Silva',
1904
+                    'discr'   => 'subworker'
1905
+                ],
1906 1906
         ];
1907 1907
 
1908 1908
         $stmt       = new HydratorMockStatement($resultSet);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/QueryTest.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -85,18 +85,18 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $q = $this->_em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a");
87 87
         $q2 = $q->expireQueryCache(true)
88
-          ->setQueryCacheLifetime(3600)
89
-          ->setQueryCacheDriver(null)
90
-          ->expireResultCache(true)
91
-          ->setHint('foo', 'bar')
92
-          ->setHint('bar', 'baz')
93
-          ->setParameter(1, 'bar')
94
-          ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
95
-          ->setResultCacheDriver(null)
96
-          ->setResultCacheId('foo')
97
-          ->setDQL('foo')
98
-          ->setFirstResult(10)
99
-          ->setMaxResults(10);
88
+            ->setQueryCacheLifetime(3600)
89
+            ->setQueryCacheDriver(null)
90
+            ->expireResultCache(true)
91
+            ->setHint('foo', 'bar')
92
+            ->setHint('bar', 'baz')
93
+            ->setParameter(1, 'bar')
94
+            ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
95
+            ->setResultCacheDriver(null)
96
+            ->setResultCacheId('foo')
97
+            ->setDQL('foo')
98
+            ->setFirstResult(10)
99
+            ->setMaxResults(10);
100 100
 
101 101
         $this->assertSame($q2, $q);
102 102
     }
@@ -254,11 +254,11 @@  discard block
 block discarded – undo
254 254
         $this->_em->getConfiguration()->setResultCacheImpl(new ArrayCache());
255 255
 
256 256
         $query = $this->_em->createQuery("SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u")
257
-                           ->useResultCache(true);
257
+                            ->useResultCache(true);
258 258
 
259 259
         /** @var DriverConnectionMock $driverConnectionMock */
260 260
         $driverConnectionMock = $this->_em->getConnection()
261
-                                          ->getWrappedConnection();
261
+                                            ->getWrappedConnection();
262 262
 
263 263
         $driverConnectionMock->setStatementMock(new StatementArrayMock([['id_0' => 1]]));
264 264
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             9 => "St Julien"
164 164
         ];
165 165
 
166
-        $query  = $this->_em
166
+        $query = $this->_em
167 167
                 ->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)")
168 168
                 ->setParameter('cities', $cities);
169 169
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function testProcessParameterValueClassMetadata()
181 181
     {
182
-        $query  = $this->_em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)");
182
+        $query = $this->_em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)");
183 183
         $this->assertEquals(
184 184
             CmsAddress::class,
185 185
             $query->processParameterValue($this->_em->getClassMetadata(CmsAddress::class))
Please login to merge, or discard this patch.
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.