Unused method, property, variable or parameter

  • Minor
  • Deadcode

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

  1. ],
  2. ],
  3. ]
  4. );
  5. $app['flysystems']['file_path_resolver'] = function () use ($app, $s3Params) {

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

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Sadok
  6. return sprintf('https://s3.%s.amazonaws.com/%s/', $s3Params['region'], $s3Params['bucket_name']).'%s';
  7. };
  8. }
  9. }

Unused use statement should be avoided

  • Minor
  • Deadcode

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

  1. <?php
  2. namespace Core\Controller;
  3. use Core\Entity\Image;

    The class Core\Entity\Image is declared but never used. You should remove the use statement.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Sadok
  4. use Symfony\Component\HttpFoundation\Response;
  5. class DefaultController extends CoreController
  6. {
  7. /**