@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace PTS\Tools; |
4 | 4 | |
5 | 5 | interface CollectionInterface |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace PTS\Tools; |
4 | 4 | |
5 | 5 | class DuplicateKeyException extends \Exception {} |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace PTS\Tools; |
4 | 4 | |
5 | 5 | class Collection implements CollectionInterface |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public function addItem(string $name, $item, int $priority = 50) |
20 | 20 | { |
21 | 21 | if ($this->has($name)) { |
22 | - throw new DuplicateKeyException('Item with name ' . $name . ' already defined'); |
|
22 | + throw new DuplicateKeyException('Item with name '.$name.' already defined'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | $this->items[$priority][$name] = $item; |