Passed
Pull Request — master (#7938)
by Šimon
15:10
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3123Test.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
         $uow->scheduleExtraUpdate($user, ['name' => 'changed name']);
34 34
 
35 35
         $listener = $this->getMockBuilder(stdClass::class)
36
-                         ->setMethods([Events::postFlush])
37
-                         ->getMock();
36
+                            ->setMethods([Events::postFlush])
37
+                            ->getMock();
38 38
 
39 39
         $listener
40 40
             ->expects($this->once())
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $listener
39 39
             ->expects($this->once())
40 40
             ->method(Events::postFlush)
41
-            ->will($this->returnCallback(static function () use ($uow) {
41
+            ->will($this->returnCallback(static function() use ($uow) {
42 42
                 self::assertAttributeEmpty('extraUpdates', $uow, 'ExtraUpdates are reset before postFlush');
43 43
             }));
44 44
 
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/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.
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/MySqlSchemaToolTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         parent::setUp();
17 17
         if ($this->em->getConnection()->getDatabasePlatform()->getName() !== 'mysql') {
18
-            $this->markTestSkipped('The ' . self::class . ' requires the use of mysql.');
18
+            $this->markTestSkipped('The '.self::class.' requires the use of mysql.');
19 19
         }
20 20
     }
21 21
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheQueryCacheTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -805,7 +805,7 @@
 block discarded – undo
805 805
         $this->secondLevelCacheLogger->clearStats();
806 806
         $this->em->clear();
807 807
 
808
-        $getHash = static function (AbstractQuery $query) {
808
+        $getHash = static function(AbstractQuery $query) {
809 809
             $method = new ReflectionMethod($query, 'getHash');
810 810
             $method->setAccessible(true);
811 811
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/CustomFunctionsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 use Doctrine\Tests\Models\CMS\CmsUser;
13 13
 use Doctrine\Tests\OrmFunctionalTestCase;
14 14
 
15
-require_once __DIR__ . '/../../TestInit.php';
15
+require_once __DIR__.'/../../TestInit.php';
16 16
 
17 17
 class CustomFunctionsTest extends OrmFunctionalTestCase
18 18
 {
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
         $this->em->flush();
33 33
 
34 34
         // Instead of defining the function with the class name, we use a callback
35
-        $this->em->getConfiguration()->addCustomStringFunction('FOO', static function ($funcName) {
35
+        $this->em->getConfiguration()->addCustomStringFunction('FOO', static function($funcName) {
36 36
             return new NoOp($funcName);
37 37
         });
38
-        $this->em->getConfiguration()->addCustomNumericFunction('BAR', static function ($funcName) {
38
+        $this->em->getConfiguration()->addCustomNumericFunction('BAR', static function($funcName) {
39 39
             return new NoOp($funcName);
40 40
         });
41 41
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         $listener = new ListenerSecondLevelCacheTest(
205 205
             [
206
-                Events::postFlush => static function () {
206
+                Events::postFlush => static function() {
207 207
                     throw new RuntimeException('post flush failure');
208 208
                 },
209 209
             ]
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
         $listener = new ListenerSecondLevelCacheTest(
237 237
             [
238
-                Events::postUpdate => static function () {
238
+                Events::postUpdate => static function() {
239 239
                     throw new RuntimeException('post update failure');
240 240
                 },
241 241
             ]
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
         self::assertInstanceOf(State::class, $state);
255 255
         self::assertEquals($stateName, $state->getName());
256 256
 
257
-        $state->setName($stateName . uniqid());
257
+        $state->setName($stateName.uniqid());
258 258
 
259 259
         $this->em->persist($state);
260 260
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
         $this->em->clear();
282 282
 
283 283
         $listener = new ListenerSecondLevelCacheTest([
284
-            Events::postRemove => static function () {
284
+            Events::postRemove => static function() {
285 285
                 throw new RuntimeException('post remove failure');
286 286
             },
287 287
         ]);
Please login to merge, or discard this patch.