@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * |
18 | 18 | * @link http://php.net/manual/class.arrayaccess.php |
19 | 19 | */ |
20 | -trait ArrayAccessTrait{ |
|
20 | +trait ArrayAccessTrait { |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @var array |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * @link http://php.net/manual/arrayaccess.offsetget.php |
42 | 42 | * @inheritdoc |
43 | 43 | */ |
44 | - public function offsetGet($offset){ |
|
44 | + public function offsetGet($offset) { |
|
45 | 45 | return $this->array[$offset] ?? null; |
46 | 46 | } |
47 | 47 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @link http://php.net/manual/arrayaccess.offsetset.php |
50 | 50 | * @inheritdoc |
51 | 51 | */ |
52 | - public function offsetSet($offset, $value){ |
|
52 | + public function offsetSet($offset, $value) { |
|
53 | 53 | |
54 | 54 | $offset !== null |
55 | 55 | ? $this->array[$offset] = $value |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @link http://php.net/manual/arrayaccess.offsetunset.php |
61 | 61 | * @inheritdoc |
62 | 62 | */ |
63 | - public function offsetUnset($offset){ |
|
63 | + public function offsetUnset($offset) { |
|
64 | 64 | unset($this->array[$offset]); |
65 | 65 | } |
66 | 66 |