Failed Conditions
Push — develop ( 26c78d...044239 )
by Michael
63:26
created
tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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\ORM\Functional;
6 6
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function testIssue2059()
33 33
     {
34
-        if (!$this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
34
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
35 35
             $this->markTestSkipped('Platform does not support foreign keys.');
36 36
         }
37 37
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function testLoadMetadataFromDatabase()
55 55
     {
56
-        if (!$this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
56
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
57 57
             $this->markTestSkipped('Platform does not support foreign keys.');
58 58
         }
59 59
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     public function testLoadMetadataWithForeignKeyFromDatabase()
93 93
     {
94
-        if (!$this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
94
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
95 95
             $this->markTestSkipped('Platform does not support foreign keys.');
96 96
         }
97 97
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     public function testDetectManyToManyTables()
126 126
     {
127
-        if (!$this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
127
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
128 128
             $this->markTestSkipped('Platform does not support foreign keys.');
129 129
         }
130 130
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
         $table->addColumn('column_index1', 'string');
181 181
         $table->addColumn('column_index2', 'string');
182
-        $table->addIndex(['column_index1','column_index2'], 'index1');
182
+        $table->addIndex(['column_index1', 'column_index2'], 'index1');
183 183
 
184 184
         $table->addColumn('column_unique_index1', 'string');
185 185
         $table->addColumn('column_unique_index2', 'string');
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
         self::assertNotEmpty($indexes['index1']['columns']);
247 247
         self::assertEquals(
248
-            ['column_index1','column_index2'],
248
+            ['column_index1', 'column_index2'],
249 249
             $indexes['index1']['columns']
250 250
         );
251 251
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Cache/FileLockRegionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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\ORM\Cache;
6 6
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     protected function createRegion()
56 56
     {
57
-        $this->directory = sys_get_temp_dir() . '/doctrine_lock_'. uniqid();
57
+        $this->directory = sys_get_temp_dir().'/doctrine_lock_'.uniqid();
58 58
 
59 59
         $region = new DefaultRegion('concurren_region_test', $this->cache);
60 60
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         $reflectionDirectory->setAccessible(true);
258 258
         $reflectionDirectory->setValue($region, str_repeat('a', 10000));
259 259
 
260
-        set_error_handler(function () {}, E_WARNING);
260
+        set_error_handler(function() {}, E_WARNING);
261 261
         self::assertTrue($region->evictAll());
262 262
         restore_error_handler();
263 263
     }
Please login to merge, or discard this patch.