Unused method, property, variable or parameter 2

  • Minor
  • Deadcode

More information: https://insight.sensiolabs.com/what-we-analyse/php.unused_local_variable_or_private_member

  1. /**
  2. * The doctrine orm entity manager service.
  3. *
  4. * @var EntityManagerInterface
  5. */
  6. private $em;

    This em attribute is declared but never used. You should remove it.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Steffen
  7. /**
  8. * The class metadata.
  9. *
  10. * @var ClassMetadata
  1. private $requestParams;
  2. /**
  3. * @var DatatableInterface
  4. */
  5. private $datatable;

    This datatable attribute is declared but never used. You should remove it.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Steffen
  6. /**
  7. * The EntityManager.
  8. *
  9. * @var EntityManagerInterface