Unused use statement should be avoided 5

More information: https://insight.symfony.com/what-we-analyse/php.unused_use_statement

  1. * @copyright Copyright (c) 2011, Peter Gribanov
  2. * @license http://opensource.org/licenses/GPL-3.0 GPL v3
  3. */
  4. namespace AnimeDb\Bundle\AppBundle\Command;
  5. use Doctrine\ORM\EntityManager;

    The class Doctrine\ORM\EntityManager is declared but never used. You should remove the use statement.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Peter Gribanov
  6. use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
  7. use Symfony\Component\Console\Input\InputInterface;
  8. use Symfony\Component\Console\Output\OutputInterface;
  9. use AnimeDb\Bundle\AppBundle\Entity\Task;
  10. use AnimeDb\Bundle\AppBundle\Repository\Task as TaskRepository;
  1. use Doctrine\ORM\EntityManager;
  2. use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
  3. use Symfony\Component\Console\Input\InputInterface;
  4. use Symfony\Component\Console\Output\OutputInterface;
  5. use AnimeDb\Bundle\AppBundle\Entity\Task;
  6. use AnimeDb\Bundle\AppBundle\Repository\Task as TaskRepository;

    The class AnimeDb\Bundle\AppBundle\Repository\Task is declared but never used. You should remove the use statement.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Peter Gribanov
  7. use Symfony\Component\Process\PhpExecutableFinder;
  8. class TaskSchedulerCommand extends ContainerAwareCommand
  9. {
  10. protected function configure()
  1. * @copyright Copyright (c) 2011, Peter Gribanov
  2. * @license http://opensource.org/licenses/GPL-3.0 GPL v3
  3. */
  4. namespace AnimeDb\Bundle\AppBundle\Controller;
  5. use Symfony\Component\Form\Form;

    The class Symfony\Component\Form\Form is declared but never used. You should remove the use statement.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Peter Gribanov
  6. use Symfony\Component\HttpFoundation\Request;
  7. use Symfony\Component\HttpFoundation\Response;
  8. use Symfony\Component\HttpFoundation\JsonResponse;
  9. use AnimeDb\Bundle\AppBundle\Entity\Field\Image as ImageField;
  10. use AnimeDb\Bundle\AppBundle\Form\Type\Field\Image\Upload as UploadImage;
  1. * @license http://opensource.org/licenses/GPL-3.0 GPL v3
  2. */
  3. namespace AnimeDb\Bundle\AppBundle\Controller;
  4. use AnimeDb\Bundle\AppBundle\Entity\Notice;
  5. use AnimeDb\Bundle\AppBundle\Repository\Notice as NoticeRepository;

    The class AnimeDb\Bundle\AppBundle\Repository\Notice is declared but never used. You should remove the use statement.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Peter Gribanov
  6. use Symfony\Component\HttpFoundation\JsonResponse;
  7. use Symfony\Component\HttpFoundation\Request;
  8. class NoticeController extends BaseController
  9. {
  1. */
  2. namespace AnimeDb\Bundle\AppBundle\Event\Listener;
  3. use AnimeDb\Bundle\AppBundle\Command\ProposeUpdateCommand;
  4. use AnimeDb\Bundle\AnimeDbBundle\Manipulator\Composer;
  5. use AnimeDb\Bundle\AppBundle\Entity\Task;

    The class AnimeDb\Bundle\AppBundle\Entity\Task is declared but never used. You should remove the use statement.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Peter Gribanov
  6. use AnimeDb\Bundle\AppBundle\Service\CacheClearer;
  7. use Doctrine\ORM\EntityManagerInterface;
  8. class Project
  9. {