MWSimple / AdminCrudBundle

AdminCrud genera un controlador muy básico para una Entity dada. Este controlador extiende e implementa un controlador Super Genial.
http://www.tecspro.com.ar
20 stars 13 forks source link

[Insight] Unused method, property, variable or parameter - in Command/MWSimpleMenuCommand.php, line 37 #82

Closed gonzaloalonsod closed 8 years ago

gonzaloalonsod commented 8 years ago

in Command/MWSimpleMenuCommand.php, line 37

This url_min local variable is declared but never used. You should remove it.

    private function updateConfig(InputInterface $input, OutputInterface $output)
    {
        $name = $input->getArgument('name');
        $name_min = strtolower($name);
        $url = $input->getArgument('url');
        $url_min = strtolower($url);
        $configPath = $input->getArgument('config');

        $file = $this->getContainer()->getParameter('kernel.root_dir').'/../'.$configPath;
        // if the config.yml file doesn't exist, don't even try.
        if (!file_exists($file)) {

Posted from SensioLabsInsight