@@ -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 | return array_key_exists($id, $this->entries); |
40 | 38 | } |
41 | 39 | |
@@ -47,8 +45,7 @@ discard block |
||
47 | 45 | * |
48 | 46 | * @return Container |
49 | 47 | */ |
50 | - public function add($id, $entry) |
|
51 | - { |
|
48 | + public function add($id, $entry) { |
|
52 | 49 | if ($this->has($id)) { |
53 | 50 | throw new AlreadyInContainerException(sprintf('Container already has entry with id "%s"', $id)); |
54 | 51 | } |
@@ -65,8 +62,7 @@ discard block |
||
65 | 62 | * |
66 | 63 | * @return Container |
67 | 64 | */ |
68 | - public function delete($id) |
|
69 | - { |
|
65 | + public function delete($id) { |
|
70 | 66 | if (!$this->has($id)) { |
71 | 67 | throw new NotFoundException(sprintf('"%s" is not in the container', $id)); |
72 | 68 | } |