Passed
Branch tests-better-coverage (039fc0)
by Michael
09:41
created
tests/Doctrine/Tests/DBAL/Platforms/AbstractMySQLPlatformTestCase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
 {
16 16
     public function testModifyLimitQueryWitoutLimit()
17 17
     {
18
-        $sql = $this->_platform->modifyLimitQuery('SELECT n FROM Foo', null , 10);
19
-        self::assertEquals('SELECT n FROM Foo LIMIT 18446744073709551615 OFFSET 10',$sql);
18
+        $sql = $this->_platform->modifyLimitQuery('SELECT n FROM Foo', null, 10);
19
+        self::assertEquals('SELECT n FROM Foo LIMIT 18446744073709551615 OFFSET 10', $sql);
20 20
     }
21 21
 
22 22
     public function testGenerateMixedCaseTableCreate()
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
             array('CREATE TABLE foreign_table (id INT NOT NULL, fk_id INT NOT NULL, INDEX IDX_5690FFE2A57719D0 (fk_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = MyISAM'),
545 545
             $this->_platform->getCreateTableSQL(
546 546
                 $table,
547
-                AbstractPlatform::CREATE_INDEXES|AbstractPlatform::CREATE_FOREIGNKEYS
547
+                AbstractPlatform::CREATE_INDEXES | AbstractPlatform::CREATE_FOREIGNKEYS
548 548
             )
549 549
         );
550 550
 
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
             ),
559 559
             $this->_platform->getCreateTableSQL(
560 560
                 $table,
561
-                AbstractPlatform::CREATE_INDEXES|AbstractPlatform::CREATE_FOREIGNKEYS
561
+                AbstractPlatform::CREATE_INDEXES | AbstractPlatform::CREATE_FOREIGNKEYS
562 562
             )
563 563
         );
564 564
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/DriverMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function getSchemaManager(\Doctrine\DBAL\Connection $conn)
50 50
     {
51
-        if($this->_schemaManagerMock == null) {
51
+        if ($this->_schemaManagerMock == null) {
52 52
             return new SchemaManagerMock($conn);
53 53
         }
54 54
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/TestUtil.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
         // Connect to tmpdb in order to drop and create the real test db.
88 88
         $tmpConn = DriverManager::getConnection($tmpDbParams);
89 89
 
90
-        $platform  = $tmpConn->getDatabasePlatform();
90
+        $platform = $tmpConn->getDatabasePlatform();
91 91
 
92
-        if (! self::$initialized) {
92
+        if ( ! self::$initialized) {
93 93
             if ($platform->supportsCreateDropDatabase()) {
94 94
                 $dbname = $realConn->getDatabase();
95 95
                 $realConn->close();
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     private static function getFallbackConnectionParams()
118 118
     {
119
-        if (! extension_loaded('pdo_sqlite')) {
119
+        if ( ! extension_loaded('pdo_sqlite')) {
120 120
             Assert::markTestSkipped('PDO SQLite extension is not loaded');
121 121
         }
122 122
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalFunctionalTestCase.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             throw $t;
64 64
         }
65 65
 
66
-        if(isset($this->_sqlLoggerStack->queries) && count($this->_sqlLoggerStack->queries)) {
66
+        if (isset($this->_sqlLoggerStack->queries) && count($this->_sqlLoggerStack->queries)) {
67 67
             $queries = "";
68 68
             $i = count($this->_sqlLoggerStack->queries);
69 69
             foreach (array_reverse($this->_sqlLoggerStack->queries) as $query) {
@@ -71,29 +71,29 @@  discard block
 block discarded – undo
71 71
                     if (is_object($p)) {
72 72
                         return get_class($p);
73 73
                     } elseif (is_scalar($p)) {
74
-                        return "'".$p."'";
74
+                        return "'" . $p . "'";
75 75
                     }
76 76
 
77 77
                     return var_export($p, true);
78 78
                 }, $query['params'] ?: array());
79
-                $queries .= $i.". SQL: '".$query['sql']."' Params: ".implode(", ", $params).PHP_EOL;
79
+                $queries .= $i . ". SQL: '" . $query['sql'] . "' Params: " . implode(", ", $params) . PHP_EOL;
80 80
                 $i--;
81 81
             }
82 82
 
83 83
             $trace = $t->getTrace();
84 84
             $traceMsg = "";
85
-            foreach($trace as $part) {
86
-                if(isset($part['file'])) {
87
-                    if(strpos($part['file'], "PHPUnit/") !== false) {
85
+            foreach ($trace as $part) {
86
+                if (isset($part['file'])) {
87
+                    if (strpos($part['file'], "PHPUnit/") !== false) {
88 88
                         // Beginning with PHPUnit files we don't print the trace anymore.
89 89
                         break;
90 90
                     }
91 91
 
92
-                    $traceMsg .= $part['file'].":".$part['line'].PHP_EOL;
92
+                    $traceMsg .= $part['file'] . ":" . $part['line'] . PHP_EOL;
93 93
                 }
94 94
             }
95 95
 
96
-            $message = "[".get_class($t)."] ".$t->getMessage().PHP_EOL.PHP_EOL."With queries:".PHP_EOL.$queries.PHP_EOL."Trace:".PHP_EOL.$traceMsg;
96
+            $message = "[" . get_class($t) . "] " . $t->getMessage() . PHP_EOL . PHP_EOL . "With queries:" . PHP_EOL . $queries . PHP_EOL . "Trace:" . PHP_EOL . $traceMsg;
97 97
 
98 98
             throw new \Exception($message, (int) $t->getCode(), $t);
99 99
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Types/ArrayTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     public function testConversionFailure()
46 46
     {
47
-        error_reporting( (E_ALL | E_STRICT) - \E_NOTICE );
47
+        error_reporting((E_ALL | E_STRICT) - \E_NOTICE);
48 48
         $this->expectException('Doctrine\DBAL\Types\ConversionException');
49 49
         $this->_type->convertToPHPValue('abcdefg', $this->_platform);
50 50
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLAnywhere/ConnectionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 {
12 12
     protected function setUp()
13 13
     {
14
-        if (! extension_loaded('sqlanywhere')) {
14
+        if ( ! extension_loaded('sqlanywhere')) {
15 15
             $this->markTestSkipped('sqlanywhere is not installed.');
16 16
         }
17 17
 
18 18
         parent::setUp();
19 19
 
20
-        if (! $this->_conn->getDriver() instanceof Driver) {
20
+        if ( ! $this->_conn->getDriver() instanceof Driver) {
21 21
             $this->markTestSkipped('sqlanywhere only test.');
22 22
         }
23 23
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/OCI8/DriverTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@
 block discarded – undo
10 10
 {
11 11
     protected function setUp()
12 12
     {
13
-        if (! extension_loaded('oci8')) {
13
+        if ( ! extension_loaded('oci8')) {
14 14
             $this->markTestSkipped('oci8 is not installed.');
15 15
         }
16 16
 
17 17
         parent::setUp();
18 18
 
19
-        if (! $this->_conn->getDriver() instanceof Driver) {
19
+        if ( ! $this->_conn->getDriver() instanceof Driver) {
20 20
             $this->markTestSkipped('oci8 only test.');
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/PostgreSQL100Platform.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\DBAL\Platforms;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/DateIntervalUnit.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\DBAL\Platforms;
6 6
 
Please login to merge, or discard this patch.