Cancelled
Branch tests-better-coverage (48a756)
by Michael
04:10
created
tests/Doctrine/Tests/DBAL/ConnectionTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
 
149 149
         $driverMock = $this->createMock('Doctrine\DBAL\Driver');
150 150
         $driverMock->expects(($this->at(0)))
151
-                   ->method('connect');
151
+                    ->method('connect');
152 152
         $platform = new Mocks\MockPlatform();
153 153
 
154 154
         $conn = new Connection(array('platform' => $platform), $driverMock, new Configuration(), $eventManager);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -831,7 +831,7 @@
 block discarded – undo
831 831
             ->method('getResultCacheDriver')
832 832
             ->will($this->returnValue($resultCacheDriverMock));
833 833
 
834
-        $query  = 'SELECT 1';
834
+        $query = 'SELECT 1';
835 835
 
836 836
         $connectionParams = $this->params;
837 837
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php 2 patches
Indentation   +82 added lines, -82 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
         $expressionBuilder = new ExpressionBuilder($this->conn);
24 24
 
25 25
         $this->conn->expects($this->any())
26
-                   ->method('getExpressionBuilder')
27
-                   ->will($this->returnValue($expressionBuilder));
26
+                    ->method('getExpressionBuilder')
27
+                    ->will($this->returnValue($expressionBuilder));
28 28
     }
29 29
 
30 30
     /**
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $qb = new QueryBuilder($this->conn);
45 45
 
46 46
         $qb->select('u.id')
47
-           ->from('users', 'u');
47
+            ->from('users', 'u');
48 48
 
49 49
         self::assertEquals('SELECT u.id FROM users u', (string) $qb);
50 50
     }
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
         $expr = $qb->expr();
56 56
 
57 57
         $qb->select('u.id')
58
-           ->from('users', 'u')
59
-           ->where($expr->andX($expr->eq('u.nickname', '?')));
58
+            ->from('users', 'u')
59
+            ->where($expr->andX($expr->eq('u.nickname', '?')));
60 60
 
61 61
         self::assertEquals("SELECT u.id FROM users u WHERE u.nickname = ?", (string) $qb);
62 62
     }
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         $expr = $qb->expr();
68 68
 
69 69
         $qb->select('u.*', 'p.*')
70
-           ->from('users', 'u')
71
-           ->leftJoin('u', 'phones', 'p', $expr->eq('p.user_id', 'u.id'));
70
+            ->from('users', 'u')
71
+            ->leftJoin('u', 'phones', 'p', $expr->eq('p.user_id', 'u.id'));
72 72
 
73 73
         self::assertEquals('SELECT u.*, p.* FROM users u LEFT JOIN phones p ON p.user_id = u.id', (string) $qb);
74 74
     }
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
         $expr = $qb->expr();
80 80
 
81 81
         $qb->select('u.*', 'p.*')
82
-           ->from('users', 'u')
83
-           ->Join('u', 'phones', 'p', $expr->eq('p.user_id', 'u.id'));
82
+            ->from('users', 'u')
83
+            ->Join('u', 'phones', 'p', $expr->eq('p.user_id', 'u.id'));
84 84
 
85 85
         self::assertEquals('SELECT u.*, p.* FROM users u INNER JOIN phones p ON p.user_id = u.id', (string) $qb);
86 86
     }
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
         $expr = $qb->expr();
92 92
 
93 93
         $qb->select('u.*', 'p.*')
94
-           ->from('users', 'u')
95
-           ->innerJoin('u', 'phones', 'p', $expr->eq('p.user_id', 'u.id'));
94
+            ->from('users', 'u')
95
+            ->innerJoin('u', 'phones', 'p', $expr->eq('p.user_id', 'u.id'));
96 96
 
97 97
         self::assertEquals('SELECT u.*, p.* FROM users u INNER JOIN phones p ON p.user_id = u.id', (string) $qb);
98 98
     }
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
         $expr = $qb->expr();
104 104
 
105 105
         $qb->select('u.*', 'p.*')
106
-           ->from('users', 'u')
107
-           ->rightJoin('u', 'phones', 'p', $expr->eq('p.user_id', 'u.id'));
106
+            ->from('users', 'u')
107
+            ->rightJoin('u', 'phones', 'p', $expr->eq('p.user_id', 'u.id'));
108 108
 
109 109
         self::assertEquals('SELECT u.*, p.* FROM users u RIGHT JOIN phones p ON p.user_id = u.id', (string) $qb);
110 110
     }
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
         $expr = $qb->expr();
116 116
 
117 117
         $qb->select('u.*', 'p.*')
118
-           ->from('users', 'u')
119
-           ->where('u.username = ?')
120
-           ->andWhere('u.name = ?');
118
+            ->from('users', 'u')
119
+            ->where('u.username = ?')
120
+            ->andWhere('u.name = ?');
121 121
 
122 122
         self::assertEquals('SELECT u.*, p.* FROM users u WHERE (u.username = ?) AND (u.name = ?)', (string) $qb);
123 123
     }
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
         $expr = $qb->expr();
129 129
 
130 130
         $qb->select('u.*', 'p.*')
131
-           ->from('users', 'u')
132
-           ->where('u.username = ?')
133
-           ->orWhere('u.name = ?');
131
+            ->from('users', 'u')
132
+            ->where('u.username = ?')
133
+            ->orWhere('u.name = ?');
134 134
 
135 135
         self::assertEquals('SELECT u.*, p.* FROM users u WHERE (u.username = ?) OR (u.name = ?)', (string) $qb);
136 136
     }
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
         $expr = $qb->expr();
142 142
 
143 143
         $qb->select('u.*', 'p.*')
144
-           ->from('users', 'u')
145
-           ->orWhere('u.username = ?')
146
-           ->orWhere('u.name = ?');
144
+            ->from('users', 'u')
145
+            ->orWhere('u.username = ?')
146
+            ->orWhere('u.name = ?');
147 147
 
148 148
         self::assertEquals('SELECT u.*, p.* FROM users u WHERE (u.username = ?) OR (u.name = ?)', (string) $qb);
149 149
     }
@@ -154,11 +154,11 @@  discard block
 block discarded – undo
154 154
         $expr = $qb->expr();
155 155
 
156 156
         $qb->select('u.*', 'p.*')
157
-           ->from('users', 'u')
158
-           ->where('u.username = ?')
159
-           ->andWhere('u.username = ?')
160
-           ->orWhere('u.name = ?')
161
-           ->andWhere('u.name = ?');
157
+            ->from('users', 'u')
158
+            ->where('u.username = ?')
159
+            ->andWhere('u.username = ?')
160
+            ->orWhere('u.name = ?')
161
+            ->andWhere('u.name = ?');
162 162
 
163 163
         self::assertEquals('SELECT u.*, p.* FROM users u WHERE (((u.username = ?) AND (u.username = ?)) OR (u.name = ?)) AND (u.name = ?)', (string) $qb);
164 164
     }
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
         $expr = $qb->expr();
170 170
 
171 171
         $qb->select('u.*', 'p.*')
172
-           ->from('users', 'u')
173
-           ->groupBy('u.id');
172
+            ->from('users', 'u')
173
+            ->groupBy('u.id');
174 174
 
175 175
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id', (string) $qb);
176 176
     }
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
         $expr = $qb->expr();
182 182
 
183 183
         $qb->select('u.*', 'p.*')
184
-           ->groupBy(array())
185
-           ->from('users', 'u');
184
+            ->groupBy(array())
185
+            ->from('users', 'u');
186 186
 
187 187
         self::assertEquals('SELECT u.*, p.* FROM users u', (string) $qb);
188 188
     }
@@ -193,8 +193,8 @@  discard block
 block discarded – undo
193 193
         $expr = $qb->expr();
194 194
 
195 195
         $qb->select('u.*', 'p.*')
196
-           ->addGroupBy(array())
197
-           ->from('users', 'u');
196
+            ->addGroupBy(array())
197
+            ->from('users', 'u');
198 198
 
199 199
         self::assertEquals('SELECT u.*, p.* FROM users u', (string) $qb);
200 200
     }
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
         $expr = $qb->expr();
206 206
 
207 207
         $qb->select('u.*', 'p.*')
208
-           ->from('users', 'u')
209
-           ->groupBy('u.id')
210
-           ->addGroupBy('u.foo');
208
+            ->from('users', 'u')
209
+            ->groupBy('u.id')
210
+            ->addGroupBy('u.foo');
211 211
 
212 212
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id, u.foo', (string) $qb);
213 213
     }
@@ -218,9 +218,9 @@  discard block
 block discarded – undo
218 218
         $expr = $qb->expr();
219 219
 
220 220
         $qb->select('u.*', 'p.*')
221
-           ->from('users', 'u')
222
-           ->groupBy('u.id')
223
-           ->addGroupBy('u.foo', 'u.bar');
221
+            ->from('users', 'u')
222
+            ->groupBy('u.id')
223
+            ->addGroupBy('u.foo', 'u.bar');
224 224
 
225 225
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id, u.foo, u.bar', (string) $qb);
226 226
     }
@@ -231,9 +231,9 @@  discard block
 block discarded – undo
231 231
         $expr = $qb->expr();
232 232
 
233 233
         $qb->select('u.*', 'p.*')
234
-           ->from('users', 'u')
235
-           ->groupBy('u.id')
236
-           ->having('u.name = ?');
234
+            ->from('users', 'u')
235
+            ->groupBy('u.id')
236
+            ->having('u.name = ?');
237 237
 
238 238
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id HAVING u.name = ?', (string) $qb);
239 239
     }
@@ -244,9 +244,9 @@  discard block
 block discarded – undo
244 244
         $expr = $qb->expr();
245 245
 
246 246
         $qb->select('u.*', 'p.*')
247
-           ->from('users', 'u')
248
-           ->groupBy('u.id')
249
-           ->andHaving('u.name = ?');
247
+            ->from('users', 'u')
248
+            ->groupBy('u.id')
249
+            ->andHaving('u.name = ?');
250 250
 
251 251
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id HAVING u.name = ?', (string) $qb);
252 252
     }
@@ -257,10 +257,10 @@  discard block
 block discarded – undo
257 257
         $expr = $qb->expr();
258 258
 
259 259
         $qb->select('u.*', 'p.*')
260
-           ->from('users', 'u')
261
-           ->groupBy('u.id')
262
-           ->having('u.name = ?')
263
-           ->andHaving('u.username = ?');
260
+            ->from('users', 'u')
261
+            ->groupBy('u.id')
262
+            ->having('u.name = ?')
263
+            ->andHaving('u.username = ?');
264 264
 
265 265
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id HAVING (u.name = ?) AND (u.username = ?)', (string) $qb);
266 266
     }
@@ -271,10 +271,10 @@  discard block
 block discarded – undo
271 271
         $expr = $qb->expr();
272 272
 
273 273
         $qb->select('u.*', 'p.*')
274
-           ->from('users', 'u')
275
-           ->groupBy('u.id')
276
-           ->having('u.name = ?')
277
-           ->orHaving('u.username = ?');
274
+            ->from('users', 'u')
275
+            ->groupBy('u.id')
276
+            ->having('u.name = ?')
277
+            ->orHaving('u.username = ?');
278 278
 
279 279
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id HAVING (u.name = ?) OR (u.username = ?)', (string) $qb);
280 280
     }
@@ -285,10 +285,10 @@  discard block
 block discarded – undo
285 285
         $expr = $qb->expr();
286 286
 
287 287
         $qb->select('u.*', 'p.*')
288
-           ->from('users', 'u')
289
-           ->groupBy('u.id')
290
-           ->orHaving('u.name = ?')
291
-           ->orHaving('u.username = ?');
288
+            ->from('users', 'u')
289
+            ->groupBy('u.id')
290
+            ->orHaving('u.name = ?')
291
+            ->orHaving('u.username = ?');
292 292
 
293 293
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id HAVING (u.name = ?) OR (u.username = ?)', (string) $qb);
294 294
     }
@@ -299,11 +299,11 @@  discard block
 block discarded – undo
299 299
         $expr = $qb->expr();
300 300
 
301 301
         $qb->select('u.*', 'p.*')
302
-           ->from('users', 'u')
303
-           ->groupBy('u.id')
304
-           ->having('u.name = ?')
305
-           ->orHaving('u.username = ?')
306
-           ->andHaving('u.username = ?');
302
+            ->from('users', 'u')
303
+            ->groupBy('u.id')
304
+            ->having('u.name = ?')
305
+            ->orHaving('u.username = ?')
306
+            ->andHaving('u.username = ?');
307 307
 
308 308
         self::assertEquals('SELECT u.*, p.* FROM users u GROUP BY u.id HAVING ((u.name = ?) OR (u.username = ?)) AND (u.username = ?)', (string) $qb);
309 309
     }
@@ -314,8 +314,8 @@  discard block
 block discarded – undo
314 314
         $expr = $qb->expr();
315 315
 
316 316
         $qb->select('u.*', 'p.*')
317
-           ->from('users', 'u')
318
-           ->orderBy('u.name');
317
+            ->from('users', 'u')
318
+            ->orderBy('u.name');
319 319
 
320 320
         self::assertEquals('SELECT u.*, p.* FROM users u ORDER BY u.name ASC', (string) $qb);
321 321
     }
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
         $expr = $qb->expr();
327 327
 
328 328
         $qb->select('u.*', 'p.*')
329
-           ->from('users', 'u')
330
-           ->orderBy('u.name')
331
-           ->addOrderBy('u.username', 'DESC');
329
+            ->from('users', 'u')
330
+            ->orderBy('u.name')
331
+            ->addOrderBy('u.username', 'DESC');
332 332
 
333 333
         self::assertEquals('SELECT u.*, p.* FROM users u ORDER BY u.name ASC, u.username DESC', (string) $qb);
334 334
     }
@@ -339,9 +339,9 @@  discard block
 block discarded – undo
339 339
         $expr = $qb->expr();
340 340
 
341 341
         $qb->select('u.*', 'p.*')
342
-           ->from('users', 'u')
343
-           ->addOrderBy('u.name')
344
-           ->addOrderBy('u.username', 'DESC');
342
+            ->from('users', 'u')
343
+            ->addOrderBy('u.name')
344
+            ->addOrderBy('u.username', 'DESC');
345 345
 
346 346
         self::assertEquals('SELECT u.*, p.* FROM users u ORDER BY u.name ASC, u.username DESC', (string) $qb);
347 347
     }
@@ -361,8 +361,8 @@  discard block
 block discarded – undo
361 361
         $expr = $qb->expr();
362 362
 
363 363
         $qb->select('u.*')
364
-           ->addSelect('p.*')
365
-           ->from('users', 'u');
364
+            ->addSelect('p.*')
365
+            ->from('users', 'u');
366 366
 
367 367
         self::assertEquals('SELECT u.*, p.* FROM users u', (string) $qb);
368 368
     }
@@ -382,9 +382,9 @@  discard block
 block discarded – undo
382 382
         $expr = $qb->expr();
383 383
 
384 384
         $qb->select('u.*')
385
-           ->addSelect('p.*')
386
-           ->from('users', 'u')
387
-           ->from('phonenumbers', 'p');
385
+            ->addSelect('p.*')
386
+            ->from('users', 'u')
387
+            ->from('phonenumbers', 'p');
388 388
 
389 389
         self::assertEquals('SELECT u.*, p.* FROM users u, phonenumbers p', (string) $qb);
390 390
     }
@@ -393,8 +393,8 @@  discard block
 block discarded – undo
393 393
     {
394 394
         $qb   = new QueryBuilder($this->conn);
395 395
         $qb->update('users', 'u')
396
-           ->set('u.foo', '?')
397
-           ->set('u.bar', '?');
396
+            ->set('u.foo', '?')
397
+            ->set('u.bar', '?');
398 398
 
399 399
         self::assertEquals(QueryBuilder::UPDATE, $qb->getType());
400 400
         self::assertEquals('UPDATE users u SET u.foo = ?, u.bar = ?', (string) $qb);
@@ -404,8 +404,8 @@  discard block
 block discarded – undo
404 404
     {
405 405
         $qb   = new QueryBuilder($this->conn);
406 406
         $qb->update('users')
407
-           ->set('foo', '?')
408
-           ->set('bar', '?');
407
+            ->set('foo', '?')
408
+            ->set('bar', '?');
409 409
 
410 410
         self::assertEquals('UPDATE users SET foo = ?, bar = ?', (string) $qb);
411 411
     }
@@ -414,8 +414,8 @@  discard block
 block discarded – undo
414 414
     {
415 415
         $qb   = new QueryBuilder($this->conn);
416 416
         $qb->update('users', 'u')
417
-           ->set('u.foo', '?')
418
-           ->where('u.foo = ?');
417
+            ->set('u.foo', '?')
418
+            ->where('u.foo = ?');
419 419
 
420 420
         self::assertEquals('UPDATE users u SET u.foo = ? WHERE u.foo = ?', (string) $qb);
421 421
     }
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
     {
452 452
         $qb   = new QueryBuilder($this->conn);
453 453
         $qb->delete('users', 'u')
454
-           ->where('u.foo = ?');
454
+            ->where('u.foo = ?');
455 455
 
456 456
         self::assertEquals('DELETE FROM users u WHERE u.foo = ?', (string) $qb);
457 457
     }
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 
349 349
     public function testEmptySelect()
350 350
     {
351
-        $qb   = new QueryBuilder($this->conn);
351
+        $qb = new QueryBuilder($this->conn);
352 352
         $qb2 = $qb->select();
353 353
 
354 354
         self::assertSame($qb, $qb2);
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 
370 370
     public function testEmptyAddSelect()
371 371
     {
372
-        $qb   = new QueryBuilder($this->conn);
372
+        $qb = new QueryBuilder($this->conn);
373 373
         $qb2 = $qb->addSelect();
374 374
 
375 375
         self::assertSame($qb, $qb2);
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
     public function testUpdate()
393 393
     {
394
-        $qb   = new QueryBuilder($this->conn);
394
+        $qb = new QueryBuilder($this->conn);
395 395
         $qb->update('users', 'u')
396 396
            ->set('u.foo', '?')
397 397
            ->set('u.bar', '?');
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 
403 403
     public function testUpdateWithoutAlias()
404 404
     {
405
-        $qb   = new QueryBuilder($this->conn);
405
+        $qb = new QueryBuilder($this->conn);
406 406
         $qb->update('users')
407 407
            ->set('foo', '?')
408 408
            ->set('bar', '?');
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
 
413 413
     public function testUpdateWhere()
414 414
     {
415
-        $qb   = new QueryBuilder($this->conn);
415
+        $qb = new QueryBuilder($this->conn);
416 416
         $qb->update('users', 'u')
417 417
            ->set('u.foo', '?')
418 418
            ->where('u.foo = ?');
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 
423 423
     public function testEmptyUpdate()
424 424
     {
425
-        $qb   = new QueryBuilder($this->conn);
425
+        $qb = new QueryBuilder($this->conn);
426 426
         $qb2 = $qb->update();
427 427
 
428 428
         self::assertEquals(QueryBuilder::UPDATE, $qb->getType());
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 
432 432
     public function testDelete()
433 433
     {
434
-        $qb   = new QueryBuilder($this->conn);
434
+        $qb = new QueryBuilder($this->conn);
435 435
         $qb->delete('users', 'u');
436 436
 
437 437
         self::assertEquals(QueryBuilder::DELETE, $qb->getType());
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 
441 441
     public function testDeleteWithoutAlias()
442 442
     {
443
-        $qb   = new QueryBuilder($this->conn);
443
+        $qb = new QueryBuilder($this->conn);
444 444
         $qb->delete('users');
445 445
 
446 446
         self::assertEquals(QueryBuilder::DELETE, $qb->getType());
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 
450 450
     public function testDeleteWhere()
451 451
     {
452
-        $qb   = new QueryBuilder($this->conn);
452
+        $qb = new QueryBuilder($this->conn);
453 453
         $qb->delete('users', 'u')
454 454
            ->where('u.foo = ?');
455 455
 
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
 
459 459
     public function testEmptyDelete()
460 460
     {
461
-        $qb   = new QueryBuilder($this->conn);
461
+        $qb = new QueryBuilder($this->conn);
462 462
         $qb2 = $qb->delete();
463 463
 
464 464
         self::assertEquals(QueryBuilder::DELETE, $qb->getType());
@@ -539,13 +539,13 @@  discard block
 block discarded – undo
539 539
 
540 540
     public function testGetConnection()
541 541
     {
542
-        $qb   = new QueryBuilder($this->conn);
542
+        $qb = new QueryBuilder($this->conn);
543 543
         self::assertSame($this->conn, $qb->getConnection());
544 544
     }
545 545
 
546 546
     public function testGetState()
547 547
     {
548
-        $qb   = new QueryBuilder($this->conn);
548
+        $qb = new QueryBuilder($this->conn);
549 549
 
550 550
         self::assertEquals(QueryBuilder::STATE_CLEAN, $qb->getState());
551 551
 
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
 
562 562
     public function testSetMaxResults()
563 563
     {
564
-        $qb   = new QueryBuilder($this->conn);
564
+        $qb = new QueryBuilder($this->conn);
565 565
         $qb->setMaxResults(10);
566 566
 
567 567
         self::assertEquals(QueryBuilder::STATE_DIRTY, $qb->getState());
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
 
571 571
     public function testSetFirstResult()
572 572
     {
573
-        $qb   = new QueryBuilder($this->conn);
573
+        $qb = new QueryBuilder($this->conn);
574 574
         $qb->setFirstResult(10);
575 575
 
576 576
         self::assertEquals(QueryBuilder::STATE_DIRTY, $qb->getState());
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
 
580 580
     public function testResetQueryPart()
581 581
     {
582
-        $qb   = new QueryBuilder($this->conn);
582
+        $qb = new QueryBuilder($this->conn);
583 583
 
584 584
         $qb->select('u.*')->from('users', 'u')->where('u.name = ?');
585 585
 
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 
591 591
     public function testResetQueryParts()
592 592
     {
593
-        $qb   = new QueryBuilder($this->conn);
593
+        $qb = new QueryBuilder($this->conn);
594 594
 
595 595
         $qb->select('u.*')->from('users', 'u')->where('u.name = ?')->orderBy('u.name');
596 596
 
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
 
602 602
     public function testCreateNamedParameter()
603 603
     {
604
-        $qb   = new QueryBuilder($this->conn);
604
+        $qb = new QueryBuilder($this->conn);
605 605
 
606 606
         $qb->select('u.*')->from('users', 'u')->where(
607 607
             $qb->expr()->eq('u.name', $qb->createNamedParameter(10, ParameterType::INTEGER))
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 
615 615
     public function testCreateNamedParameterCustomPlaceholder()
616 616
     {
617
-        $qb   = new QueryBuilder($this->conn);
617
+        $qb = new QueryBuilder($this->conn);
618 618
 
619 619
         $qb->select('u.*')->from('users', 'u')->where(
620 620
             $qb->expr()->eq('u.name', $qb->createNamedParameter(10, ParameterType::INTEGER, ':test'))
@@ -627,7 +627,7 @@  discard block
 block discarded – undo
627 627
 
628 628
     public function testCreatePositionalParameter()
629 629
     {
630
-        $qb   = new QueryBuilder($this->conn);
630
+        $qb = new QueryBuilder($this->conn);
631 631
 
632 632
         $qb->select('u.*')->from('users', 'u')->where(
633 633
             $qb->expr()->eq('u.name', $qb->createPositionalParameter(10, ParameterType::INTEGER))
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Query/Expression/ExpressionBuilderTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
         $this->expr = new ExpressionBuilder($conn);
23 23
 
24 24
         $conn->expects($this->any())
25
-             ->method('getExpressionBuilder')
26
-             ->will($this->returnValue($this->expr));
25
+                ->method('getExpressionBuilder')
26
+                ->will($this->returnValue($this->expr));
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
     public function testIn()
204 204
     {
205
-        self::assertEquals('u.groups IN (1, 3, 4, 7)', $this->expr->in('u.groups', array(1,3,4,7)));
205
+        self::assertEquals('u.groups IN (1, 3, 4, 7)', $this->expr->in('u.groups', array(1, 3, 4, 7)));
206 206
     }
207 207
 
208 208
     public function testInWithPlaceholder()
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     public function testNotIn()
214 214
     {
215
-        self::assertEquals('u.groups NOT IN (1, 3, 4, 7)', $this->expr->notIn('u.groups', array(1,3,4,7)));
215
+        self::assertEquals('u.groups NOT IN (1, 3, 4, 7)', $this->expr->notIn('u.groups', array(1, 3, 4, 7)));
216 216
     }
217 217
 
218 218
     public function testNotInWithPlaceholder()
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Platforms/PostgreSQL100PlatformTest.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\Tests\DBAL\Platforms;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Platforms/SQLServer2012PlatformTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -125,17 +125,17 @@
 block discarded – undo
125 125
     public function testModifyLimitQueryWithExtraLongQuery()
126 126
     {
127 127
         $query = 'SELECT table1.column1, table2.column2, table3.column3, table4.column4, table5.column5, table6.column6, table7.column7, table8.column8 FROM table1, table2, table3, table4, table5, table6, table7, table8 ';
128
-        $query.= 'WHERE (table1.column1 = table2.column2) AND (table1.column1 = table3.column3) AND (table1.column1 = table4.column4) AND (table1.column1 = table5.column5) AND (table1.column1 = table6.column6) AND (table1.column1 = table7.column7) AND (table1.column1 = table8.column8) AND (table2.column2 = table3.column3) AND (table2.column2 = table4.column4) AND (table2.column2 = table5.column5) AND (table2.column2 = table6.column6) ';
129
-        $query.= 'AND (table2.column2 = table7.column7) AND (table2.column2 = table8.column8) AND (table3.column3 = table4.column4) AND (table3.column3 = table5.column5) AND (table3.column3 = table6.column6) AND (table3.column3 = table7.column7) AND (table3.column3 = table8.column8) AND (table4.column4 = table5.column5) AND (table4.column4 = table6.column6) AND (table4.column4 = table7.column7) AND (table4.column4 = table8.column8) ';
130
-        $query.= 'AND (table5.column5 = table6.column6) AND (table5.column5 = table7.column7) AND (table5.column5 = table8.column8) AND (table6.column6 = table7.column7) AND (table6.column6 = table8.column8) AND (table7.column7 = table8.column8)';
128
+        $query .= 'WHERE (table1.column1 = table2.column2) AND (table1.column1 = table3.column3) AND (table1.column1 = table4.column4) AND (table1.column1 = table5.column5) AND (table1.column1 = table6.column6) AND (table1.column1 = table7.column7) AND (table1.column1 = table8.column8) AND (table2.column2 = table3.column3) AND (table2.column2 = table4.column4) AND (table2.column2 = table5.column5) AND (table2.column2 = table6.column6) ';
129
+        $query .= 'AND (table2.column2 = table7.column7) AND (table2.column2 = table8.column8) AND (table3.column3 = table4.column4) AND (table3.column3 = table5.column5) AND (table3.column3 = table6.column6) AND (table3.column3 = table7.column7) AND (table3.column3 = table8.column8) AND (table4.column4 = table5.column5) AND (table4.column4 = table6.column6) AND (table4.column4 = table7.column7) AND (table4.column4 = table8.column8) ';
130
+        $query .= 'AND (table5.column5 = table6.column6) AND (table5.column5 = table7.column7) AND (table5.column5 = table8.column8) AND (table6.column6 = table7.column7) AND (table6.column6 = table8.column8) AND (table7.column7 = table8.column8)';
131 131
 
132 132
         $sql = $this->_platform->modifyLimitQuery($query, 10);
133 133
 
134 134
         $expected = 'SELECT table1.column1, table2.column2, table3.column3, table4.column4, table5.column5, table6.column6, table7.column7, table8.column8 FROM table1, table2, table3, table4, table5, table6, table7, table8 ';
135
-        $expected.= 'WHERE (table1.column1 = table2.column2) AND (table1.column1 = table3.column3) AND (table1.column1 = table4.column4) AND (table1.column1 = table5.column5) AND (table1.column1 = table6.column6) AND (table1.column1 = table7.column7) AND (table1.column1 = table8.column8) AND (table2.column2 = table3.column3) AND (table2.column2 = table4.column4) AND (table2.column2 = table5.column5) AND (table2.column2 = table6.column6) ';
136
-        $expected.= 'AND (table2.column2 = table7.column7) AND (table2.column2 = table8.column8) AND (table3.column3 = table4.column4) AND (table3.column3 = table5.column5) AND (table3.column3 = table6.column6) AND (table3.column3 = table7.column7) AND (table3.column3 = table8.column8) AND (table4.column4 = table5.column5) AND (table4.column4 = table6.column6) AND (table4.column4 = table7.column7) AND (table4.column4 = table8.column8) ';
137
-        $expected.= 'AND (table5.column5 = table6.column6) AND (table5.column5 = table7.column7) AND (table5.column5 = table8.column8) AND (table6.column6 = table7.column7) AND (table6.column6 = table8.column8) AND (table7.column7 = table8.column8) ';
138
-        $expected.= 'ORDER BY (SELECT 0) OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY';
135
+        $expected .= 'WHERE (table1.column1 = table2.column2) AND (table1.column1 = table3.column3) AND (table1.column1 = table4.column4) AND (table1.column1 = table5.column5) AND (table1.column1 = table6.column6) AND (table1.column1 = table7.column7) AND (table1.column1 = table8.column8) AND (table2.column2 = table3.column3) AND (table2.column2 = table4.column4) AND (table2.column2 = table5.column5) AND (table2.column2 = table6.column6) ';
136
+        $expected .= 'AND (table2.column2 = table7.column7) AND (table2.column2 = table8.column8) AND (table3.column3 = table4.column4) AND (table3.column3 = table5.column5) AND (table3.column3 = table6.column6) AND (table3.column3 = table7.column7) AND (table3.column3 = table8.column8) AND (table4.column4 = table5.column5) AND (table4.column4 = table6.column6) AND (table4.column4 = table7.column7) AND (table4.column4 = table8.column8) ';
137
+        $expected .= 'AND (table5.column5 = table6.column6) AND (table5.column5 = table7.column7) AND (table5.column5 = table8.column8) AND (table6.column6 = table7.column7) AND (table6.column6 = table8.column8) AND (table7.column7 = table8.column8) ';
138
+        $expected .= 'ORDER BY (SELECT 0) OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY';
139 139
 
140 140
 
141 141
         self::assertEquals($expected, $sql);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Platforms/AbstractSQLServerPlatformTestCase.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -292,14 +292,14 @@
 block discarded – undo
292 292
     public function testModifyLimitQueryWithExtraLongQuery()
293 293
     {
294 294
         $query = 'SELECT table1.column1, table2.column2, table3.column3, table4.column4, table5.column5, table6.column6, table7.column7, table8.column8 FROM table1, table2, table3, table4, table5, table6, table7, table8 ';
295
-        $query.= 'WHERE (table1.column1 = table2.column2) AND (table1.column1 = table3.column3) AND (table1.column1 = table4.column4) AND (table1.column1 = table5.column5) AND (table1.column1 = table6.column6) AND (table1.column1 = table7.column7) AND (table1.column1 = table8.column8) AND (table2.column2 = table3.column3) AND (table2.column2 = table4.column4) AND (table2.column2 = table5.column5) AND (table2.column2 = table6.column6) ';
296
-        $query.= 'AND (table2.column2 = table7.column7) AND (table2.column2 = table8.column8) AND (table3.column3 = table4.column4) AND (table3.column3 = table5.column5) AND (table3.column3 = table6.column6) AND (table3.column3 = table7.column7) AND (table3.column3 = table8.column8) AND (table4.column4 = table5.column5) AND (table4.column4 = table6.column6) AND (table4.column4 = table7.column7) AND (table4.column4 = table8.column8) ';
297
-        $query.= 'AND (table5.column5 = table6.column6) AND (table5.column5 = table7.column7) AND (table5.column5 = table8.column8) AND (table6.column6 = table7.column7) AND (table6.column6 = table8.column8) AND (table7.column7 = table8.column8)';
295
+        $query .= 'WHERE (table1.column1 = table2.column2) AND (table1.column1 = table3.column3) AND (table1.column1 = table4.column4) AND (table1.column1 = table5.column5) AND (table1.column1 = table6.column6) AND (table1.column1 = table7.column7) AND (table1.column1 = table8.column8) AND (table2.column2 = table3.column3) AND (table2.column2 = table4.column4) AND (table2.column2 = table5.column5) AND (table2.column2 = table6.column6) ';
296
+        $query .= 'AND (table2.column2 = table7.column7) AND (table2.column2 = table8.column8) AND (table3.column3 = table4.column4) AND (table3.column3 = table5.column5) AND (table3.column3 = table6.column6) AND (table3.column3 = table7.column7) AND (table3.column3 = table8.column8) AND (table4.column4 = table5.column5) AND (table4.column4 = table6.column6) AND (table4.column4 = table7.column7) AND (table4.column4 = table8.column8) ';
297
+        $query .= 'AND (table5.column5 = table6.column6) AND (table5.column5 = table7.column7) AND (table5.column5 = table8.column8) AND (table6.column6 = table7.column7) AND (table6.column6 = table8.column8) AND (table7.column7 = table8.column8)';
298 298
 
299 299
         $alteredSql = 'SELECT TOP 10 table1.column1, table2.column2, table3.column3, table4.column4, table5.column5, table6.column6, table7.column7, table8.column8 FROM table1, table2, table3, table4, table5, table6, table7, table8 ';
300
-        $alteredSql.= 'WHERE (table1.column1 = table2.column2) AND (table1.column1 = table3.column3) AND (table1.column1 = table4.column4) AND (table1.column1 = table5.column5) AND (table1.column1 = table6.column6) AND (table1.column1 = table7.column7) AND (table1.column1 = table8.column8) AND (table2.column2 = table3.column3) AND (table2.column2 = table4.column4) AND (table2.column2 = table5.column5) AND (table2.column2 = table6.column6) ';
301
-        $alteredSql.= 'AND (table2.column2 = table7.column7) AND (table2.column2 = table8.column8) AND (table3.column3 = table4.column4) AND (table3.column3 = table5.column5) AND (table3.column3 = table6.column6) AND (table3.column3 = table7.column7) AND (table3.column3 = table8.column8) AND (table4.column4 = table5.column5) AND (table4.column4 = table6.column6) AND (table4.column4 = table7.column7) AND (table4.column4 = table8.column8) ';
302
-        $alteredSql.= 'AND (table5.column5 = table6.column6) AND (table5.column5 = table7.column7) AND (table5.column5 = table8.column8) AND (table6.column6 = table7.column7) AND (table6.column6 = table8.column8) AND (table7.column7 = table8.column8)';
300
+        $alteredSql .= 'WHERE (table1.column1 = table2.column2) AND (table1.column1 = table3.column3) AND (table1.column1 = table4.column4) AND (table1.column1 = table5.column5) AND (table1.column1 = table6.column6) AND (table1.column1 = table7.column7) AND (table1.column1 = table8.column8) AND (table2.column2 = table3.column3) AND (table2.column2 = table4.column4) AND (table2.column2 = table5.column5) AND (table2.column2 = table6.column6) ';
301
+        $alteredSql .= 'AND (table2.column2 = table7.column7) AND (table2.column2 = table8.column8) AND (table3.column3 = table4.column4) AND (table3.column3 = table5.column5) AND (table3.column3 = table6.column6) AND (table3.column3 = table7.column7) AND (table3.column3 = table8.column8) AND (table4.column4 = table5.column5) AND (table4.column4 = table6.column6) AND (table4.column4 = table7.column7) AND (table4.column4 = table8.column8) ';
302
+        $alteredSql .= 'AND (table5.column5 = table6.column6) AND (table5.column5 = table7.column7) AND (table5.column5 = table8.column8) AND (table6.column6 = table7.column7) AND (table6.column6 = table8.column8) AND (table7.column7 = table8.column8)';
303 303
 
304 304
         $sql = $this->_platform->modifyLimitQuery($query, 10);
305 305
         $this->expectCteWithMaxRowNum($alteredSql, 10, $sql);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
         }
44 44
 
45 45
         $c = $this->_platform->getIdentifierQuoteCharacter();
46
-        self::assertEquals($c."test".$c, $this->_platform->quoteIdentifier("test"));
47
-        self::assertEquals($c."test".$c.".".$c."test".$c, $this->_platform->quoteIdentifier("test.test"));
46
+        self::assertEquals($c . "test" . $c, $this->_platform->quoteIdentifier("test"));
47
+        self::assertEquals($c . "test" . $c . "." . $c . "test" . $c, $this->_platform->quoteIdentifier("test.test"));
48 48
         self::assertEquals(str_repeat($c, 4), $this->_platform->quoteIdentifier($c));
49 49
     }
50 50
 
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
         $c = $this->_platform->getIdentifierQuoteCharacter();
61
-        self::assertEquals($c."test".$c, $this->_platform->quoteSingleIdentifier("test"));
62
-        self::assertEquals($c."test.test".$c, $this->_platform->quoteSingleIdentifier("test.test"));
61
+        self::assertEquals($c . "test" . $c, $this->_platform->quoteSingleIdentifier("test"));
62
+        self::assertEquals($c . "test.test" . $c, $this->_platform->quoteSingleIdentifier("test.test"));
63 63
         self::assertEquals(str_repeat($c, 4), $this->_platform->quoteSingleIdentifier($c));
64 64
     }
65 65
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function testRegistersCommentedDoctrineMappingTypeImplicitly()
119 119
     {
120
-        if (!Type::hasType('my_commented')) {
120
+        if ( ! Type::hasType('my_commented')) {
121 121
             Type::addType('my_commented', CommentedType::class);
122 122
         }
123 123
 
@@ -222,11 +222,11 @@  discard block
 block discarded – undo
222 222
         $actuals = array();
223 223
 
224 224
         if ($this->supportsInlineIndexDeclaration()) {
225
-            $actuals []= $this->_platform->getIndexDeclarationSQL('name', $indexDef);
225
+            $actuals [] = $this->_platform->getIndexDeclarationSQL('name', $indexDef);
226 226
         }
227 227
 
228
-        $actuals []= $this->_platform->getUniqueConstraintDeclarationSQL('name', $uniqueIndex);
229
-        $actuals []= $this->_platform->getCreateIndexSQL($indexDef, 'table');
228
+        $actuals [] = $this->_platform->getUniqueConstraintDeclarationSQL('name', $uniqueIndex);
229
+        $actuals [] = $this->_platform->getCreateIndexSQL($indexDef, 'table');
230 230
 
231 231
         foreach ($actuals as $actual) {
232 232
             if ($this->_platform->supportsPartialIndexes()) {
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 
559 559
     public function testGetDefaultValueDeclarationSQLForIntegerTypes()
560 560
     {
561
-        foreach(array('bigint', 'integer', 'smallint') as $type) {
561
+        foreach (array('bigint', 'integer', 'smallint') as $type) {
562 562
             $field = array(
563 563
                 'type'    => Type::getType($type),
564 564
                 'default' => 1
@@ -654,24 +654,24 @@  discard block
 block discarded – undo
654 654
 
655 655
         // Foreign table with reserved keyword as name (needs quotation).
656 656
         $foreignTable = new Table('foreign');
657
-        $foreignTable->addColumn('create', 'string');    // Foreign column with reserved keyword as name (needs quotation).
658
-        $foreignTable->addColumn('bar', 'string');       // Foreign column with non-reserved keyword as name (does not need quotation).
657
+        $foreignTable->addColumn('create', 'string'); // Foreign column with reserved keyword as name (needs quotation).
658
+        $foreignTable->addColumn('bar', 'string'); // Foreign column with non-reserved keyword as name (does not need quotation).
659 659
         $foreignTable->addColumn('`foo-bar`', 'string'); // Foreign table with special character in name (needs quotation on some platforms, e.g. Sqlite).
660 660
 
661 661
         $table->addForeignKeyConstraint($foreignTable, array('create', 'foo', '`bar`'), array('create', 'bar', '`foo-bar`'), array(), 'FK_WITH_RESERVED_KEYWORD');
662 662
 
663 663
         // Foreign table with non-reserved keyword as name (does not need quotation).
664 664
         $foreignTable = new Table('foo');
665
-        $foreignTable->addColumn('create', 'string');    // Foreign column with reserved keyword as name (needs quotation).
666
-        $foreignTable->addColumn('bar', 'string');       // Foreign column with non-reserved keyword as name (does not need quotation).
665
+        $foreignTable->addColumn('create', 'string'); // Foreign column with reserved keyword as name (needs quotation).
666
+        $foreignTable->addColumn('bar', 'string'); // Foreign column with non-reserved keyword as name (does not need quotation).
667 667
         $foreignTable->addColumn('`foo-bar`', 'string'); // Foreign table with special character in name (needs quotation on some platforms, e.g. Sqlite).
668 668
 
669 669
         $table->addForeignKeyConstraint($foreignTable, array('create', 'foo', '`bar`'), array('create', 'bar', '`foo-bar`'), array(), 'FK_WITH_NON_RESERVED_KEYWORD');
670 670
 
671 671
         // Foreign table with special character in name (needs quotation on some platforms, e.g. Sqlite).
672 672
         $foreignTable = new Table('`foo-bar`');
673
-        $foreignTable->addColumn('create', 'string');    // Foreign column with reserved keyword as name (needs quotation).
674
-        $foreignTable->addColumn('bar', 'string');       // Foreign column with non-reserved keyword as name (does not need quotation).
673
+        $foreignTable->addColumn('create', 'string'); // Foreign column with reserved keyword as name (needs quotation).
674
+        $foreignTable->addColumn('bar', 'string'); // Foreign column with non-reserved keyword as name (does not need quotation).
675 675
         $foreignTable->addColumn('`foo-bar`', 'string'); // Foreign table with special character in name (needs quotation on some platforms, e.g. Sqlite).
676 676
 
677 677
         $table->addForeignKeyConstraint($foreignTable, array('create', 'foo', '`bar`'), array('create', 'bar', '`foo-bar`'), array(), 'FK_WITH_INTENDED_QUOTATION');
@@ -721,7 +721,7 @@  discard block
 block discarded – undo
721 721
     {
722 722
         $index = new Index('select', array('foo'));
723 723
 
724
-        if (! $this->supportsInlineIndexDeclaration()) {
724
+        if ( ! $this->supportsInlineIndexDeclaration()) {
725 725
             $this->expectException('Doctrine\DBAL\DBALException');
726 726
         }
727 727
 
@@ -1078,7 +1078,7 @@  discard block
 block discarded – undo
1078 1078
      */
1079 1079
     public function testQuotesDropForeignKeySQL()
1080 1080
     {
1081
-        if (! $this->_platform->supportsForeignKeyConstraints()) {
1081
+        if ( ! $this->_platform->supportsForeignKeyConstraints()) {
1082 1082
             $this->markTestSkipped(
1083 1083
                 sprintf('%s does not support foreign key constraints.', get_class($this->_platform))
1084 1084
             );
@@ -1186,7 +1186,7 @@  discard block
 block discarded – undo
1186 1186
      */
1187 1187
     public function testGeneratesInlineColumnCommentSQL($comment, $expectedSql)
1188 1188
     {
1189
-        if (! $this->_platform->supportsInlineColumnComments()) {
1189
+        if ( ! $this->_platform->supportsInlineColumnComments()) {
1190 1190
             $this->markTestSkipped(sprintf('%s does not support inline column comments.', get_class($this->_platform)));
1191 1191
         }
1192 1192
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -672,7 +672,7 @@
 block discarded – undo
672 672
             array(false, 'false', 0, false),
673 673
             array('f', 'false', 0, false),
674 674
             array('false', 'false', 0, false),
675
-            array( 'n', 'false', 0, false),
675
+            array('n', 'false', 0, false),
676 676
             array('no', 'false', 0, false),
677 677
             array('off', 'false', 0, false),
678 678
             array('0', 'false', 0, false),
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -311,11 +311,11 @@  discard block
 block discarded – undo
311 311
         );
312 312
         $statements = $this->_platform->getCreateTableSQL($table);
313 313
         //strip all the whitespace from the statements
314
-        array_walk($statements, function(&$value){
315
-            $value = preg_replace('/\s+/', ' ',$value);
314
+        array_walk($statements, function(&$value) {
315
+            $value = preg_replace('/\s+/', ' ', $value);
316 316
         });
317
-        foreach($targets as $key => $sql){
318
-            self::assertArrayHasKey($key,$statements);
317
+        foreach ($targets as $key => $sql) {
318
+            self::assertArrayHasKey($key, $statements);
319 319
             self::assertEquals($sql, $statements[$key]);
320 320
         }
321 321
     }
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 
349 349
     public function getBitAndComparisonExpressionSql($value1, $value2)
350 350
     {
351
-        return 'BITAND('.$value1 . ', ' . $value2 . ')';
351
+        return 'BITAND(' . $value1 . ', ' . $value2 . ')';
352 352
     }
353 353
 
354 354
     public function getBitOrComparisonExpressionSql($value1, $value2)
Please login to merge, or discard this patch.