@@ -23,6 +23,6 @@ |
||
| 23 | 23 | |
| 24 | 24 | $arrayStorage = ImmutableArrayStorage::fromTraversable($objects); |
| 25 | 25 | |
| 26 | -foreach($arrayStorage as $object) { |
|
| 26 | +foreach ($arrayStorage as $object) { |
|
| 27 | 27 | echo $object->say(); |
| 28 | 28 | } |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | final public function offsetUnset($offset) { |
| 14 | - $msg = 'Collection %s is immutable and values cannot be unset.'; |
|
| 15 | - $this->throwImmutable(sprintf($msg, static::class)); |
|
| 14 | + $msg = 'Collection %s is immutable and values cannot be unset.'; |
|
| 15 | + $this->throwImmutable(sprintf($msg, static::class)); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | protected function throwImmutable($msg, $errorCode = null) |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Shrikeh\Collection; |
| 4 | 4 | |
| 5 | -use Countable; |
|
| 6 | 5 | use SplFixedArray; |
| 7 | 6 | |
| 8 | 7 | trait FixedArrayStorageTrait |