Skip to content

[Component-DI] Removed useless else statement in code example #3511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

saro0h
Copy link
Contributor

@saro0h saro0h commented Jan 24, 2014

No description provided.

@@ -199,9 +199,8 @@ To begin with, change the ``TransportChain`` class::
if (array_key_exists($alias, $this->transports)) {
return $this->transports[$alias];
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and that was bad CS as well

👍

@wouterj
Copy link
Member

wouterj commented Jan 24, 2014

Actually, the complete return is useless. Let's remove it :)

@weaverryan
Copy link
Member

Much better :). Thanks Sarah - cheers!

weaverryan added a commit that referenced this pull request Feb 4, 2014
…mple (saro0h)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #3511).

Discussion
----------

[Component-DI] Removed useless else statement in code example

Commits
-------

edca0c7 [Component-DI] Removed useless return
24c4370 [Component-DI] Removed useless else in code example
@weaverryan weaverryan closed this Feb 4, 2014
@saro0h saro0h deleted the container-dependency-injection branch July 11, 2014 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants