Passed
Pull Request — 2.7 (#8012)
by Stefan
07:55
created
tests/Doctrine/Tests/ORM/Functional/GH8011Test.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function testOrderWithArithmeticExpressionWithSingleValuedPathExpression()
26 26
     {
27
-        $dql = 'SELECT p ' .
28
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
27
+        $dql = 'SELECT p '.
28
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
29 29
             'ORDER BY p.id + p.id ASC';
30 30
 
31 31
         /** @var CompanyEmployee[] $result */
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function testOrderWithArithmeticExpressionWithLiteralAndSingleValuedPathExpression()
40 40
     {
41
-        $dql = 'SELECT p ' .
42
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
41
+        $dql = 'SELECT p '.
42
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
43 43
             'ORDER BY 1 + p.id ASC';
44 44
 
45 45
         /** @var CompanyEmployee[] $result */
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function testOrderWithArithmeticExpressionWithLiteralAndSingleValuedPathExpression2()
54 54
     {
55
-        $dql = 'SELECT p ' .
56
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
55
+        $dql = 'SELECT p '.
56
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
57 57
             'ORDER BY ((1 + p.id)) ASC';
58 58
 
59 59
         /** @var CompanyEmployee[] $result */
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function testOrderWithArithmeticExpressionWithSingleValuedPathExpressionAndLiteral()
68 68
     {
69
-        $dql = 'SELECT p ' .
70
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
69
+        $dql = 'SELECT p '.
70
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
71 71
             'ORDER BY p.id + 1 ASC';
72 72
 
73 73
         /** @var CompanyEmployee[] $result */
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
 
81 81
     public function testOrderWithArithmeticExpressionWithResultVariableAndLiteral()
82 82
     {
83
-        $dql = 'SELECT p,  p.salary AS HIDDEN s ' .
84
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
83
+        $dql = 'SELECT p,  p.salary AS HIDDEN s '.
84
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
85 85
             'ORDER BY s + 1 DESC';
86 86
 
87 87
         /** @var CompanyEmployee[] $result */
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
 
95 95
     public function testOrderWithArithmeticExpressionWithResultVariableAndLiteral2()
96 96
     {
97
-        $dql = 'SELECT p,  p.salary AS HIDDEN s ' .
98
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
97
+        $dql = 'SELECT p,  p.salary AS HIDDEN s '.
98
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
99 99
             'ORDER BY ((s + 1)) DESC';
100 100
 
101 101
         /** @var CompanyEmployee[] $result */
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
 
109 109
     public function testOrderWithArithmeticExpressionWithLiteralAndResultVariable()
110 110
     {
111
-        $dql = 'SELECT p,  p.salary AS HIDDEN s ' .
112
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
111
+        $dql = 'SELECT p,  p.salary AS HIDDEN s '.
112
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
113 113
             'ORDER BY 1 + s DESC';
114 114
 
115 115
         /** @var CompanyEmployee[] $result */
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
 
123 123
     public function testOrderWithArithmeticExpressionWithLiteralAndResultVariable2()
124 124
     {
125
-        $dql = 'SELECT p,  p.salary AS HIDDEN s ' .
126
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
125
+        $dql = 'SELECT p,  p.salary AS HIDDEN s '.
126
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
127 127
             'ORDER BY ((1 + s)) DESC';
128 128
 
129 129
         /** @var CompanyEmployee[] $result */
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
 
137 137
     public function testOrderWithArithmeticExpressionWithResultVariableAndSingleValuedPathExpression()
138 138
     {
139
-        $dql = 'SELECT p,  p.salary AS HIDDEN s ' .
140
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
139
+        $dql = 'SELECT p,  p.salary AS HIDDEN s '.
140
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
141 141
             'ORDER BY s + p.id DESC';
142 142
 
143 143
         /** @var CompanyEmployee[] $result */
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
 
151 151
     public function testOrderWithArithmeticExpressionWithResultVariableAndSingleValuedPathExpression2()
152 152
     {
153
-        $dql = 'SELECT p,  p.salary AS HIDDEN s ' .
154
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
153
+        $dql = 'SELECT p,  p.salary AS HIDDEN s '.
154
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
155 155
             'ORDER BY ((s + p.id)) DESC';
156 156
 
157 157
         /** @var CompanyEmployee[] $result */
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
 
165 165
     public function testOrderWithArithmeticExpressionWithSingleValuedPathExpressionAndResultVariable()
166 166
     {
167
-        $dql = 'SELECT p,  p.salary AS HIDDEN s ' .
168
-            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p ' .
167
+        $dql = 'SELECT p,  p.salary AS HIDDEN s '.
168
+            'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
169 169
             'ORDER BY p.id + s DESC';
170 170
 
171 171
         /** @var CompanyEmployee[] $result */
Please login to merge, or discard this patch.