Passed
Pull Request — main (#2)
by Anton
04:09 queued 02:00
created
src/Container/Container.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * @var array Container of elements
25 25
      */
26
-    protected array $container = [];
26
+    protected array $container=[];
27 27
 
28 28
     /**
29 29
      * Set key/value pair
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     protected function doSetContainer(string $key, mixed $value): void
37 37
     {
38
-        $this->container[$key] = $value;
38
+        $this->container[$key]=$value;
39 39
     }
40 40
 
41 41
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function setFromArray(array $data): void
88 88
     {
89 89
         foreach ($data as $key => $value) {
90
-            $this->container[$key] = $value;
90
+            $this->container[$key]=$value;
91 91
         }
92 92
     }
93 93
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     public function resetArray(): void
110 110
     {
111 111
         foreach ($this->container as &$value) {
112
-            $value = null;
112
+            $value=null;
113 113
         }
114 114
     }
115 115
 }
Please login to merge, or discard this patch.
tests/_bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,4 @@
 block discarded – undo
5 5
 ini_set('display_errors', 1);
6 6
 
7 7
 // Use composer autoload
8
-require dirname(__DIR__) . '/vendor/autoload.php';
8
+require dirname(__DIR__).'/vendor/autoload.php';
Please login to merge, or discard this patch.
tests/Container/ContainerTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     protected ConcreteContainer $class;
26 26
 
27
-    protected array $example = [
27
+    protected array $example=[
28 28
         'foo' => 'bar',
29 29
         'quz' => 'qux'
30 30
     ];
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     protected function setUp(): void
37 37
     {
38
-        $this->class = new ConcreteContainer();
38
+        $this->class=new ConcreteContainer();
39 39
     }
40 40
 
41 41
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $this->class->setFromArray($this->example);
57 57
         $this->class->resetArray();
58 58
 
59
-        $result = $this->class->toArray();
59
+        $result=$this->class->toArray();
60 60
 
61 61
         self::assertArrayHasKey('foo', $result);
62 62
         self::assertArrayHasKey('quz', $result);
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function testMagicAccess()
87 87
     {
88
-        $this->class->foo = 'bar';
89
-        $this->class->quz = 'qux';
88
+        $this->class->foo='bar';
89
+        $this->class->quz='qux';
90 90
 
91 91
         unset($this->class->quz);
92 92
 
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function testArrayAccess()
105 105
     {
106
-        $this->class['foo'] = 'bar';
107
-        $this->class['quz'] = 'qux';
106
+        $this->class['foo']='bar';
107
+        $this->class['quz']='qux';
108 108
 
109 109
         unset($this->class['quz']);
110 110
 
Please login to merge, or discard this patch.