Third party component licenses should be compatible with project license

  • Major
  • Architecture

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

Your project is licensed under the {{ projectLicense }} license. However, the component twig/twig uses a non compatible {{ componentLicense }} license. You should consider either changing your project license or removing the incriminated component.

Time to fix: about 2 days
Open Issue Permalink
Collective

PHP configuration should not be changed dynamically

  • Major
  • Bugrisk

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

in web/index.php, line 3
  1. <?php
  2. ini_set('display_errors', 0);

    Changing PHP configuration dynamically through ini_set() may create hard to debug errors.

    Time to fix: about 2 hours
    Open Issue Permalink
    Collective
  3. require_once __DIR__.'/../vendor/autoload.php';
  4. $app = require __DIR__.'/../src/app.php';
  5. require __DIR__.'/../config/prod.php';

Unused use statement should be avoided 5

  • Minor
  • Deadcode

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

in src/console.php, line 6
  1. <?php
  2. use Symfony\Component\Console\Application;
  3. use Symfony\Component\Console\Input\InputInterface;
  4. use Symfony\Component\Console\Output\OutputInterface;
  5. use Symfony\Component\Console\Input\InputArgument;

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

    Time to fix: about 15 minutes
    Open Issue Permalink
    Collective
  6. use Symfony\Component\Console\Input\InputOption;
  7. $console = new Application('My Silex Application', 'n/a');
  8. $console->getDefinition()->addOption(new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'The Environment name.', 'dev'));
  9. $console
in src/controllers.php, line 3
  1. <?php
  2. use Symfony\Component\HttpFoundation\Request;

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

    Time to fix: about 15 minutes
    Open Issue Permalink
    Collective
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Symfony\Component\HttpFoundation\JsonResponse;
  5. use Symfony\Component\HttpFoundation\RedirectResponse;
  6. use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
in src/controllers.php, line 5
  1. <?php
  2. use Symfony\Component\HttpFoundation\Request;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Symfony\Component\HttpFoundation\JsonResponse;

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

    Time to fix: about 15 minutes
    Open Issue Permalink
    Collective
  5. use Symfony\Component\HttpFoundation\RedirectResponse;
  6. use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
  7. $app->get('/', function () use ($app) {
  8. return $app['twig']->render('index.html', array());
in src/controllers.php, line 6
  1. <?php
  2. use Symfony\Component\HttpFoundation\Request;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Symfony\Component\HttpFoundation\JsonResponse;
  5. use Symfony\Component\HttpFoundation\RedirectResponse;

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

    Time to fix: about 15 minutes
    Open Issue Permalink
    Collective
  6. use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
  7. $app->get('/', function () use ($app) {
  8. return $app['twig']->render('index.html', array());
  9. })
in src/controllers.php, line 7
  1. use Symfony\Component\HttpFoundation\Request;
  2. use Symfony\Component\HttpFoundation\Response;
  3. use Symfony\Component\HttpFoundation\JsonResponse;
  4. use Symfony\Component\HttpFoundation\RedirectResponse;
  5. use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

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

    Time to fix: about 15 minutes
    Open Issue Permalink
    Collective
  6. $app->get('/', function () use ($app) {
  7. return $app['twig']->render('index.html', array());
  8. })
  9. ->bind('homepage')