From 24c4370a1ef5f478ac9c7c20d5e421d29dd11e14 Mon Sep 17 00:00:00 2001 From: Saro0h Date: Fri, 24 Jan 2014 20:35:09 +0100 Subject: [PATCH 1/2] [Component-DI] Removed useless else in code example --- components/dependency_injection/tags.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/dependency_injection/tags.rst b/components/dependency_injection/tags.rst index 16ba0f4ff61..4dfc80aa4d1 100644 --- a/components/dependency_injection/tags.rst +++ b/components/dependency_injection/tags.rst @@ -199,9 +199,8 @@ To begin with, change the ``TransportChain`` class:: if (array_key_exists($alias, $this->transports)) { return $this->transports[$alias]; } - else { - return; - } + + return; } } From edca0c7b57276113b221dec168ea3ca3577feda3 Mon Sep 17 00:00:00 2001 From: Saro0h Date: Fri, 24 Jan 2014 21:52:33 +0100 Subject: [PATCH 2/2] [Component-DI] Removed useless return --- components/dependency_injection/tags.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/dependency_injection/tags.rst b/components/dependency_injection/tags.rst index 4dfc80aa4d1..2e96926b365 100644 --- a/components/dependency_injection/tags.rst +++ b/components/dependency_injection/tags.rst @@ -199,8 +199,6 @@ To begin with, change the ``TransportChain`` class:: if (array_key_exists($alias, $this->transports)) { return $this->transports[$alias]; } - - return; } }