Completed
Push — master ( 3888da...b12de6 )
by Anne Douwe
01:27
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
 		return array_key_exists($id, $this->entries);
40 38
 	}
41 39
 
@@ -47,8 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.