Failed Conditions
Pull Request — master (#7046)
by Gabriel
12:07
created
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheQueryCacheTest.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
         $this->secondLevelCacheLogger->clearStats();
805 805
         $this->em->clear();
806 806
 
807
-        $getHash = function (AbstractQuery $query) {
807
+        $getHash = function(AbstractQuery $query) {
808 808
             $method = new \ReflectionMethod($query, 'getHash');
809 809
             $method->setAccessible(true);
810 810
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/PostgreSqlSchemaToolTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
 
133 133
         $sql = $tool->getUpdateSchemaSql($classes);
134 134
         $sql = array_filter($sql, function ($sql) {
135
- return (strpos($sql, 'DROP SEQUENCE stonewood.') === 0); });
135
+    return (strpos($sql, 'DROP SEQUENCE stonewood.') === 0); });
136 136
 
137 137
         self::assertCount(0, $sql, implode("\n", $sql));
138 138
     }
Please login to merge, or discard this 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\Functional\SchemaTool;
6 6
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         parent::setUp();
17 17
 
18 18
         if ($this->em->getConnection()->getDatabasePlatform()->getName() !== 'postgresql') {
19
-            $this->markTestSkipped('The ' . __CLASS__ . ' requires the use of postgresql.');
19
+            $this->markTestSkipped('The '.__CLASS__.' requires the use of postgresql.');
20 20
         }
21 21
     }
22 22
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         $tool->createSchema($classes);
132 132
 
133 133
         $sql = $tool->getUpdateSchemaSql($classes);
134
-        $sql = array_filter($sql, function ($sql) {
134
+        $sql = array_filter($sql, function($sql) {
135 135
  return (strpos($sql, 'DROP SEQUENCE stonewood.') === 0); });
136 136
 
137 137
         self::assertCount(0, $sql, implode("\n", $sql));
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/DDC214Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 
86 86
         $sql = $schemaDiff->toSql($this->em->getConnection()->getDatabasePlatform());
87 87
         $sql = array_filter($sql, function ($sql) {
88
- return strpos($sql, 'DROP') === false; });
88
+    return strpos($sql, 'DROP') === false; });
89 89
 
90 90
         self::assertCount(0, $sql, 'SQL: ' . implode(PHP_EOL, $sql));
91 91
     }
Please login to merge, or discard this 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\Functional\SchemaTool;
6 6
 
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
         $schemaDiff = $comparator->compare($fromSchema, $toSchema);
85 85
 
86 86
         $sql = $schemaDiff->toSql($this->em->getConnection()->getDatabasePlatform());
87
-        $sql = array_filter($sql, function ($sql) {
87
+        $sql = array_filter($sql, function($sql) {
88 88
  return strpos($sql, 'DROP') === false; });
89 89
 
90
-        self::assertCount(0, $sql, 'SQL: ' . implode(PHP_EOL, $sql));
90
+        self::assertCount(0, $sql, 'SQL: '.implode(PHP_EOL, $sql));
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheTest.php 1 patch
Spacing   +5 added lines, -5 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
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $listener = new ListenerSecondLevelCacheTest(
201 201
             [
202
-                Events::postFlush => function () {
202
+                Events::postFlush => function() {
203 203
                     throw new \RuntimeException('post flush failure');
204 204
                 },
205 205
             ]
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
         $listener = new ListenerSecondLevelCacheTest(
235 235
             [
236
-                Events::postUpdate => function () {
236
+                Events::postUpdate => function() {
237 237
                     throw new \RuntimeException('post update failure');
238 238
                 },
239 239
             ]
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         self::assertInstanceOf(State::class, $state);
253 253
         self::assertEquals($stateName, $state->getName());
254 254
 
255
-        $state->setName($stateName . uniqid());
255
+        $state->setName($stateName.uniqid());
256 256
 
257 257
         $this->em->persist($state);
258 258
 
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
         $this->em->clear();
281 281
 
282 282
         $listener = new ListenerSecondLevelCacheTest([
283
-            Events::postRemove => function () {
283
+            Events::postRemove => function() {
284 284
                 throw new \RuntimeException('post remove failure');
285 285
             },
286 286
         ]);
Please login to merge, or discard this patch.