Passed
Branch tests-better-coverage (52d7f0)
by Michael
04:07
created
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -455,8 +455,8 @@
 block discarded – undo
455 455
     public function getListTablesSQL()
456 456
     {
457 457
         return "SELECT name FROM sqlite_master WHERE type = 'table' AND name != 'sqlite_sequence' AND name != 'geometry_columns' AND name != 'spatial_ref_sys' "
458
-             . "UNION ALL SELECT name FROM sqlite_temp_master "
459
-             . "WHERE type = 'table' ORDER BY name";
458
+                . "UNION ALL SELECT name FROM sqlite_temp_master "
459
+                . "WHERE type = 'table' ORDER BY name";
460 460
     }
461 461
 
462 462
     /**
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
     public function getCreateSequenceSQL(Sequence $sequence)
199 199
     {
200 200
         return 'CREATE SEQUENCE ' . $sequence->getQuotedName($this) .
201
-               ' START WITH ' . $sequence->getInitialValue() .
202
-               ' MINVALUE ' . $sequence->getInitialValue() .
203
-               ' INCREMENT BY ' . $sequence->getAllocationSize() .
204
-               $this->getSequenceCacheSQL($sequence);
201
+                ' START WITH ' . $sequence->getInitialValue() .
202
+                ' MINVALUE ' . $sequence->getInitialValue() .
203
+                ' INCREMENT BY ' . $sequence->getAllocationSize() .
204
+                $this->getSequenceCacheSQL($sequence);
205 205
     }
206 206
 
207 207
     /**
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
     public function getAlterSequenceSQL(Sequence $sequence)
211 211
     {
212 212
         return 'ALTER SEQUENCE ' . $sequence->getQuotedName($this) .
213
-               ' INCREMENT BY ' . $sequence->getAllocationSize()
214
-               . $this->getSequenceCacheSQL($sequence);
213
+                ' INCREMENT BY ' . $sequence->getAllocationSize()
214
+                . $this->getSequenceCacheSQL($sequence);
215 215
     }
216 216
 
217 217
     /**
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
         $database = $this->quoteStringLiteral($database->getName());
391 391
 
392 392
         return "SELECT sequence_name, min_value, increment_by FROM sys.all_sequences ".
393
-               "WHERE SEQUENCE_OWNER = " . $database;
393
+                "WHERE SEQUENCE_OWNER = " . $database;
394 394
     }
395 395
 
396 396
     /**
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/SQLServer2012Platform.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     public function getAlterSequenceSQL(Sequence $sequence)
42 42
     {
43 43
         return 'ALTER SEQUENCE ' . $sequence->getQuotedName($this) .
44
-               ' INCREMENT BY ' . $sequence->getAllocationSize();
44
+                ' INCREMENT BY ' . $sequence->getAllocationSize();
45 45
     }
46 46
 
47 47
     /**
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function getCreateSequenceSQL(Sequence $sequence)
51 51
     {
52 52
         return 'CREATE SEQUENCE ' . $sequence->getQuotedName($this) .
53
-               ' START WITH ' . $sequence->getInitialValue() .
54
-               ' INCREMENT BY ' . $sequence->getAllocationSize() .
55
-               ' MINVALUE ' . $sequence->getInitialValue();
53
+                ' START WITH ' . $sequence->getInitialValue() .
54
+                ' INCREMENT BY ' . $sequence->getAllocationSize() .
55
+                ' MINVALUE ' . $sequence->getInitialValue();
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -350,9 +350,9 @@  discard block
 block discarded – undo
350 350
         }
351 351
 
352 352
         return "SELECT COLUMN_NAME, DATA_TYPE, COLUMN_COMMENT, IS_NULLABLE, IS_AUTO_INCREMENT, CHARACTER_MAXIMUM_LENGTH, COLUMN_DEFAULT," .
353
-               " NUMERIC_PRECISION, NUMERIC_SCALE, COLLATION_NAME" .
354
-               " FROM DATA_DICTIONARY.COLUMNS" .
355
-               " WHERE TABLE_SCHEMA=" . $database . " AND TABLE_NAME = '" . $table . "'";
353
+                " NUMERIC_PRECISION, NUMERIC_SCALE, COLLATION_NAME" .
354
+                " FROM DATA_DICTIONARY.COLUMNS" .
355
+                " WHERE TABLE_SCHEMA=" . $database . " AND TABLE_NAME = '" . $table . "'";
356 356
     }
357 357
 
358 358
     /**
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
         }
368 368
 
369 369
         return "SELECT CONSTRAINT_NAME, CONSTRAINT_COLUMNS, REFERENCED_TABLE_NAME, REFERENCED_TABLE_COLUMNS, UPDATE_RULE, DELETE_RULE" .
370
-               " FROM DATA_DICTIONARY.FOREIGN_KEYS" .
371
-               " WHERE CONSTRAINT_SCHEMA=" . $database . " AND CONSTRAINT_TABLE='" . $table . "'";
370
+                " FROM DATA_DICTIONARY.FOREIGN_KEYS" .
371
+                " WHERE CONSTRAINT_SCHEMA=" . $database . " AND CONSTRAINT_TABLE='" . $table . "'";
372 372
     }
373 373
 
374 374
     /**
@@ -383,8 +383,8 @@  discard block
 block discarded – undo
383 383
         }
384 384
 
385 385
         return "SELECT INDEX_NAME AS 'key_name', COLUMN_NAME AS 'column_name', IS_USED_IN_PRIMARY AS 'primary', IS_UNIQUE=0 AS 'non_unique'" .
386
-               " FROM DATA_DICTIONARY.INDEX_PARTS" .
387
-               " WHERE TABLE_SCHEMA=" . $database . " AND TABLE_NAME='" . $table . "'";
386
+                " FROM DATA_DICTIONARY.INDEX_PARTS" .
387
+                " WHERE TABLE_SCHEMA=" . $database . " AND TABLE_NAME='" . $table . "'";
388 388
     }
389 389
 
390 390
     /**
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
                 }
602 602
             }
603 603
         } elseif (is_bool($item) || is_numeric($item)) {
604
-           $item = ($item) ? 'true' : 'false';
604
+            $item = ($item) ? 'true' : 'false';
605 605
         }
606 606
 
607 607
         return $item;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Types/GuidTypeTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
 
42 42
         $mock = $this->createMock(get_class($this->_platform));
43 43
         $mock->expects($this->any())
44
-             ->method('hasNativeGuidType')
45
-             ->will($this->returnValue(true));
44
+                ->method('hasNativeGuidType')
45
+                ->will($this->returnValue(true));
46 46
 
47 47
         self::assertFalse($this->_type->requiresSQLCommentHint($mock));
48 48
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             ->with(
55 55
                 $this->equalTo(3),
56 56
                 $this->equalTo($params[2])
57
-          );
57
+            );
58 58
 
59 59
         // can't pass to constructor since we don't have a real database handle,
60 60
         // but execute must check the connection for the executeMode
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOPgsqlConnectionTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
     public function getValidCharsets()
56 56
     {
57 57
         return array(
58
-           array("UTF8"),
59
-           array("LATIN1")
58
+            array("UTF8"),
59
+            array("LATIN1")
60 60
         );
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
     {
51 51
         return new \Doctrine\DBAL\Driver\Mysqli\MysqliConnection(
52 52
             array(
53
-                 'host' => $GLOBALS['db_host'],
54
-                 'dbname' => $GLOBALS['db_name'],
53
+                    'host' => $GLOBALS['db_host'],
54
+                    'dbname' => $GLOBALS['db_name'],
55 55
             ),
56 56
             $GLOBALS['db_username'],
57 57
             $GLOBALS['db_password'],
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Schema/SqliteSchemaManagerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
 
160 160
         $tableIndexes = $this->_sm->listTableIndexes('non_default_pk_order');
161 161
 
162
-         self::assertCount(1, $tableIndexes);
162
+            self::assertCount(1, $tableIndexes);
163 163
 
164 164
         self::assertArrayHasKey('primary', $tableIndexes, 'listTableIndexes() has to return a "primary" array key.');
165 165
         self::assertEquals(array('other_id', 'id'), array_map('strtolower', $tableIndexes['primary']->getColumns()));
Please login to merge, or discard this patch.