Passed
Pull Request — 2.6 (#7865)
by Marco
07:43
created
tests/Doctrine/Tests/ORM/Functional/Ticket/GH7820Test.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
     {
50 50
         parent::setUp();
51 51
 
52
-        if (! Type::hasType(GH7820LineTextType::class)) {
52
+        if ( ! Type::hasType(GH7820LineTextType::class)) {
53 53
             Type::addType(GH7820LineTextType::class, GH7820LineTextType::class);
54 54
         }
55 55
 
56 56
         $this->setUpEntitySchema([GH7820Line::class]);
57 57
 
58
-        $this->_em->createQuery('DELETE FROM ' . GH7820Line::class . ' l')
58
+        $this->_em->createQuery('DELETE FROM '.GH7820Line::class.' l')
59 59
             ->execute();
60 60
 
61 61
         foreach (self::SONG as $index => $line) {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         self::assertSame(
75 75
             self::SONG,
76
-            array_map(static function (GH7820Line $line) : string {
76
+            array_map(static function(GH7820Line $line) : string {
77 77
                 return $line->toString();
78 78
             }, iterator_to_array(new Paginator($query)))
79 79
         );
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         self::assertSame(
97 97
             self::SONG,
98
-            array_map(static function (GH7820Line $line) : string {
98
+            array_map(static function(GH7820Line $line) : string {
99 99
                 return $line->toString();
100 100
             }, iterator_to_array(new Paginator($query))),
101 101
             'Paginator runs once, query cache is populated with DQL -> SQL translation'
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         self::assertSame(
109 109
             self::SONG,
110
-            array_map(static function (GH7820Line $line) : string {
110
+            array_map(static function(GH7820Line $line) : string {
111 111
                 return $line->toString();
112 112
             }, iterator_to_array(new Paginator($query))),
113 113
             'Paginator runs again, SQL parameters are translated again, even with cached DQL -> SQL translation'
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
     public function __toString() : string
167 167
     {
168
-        return 'Line: ' . $this->text;
168
+        return 'Line: '.$this->text;
169 169
     }
170 170
 }
171 171
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     {
176 176
         $text = parent::convertToPHPValue($value, $platform);
177 177
 
178
-        if (! is_string($text)) {
178
+        if ( ! is_string($text)) {
179 179
             return $text;
180 180
         }
181 181
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
186 186
     {
187
-        if (! $value instanceof GH7820LineText) {
187
+        if ( ! $value instanceof GH7820LineText) {
188 188
             return parent::convertToDatabaseValue($value, $platform);
189 189
         }
190 190
 
Please login to merge, or discard this patch.