Completed
Pull Request — master (#7902)
by
unknown
63:54
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC237Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
         // proxy for Y is in identity map
51 51
 
52
-        $z2 = $this->em->createQuery('select z,y from ' . \get_class($z) . ' z join z.y y where z.id = ?1')
52
+        $z2 = $this->em->createQuery('select z,y from '.\get_class($z).' z join z.y y where z.id = ?1')
53 53
                 ->setParameter(1, $z->id)
54 54
                 ->getSingleResult();
55 55
         self::assertInstanceOf(GhostObjectInterface::class, $z2->y);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2602Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $entity = $event->getEntity();
139 139
 
140
-        if (! ($entity instanceof DDC2602Biography)) {
140
+        if ( ! ($entity instanceof DDC2602Biography)) {
141 141
             return;
142 142
         }
143 143
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             $fieldSelection = new DDC2602FieldSelection();
159 159
 
160 160
             $fieldSelection->field      = $field;
161
-            $fieldSelection->choiceList = $field->choiceList->filter(static function ($choice) use ($choiceList) {
161
+            $fieldSelection->choiceList = $field->choiceList->filter(static function($choice) use ($choiceList) {
162 162
                 return \in_array($choice->id, $choiceList, true);
163 163
             });
164 164
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         parent::setUp();
28 28
 
29
-        $testDir = \sys_get_temp_dir() . '/DDC742Test' . \uniqid();
29
+        $testDir = \sys_get_temp_dir().'/DDC742Test'.\uniqid();
30 30
 
31 31
         \mkdir($testDir);
32 32
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1690Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 
88 88
     public function addPropertyChangedListener(PropertyChangedListener $listener)
89 89
     {
90
-        if (! \in_array($listener, $this->listeners, true)) {
90
+        if ( ! \in_array($listener, $this->listeners, true)) {
91 91
             $this->listeners[] = $listener;
92 92
         }
93 93
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1655Test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 ]
31 31
             );
32 32
         } catch (Exception $e) {
33
-            $this->fail($e->getMessage() . PHP_EOL . $e->getTraceAsString());
33
+            $this->fail($e->getMessage().PHP_EOL.$e->getTraceAsString());
34 34
         }
35 35
     }
36 36
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $conn = static::$sharedConn;
40 40
 
41 41
         // In case test is skipped, tearDown is called, but no setup may have run
42
-        if (! $conn) {
42
+        if ( ! $conn) {
43 43
             return;
44 44
         }
45 45
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $baz = $this->em->find(\get_class($baz), $baz->id);
83 83
         foreach ($baz->foos as $foo) {
84
-            self::assertEquals(1, $foo->loaded, 'should have loaded callback counter incremented for ' . \get_class($foo));
84
+            self::assertEquals(1, $foo->loaded, 'should have loaded callback counter incremented for '.\get_class($foo));
85 85
         }
86 86
     }
87 87
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         self::assertEquals(1, $bar->loaded);
106 106
         self::assertEquals(1, $bar->subLoaded);
107 107
 
108
-        $dql = 'SELECT b FROM ' . __NAMESPACE__ . '\DDC1655Bar b WHERE b.id = ?1';
108
+        $dql = 'SELECT b FROM '.__NAMESPACE__.'\DDC1655Bar b WHERE b.id = ?1';
109 109
         $bar = $this->em->createQuery($dql)->setParameter(1, $bar->id)->getSingleResult();
110 110
 
111 111
         self::assertEquals(1, $bar->loaded);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2825Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         $platform = $this->em->getConnection()->getDatabasePlatform();
30 30
 
31
-        if (! $platform->supportsSchemas() && ! $platform->canEmulateSchemas()) {
31
+        if ( ! $platform->supportsSchemas() && ! $platform->canEmulateSchemas()) {
32 32
             $this->markTestSkipped('This test is only useful for databases that support schemas or can emulate them.');
33 33
         }
34 34
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         // Checks sequence name validity
66 66
         self::assertEquals(
67
-            \str_replace('"', '', $fullTableName) . '_' . $property->getColumnName() . '_seq',
67
+            \str_replace('"', '', $fullTableName).'_'.$property->getColumnName().'_seq',
68 68
             $idSequenceName
69 69
         );
70 70
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/PostgreSqlSchemaToolTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         parent::setUp();
22 22
 
23 23
         if ($this->em->getConnection()->getDatabasePlatform()->getName() !== 'postgresql') {
24
-            $this->markTestSkipped('The ' . self::class . ' requires the use of postgresql.');
24
+            $this->markTestSkipped('The '.self::class.' requires the use of postgresql.');
25 25
         }
26 26
     }
27 27
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $tool->createSchema($classes);
133 133
 
134 134
         $sql = $tool->getUpdateSchemaSql($classes);
135
-        $sql = \array_filter($sql, static function ($sql) {
135
+        $sql = \array_filter($sql, static function($sql) {
136 136
             return \strpos($sql, 'DROP SEQUENCE stonewood.') === 0;
137 137
         });
138 138
 
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
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         $updateSql = $this->schemaTool->getUpdateSchemaSql([$class]);
34 34
 
35
-        $updateSql = \array_filter($updateSql, static function ($sql) {
35
+        $updateSql = \array_filter($updateSql, static function($sql) {
36 36
             return \strpos($sql, 'DBAL483') !== false;
37 37
         });
38 38
 
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
@@ -89,10 +89,10 @@
 block discarded – undo
89 89
         $schemaDiff = $comparator->compare($fromSchema, $toSchema);
90 90
 
91 91
         $sql = $schemaDiff->toSql($this->em->getConnection()->getDatabasePlatform());
92
-        $sql = \array_filter($sql, static function ($sql) {
92
+        $sql = \array_filter($sql, static function($sql) {
93 93
             return \strpos($sql, 'DROP') === false;
94 94
         });
95 95
 
96
-        self::assertCount(0, $sql, 'SQL: ' . \implode(PHP_EOL, $sql));
96
+        self::assertCount(0, $sql, 'SQL: '.\implode(PHP_EOL, $sql));
97 97
     }
98 98
 }
Please login to merge, or discard this patch.