Passed
Pull Request — master (#7230)
by Grégoire
16:18
created
Doctrine/Tests/ORM/Functional/OneToOneSelfReferentialAssociationTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,9 +160,9 @@
 block discarded – undo
160 160
      */
161 161
     private $other2;
162 162
 
163
-    public function getId() {return $this->id;}
164
-    public function setOther1($other1) {$this->other1 = $other1;}
165
-    public function getOther1() {return $this->other1;}
166
-    public function setOther2($other2) {$this->other2 = $other2;}
167
-    public function getOther2() {return $this->other2;}
163
+    public function getId() {return $this->id; }
164
+    public function setOther1($other1) {$this->other1 = $other1; }
165
+    public function getOther1() {return $this->other1; }
166
+    public function setOther2($other2) {$this->other2 = $other2; }
167
+    public function getOther2() {return $this->other2; }
168 168
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/CustomFunctionsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 use Doctrine\Tests\Models\CMS\CmsUser;
12 12
 use Doctrine\Tests\OrmFunctionalTestCase;
13 13
 
14
-require_once __DIR__ . '/../../TestInit.php';
14
+require_once __DIR__.'/../../TestInit.php';
15 15
 
16 16
 class CustomFunctionsTest extends OrmFunctionalTestCase
17 17
 {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/DDC214Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         try {
74 74
             $this->schemaTool->createSchema($classMetadata);
75
-        } catch(\Exception $e) {
75
+        } catch (\Exception $e) {
76 76
             // was already created
77 77
         }
78 78
 
@@ -87,6 +87,6 @@  discard block
 block discarded – undo
87 87
         $sql = $schemaDiff->toSql($this->_em->getConnection()->getDatabasePlatform());
88 88
         $sql = array_filter($sql, function($sql) { return strpos($sql, 'DROP') === false; });
89 89
 
90
-        $this->assertEquals(0, count($sql), "SQL: " . implode(PHP_EOL, $sql));
90
+        $this->assertEquals(0, count($sql), "SQL: ".implode(PHP_EOL, $sql));
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/CompanySchemaTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     public function testDropPartSchemaWithForeignKeys()
58 58
     {
59
-        if (!$this->_em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
59
+        if ( ! $this->_em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
60 60
             $this->markTestSkipped("Foreign Key test");
61 61
         }
62 62
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/DBAL483Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $updateSql = $this->schemaTool->getUpdateSchemaSql([$class]);
29 29
 
30
-        $updateSql = array_filter($updateSql, function ($sql) {
30
+        $updateSql = array_filter($updateSql, function($sql) {
31 31
             return strpos($sql, 'DBAL483') !== false;
32 32
         });
33 33
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/PostgreSqlSchemaToolTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         parent::setUp();
14 14
 
15 15
         if ($this->_em->getConnection()->getDatabasePlatform()->getName() !== 'postgresql') {
16
-            $this->markTestSkipped('The ' . __CLASS__ .' requires the use of postgresql.');
16
+            $this->markTestSkipped('The '.__CLASS__.' requires the use of postgresql.');
17 17
         }
18 18
     }
19 19
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SequenceGeneratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
                     $this->_em->getClassMetadata(SequenceEntity::class),
25 25
                 ]
26 26
             );
27
-        } catch(\Exception $e) {
27
+        } catch (\Exception $e) {
28 28
         }
29 29
     }
30 30
 
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Functional/OneToManyBidirectionalAssociationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
     {
183 183
         $this->_createFixture();
184 184
 
185
-        $product  = $this->_em->find(ECommerceProduct::class, $this->product->getId());
185
+        $product = $this->_em->find(ECommerceProduct::class, $this->product->getId());
186 186
 
187 187
         $thirdFeature = new ECommerceFeature();
188 188
         $thirdFeature->setDescription('Model writing tutorial');
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1461Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
                 $this->_em->getClassMetadata(DDC1461User::class)
19 19
                 ]
20 20
             );
21
-        } catch(\Exception $e) {
21
+        } catch (\Exception $e) {
22 22
 
23 23
         }
24 24
     }
Please login to merge, or discard this patch.