Skip to content

Remove an unneeded state in the SourceCodeExtension #180

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

stof
Copy link
Member

@stof stof commented Sep 7, 2015

No description provided.

@xabbuh
Copy link
Member

xabbuh commented Sep 7, 2015

👍

return $twig->render('default/_source_code.html.twig', array(
'controller' => $this->getController(),
'template' => $this->getTemplate(),
'template' => $this->getTemplate($template),
Copy link
Member

Choose a reason for hiding this comment

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

I agree with this PR, but I believe this code is now hard to understand: getTemplate($template) We can change the variable name or the method name or both.

Copy link
Member Author

Choose a reason for hiding this comment

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

I renamed the method.

Renaming the variable would be a BC break btw, because Twig relies on it for its named arguments.

@javiereguiluz
Copy link
Member

Nice! Thanks @stof.

@stof stof deleted the patch-1 branch September 8, 2015 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants