Passed
Pull Request — master (#1202)
by Abdul Malik
22:00 queued 10:38
created
src/Pagination/tests/LimitsTraitTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,8 @@
 block discarded – undo
21 21
 
22 22
     protected function setUp(): void
23 23
     {
24
-        $this->trait = new class {
24
+        $this->trait = new class
25
+        {
25 26
             use LimitsTrait;
26 27
         };
27 28
     }
Please login to merge, or discard this patch.
src/Session/tests/FactoryTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,8 @@
 block discarded – undo
15 15
 {
16 16
     protected function tearDown(): void
17 17
     {
18
-        if ((int)session_status() === PHP_SESSION_ACTIVE) {
18
+        if ((int)session_status() === PHP_SESSION_ACTIVE)
19
+        {
19 20
             session_abort();
20 21
         }
21 22
     }
Please login to merge, or discard this patch.
src/Session/tests/SessionTest.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
     protected function tearDown(): void
41 41
     {
42
-        if ((int)session_status() === PHP_SESSION_ACTIVE) {
42
+        if ((int)session_status() === PHP_SESSION_ACTIVE)
43
+        {
43 44
             session_abort();
44 45
         }
45 46
     }
@@ -113,7 +114,8 @@  discard block
 block discarded – undo
113 114
         self::assertSame('default', $section->getName());
114 115
 
115 116
         $section->set('key', 'value');
116
-        foreach ($section as $key => $value) {
117
+        foreach ($section as $key => $value)
118
+        {
117 119
             self::assertSame('key', $key);
118 120
             self::assertSame('value', $value);
119 121
         }
Please login to merge, or discard this patch.
src/Security/tests/Traits/GuardedTraitTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@
 block discarded – undo
28 28
 
29 29
     protected function setUp(): void
30 30
     {
31
-        $this->trait = new class {
31
+        $this->trait = new class
32
+        {
32 33
             use GuardedTrait;
33 34
         };
34 35
         $this->guard = $this->createMock(GuardInterface::class);
Please login to merge, or discard this patch.
src/Prototype/tests/Commands/AbstractCommandsTestCase.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,8 @@  discard block
 block discarded – undo
29 29
 
30 30
     protected function setUp(): void
31 31
     {
32
-        if (!\class_exists(Kernel::class)) {
32
+        if (!\class_exists(Kernel::class))
33
+        {
33 34
             $this->markTestSkipped('A "spiral/framework" dependency is required to run these tests');
34 35
         }
35 36
 
@@ -42,14 +43,16 @@  discard block
 block discarded – undo
42 43
 
43 44
         $this->storage = new Storage($this->dir() . '/Fixtures/');
44 45
 
45
-        foreach (static::STORE as $name) {
46
+        foreach (static::STORE as $name)
47
+        {
46 48
             $this->storage->store($name);
47 49
         }
48 50
     }
49 51
 
50 52
     protected function tearDown(): void
51 53
     {
52
-        foreach (static::STORE as $name) {
54
+        foreach (static::STORE as $name)
55
+        {
53 56
             $this->storage->restore($name);
54 57
         }
55 58
     }
Please login to merge, or discard this patch.
src/Prototype/tests/InjectorTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,8 @@
 block discarded – undo
19 19
 {
20 20
     protected function setUp(): void
21 21
     {
22
-        if ((string)ini_get('zend.assertions') === 1) {
22
+        if ((string)ini_get('zend.assertions') === 1)
23
+        {
23 24
             ini_set('zend.assertions', 0);
24 25
         }
25 26
     }
Please login to merge, or discard this patch.