@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * {@inheritdoc} |
| 24 | 24 | */ |
| 25 | - public function get($id) |
|
| 26 | - { |
|
| 25 | + public function get($id) { |
|
| 27 | 26 | if (!$this->has($id)) { |
| 28 | 27 | throw new NotFoundException(sprintf('"%s" is not in the container', $id)); |
| 29 | 28 | } |
@@ -34,8 +33,7 @@ discard block |
||
| 34 | 33 | /** |
| 35 | 34 | * {@inheritdoc} |
| 36 | 35 | */ |
| 37 | - public function has($id) |
|
| 38 | - { |
|
| 36 | + public function has($id) { |
|
| 39 | 37 | if (array_key_exists($id, $this->entries)) { |
| 40 | 38 | return true; |
| 41 | 39 | } |
@@ -51,8 +49,7 @@ discard block |
||
| 51 | 49 | * |
| 52 | 50 | * @return Container |
| 53 | 51 | */ |
| 54 | - public function add($id, $entry) |
|
| 55 | - { |
|
| 52 | + public function add($id, $entry) { |
|
| 56 | 53 | if ($this->has($id)) { |
| 57 | 54 | throw new AlreadyInContainerException(sprintf('Container already has entry with id "%s"', $id)); |
| 58 | 55 | } |
@@ -69,8 +66,7 @@ discard block |
||
| 69 | 66 | * |
| 70 | 67 | * @return Container |
| 71 | 68 | */ |
| 72 | - public function delete($id) |
|
| 73 | - { |
|
| 69 | + public function delete($id) { |
|
| 74 | 70 | if (!$this->has($id)) { |
| 75 | 71 | throw new NotFoundException(sprintf('"%s" is not in the container', $id)); |
| 76 | 72 | } |