Skip to content
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

[Insight] Unused method, property, variable or parameter - in Bundle/CoreBundle/Helper/ViewHelper.php, line 284 #18

Closed
lenybernard opened this issue Dec 5, 2014 · 0 comments

Comments

@lenybernard
Copy link
Contributor

in Bundle/CoreBundle/Helper/ViewHelper.php, line 284

This viewName argument is declared but never used. You should remove it.

    * @param $locale the target locale to translate view
    * 
    * this methods allow you to add a translation to any view
    * recursively to its subview
    */
    public function addTranslation(View $view, $viewName = null, $locale) 
    {
        $template = null;
        if($view->getTemplate()) {
            $template = $view->getTemplate();
            if($template->getI18n()->getTranslation($locale)) {

Posted from SensioLabsInsight

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

No branches or pull requests

2 participants