Completed
Push — master ( 148144...1cb588 )
by Anne Douwe
03:14
created
src/Container.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.