Your project should contain a robots.txt file

More information: https://insight.symfony.com/what-we-analyse/web.missing_robots_txt

in public

The web root doesn't contain a robots.txt file. Search engines will ask for it, so not providing it will affect Search Engine ranking, and add load to the server needlessly.

Time to fix: about 1 hour
Read doc Open Issue Permalink
Collective
  • public
    • css
    • debugbar
    • images
    • js
    • index.php
    • robots.txt.dist

Your project should not contain duplicated code 2

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

  1. $identity = $this->authenticationService->getIdentity();
  2. $user = $this->userService->findByUuid($identity->getUuid());
  3. $form = new ProfileDetailsForm();
  4. $shouldRebind = $this->messenger->getData('shouldRebind') ?? true;

    The next 17 lines appear in src/User/src/Controller/AccountController.php:298, src/User/src/Controller/AccountController.php:363 and src/User/src/Controller/AccountController.php:417.

    Time to fix: about 4 hours
    Read doc Open Issue Permalink
    Last edited by marioradu
  5. if ($shouldRebind) {
  6. $this->forms->restoreState($form);
  7. }
  8. if (RequestMethodInterface::METHOD_POST === $this->request->getMethod()) {
  1. parent::__construct($name, $options);
  2. $this->init();
  3. $this->inputFilter = new ProfilePasswordInputFilter();
  4. $this->inputFilter->init();

    The next 42 lines appear both in src/User/src/Form/ProfilePasswordForm.php:26 and src/User/src/Form/ResetPasswordForm.php:26.

    Time to fix: about 4 hours
    Read doc Open Issue Permalink
    Last edited by costin
  5. }
  6. public function init(): void
  7. {
  8. parent::init();