From 0f09eb021d87558db7b9ec06ee7623248a37aa55 Mon Sep 17 00:00:00 2001 From: Saro0h Date: Fri, 24 Jan 2014 20:35:09 +0100 Subject: [PATCH 1/2] 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 052b0b73b161b485b22faa4fd045f91766656792 Mon Sep 17 00:00:00 2001 From: Saro0h Date: Fri, 24 Jan 2014 21:52:33 +0100 Subject: [PATCH 2/2] 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; } }