Unused method, property, variable or parameter

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

  1. protected $myResultCursor = null;
  2. /**
  3. * @var MongoServiceInterface
  4. */
  5. private $factory;

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

    Time to fix: about 15 minutes
    Permalink
    Last edited by Peter Petermann
  6. /**
  7. * @var string
  8. */
  9. private $collection;