Files should not be executable

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

Your project contains files with permissive permissions. In order to avoid opening a security breach, you should restrict execution rights on following files:

  • src/Item/ValidatorTrait.php

Time to fix: about 15 minutes
Open Issue Permalink
Collective
chmod a-x 'src/Item/ValidatorTrait.php'

Error silenced by the at sign (@) 4

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

  1. if (\strlen($value) < 1) {
  2. return false;
  3. }
  4. if (preg_match($pattern, $value, $result)) {
  5. $path = implode("/", array_map("rawurlencode", explode("/", @$result[7])));

    Adding "@" before $result[7] prevents warning and errors during this function execution from being displayed.
    If you need to do that, you should probably implement a better way to qualify and recover from errors, using Exceptions.

    Time to fix: about 4 hours
    Open Issue Permalink
    Last edited by Alexander Fitzke
  6. return $result[1].'://'.$result[2].@$result[6].$path.\htmlspecialchars(@$result[8]).@$result[9];
  7. }
  8. return false;
  9. }
  1. return false;
  2. }
  3. if (preg_match($pattern, $value, $result)) {
  4. $path = implode("/", array_map("rawurlencode", explode("/", @$result[7])));
  5. return $result[1].'://'.$result[2].@$result[6].$path.\htmlspecialchars(@$result[8]).@$result[9];

    Adding "@" before $result[9] prevents warning and errors during this function execution from being displayed.
    If you need to do that, you should probably implement a better way to qualify and recover from errors, using Exceptions.

    Time to fix: about 4 hours
    Open Issue Permalink
    Last edited by Alexander Fitzke
  6. }
  7. return false;
  8. }
  1. return false;
  2. }
  3. if (preg_match($pattern, $value, $result)) {
  4. $path = implode("/", array_map("rawurlencode", explode("/", @$result[7])));
  5. return $result[1].'://'.$result[2].@$result[6].$path.\htmlspecialchars(@$result[8]).@$result[9];

    Adding "@" before $result[6] prevents warning and errors during this function execution from being displayed.
    If you need to do that, you should probably implement a better way to qualify and recover from errors, using Exceptions.

    Time to fix: about 4 hours
    Open Issue Permalink
    Last edited by Alexander Fitzke
  6. }
  7. return false;
  8. }
  1. return false;
  2. }
  3. if (preg_match($pattern, $value, $result)) {
  4. $path = implode("/", array_map("rawurlencode", explode("/", @$result[7])));
  5. return $result[1].'://'.$result[2].@$result[6].$path.\htmlspecialchars(@$result[8]).@$result[9];

    Adding "@" before $result[8] prevents warning and errors during this function execution from being displayed.
    If you need to do that, you should probably implement a better way to qualify and recover from errors, using Exceptions.

    Time to fix: about 4 hours
    Open Issue Permalink
    Last edited by Alexander Fitzke
  6. }
  7. return false;
  8. }

User specific files should not appear in .gitignore 4

More information: https://insight.symfony.com/what-we-analyse/git.user_specific_ignored_file

in .gitignore, line 4
  1. #---------------------------------------------------
  2. # PHP Project files to ignore
  3. #---------------------------------------------------
  4. .idea/

    .idea/ is user-specific and should not appear in a project .gitignore. Consider adding it to the user global .gitignore instead.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by Nil Portugués
  5. build/
  6. vendor/
  7. bin/
  8. tmp/
  9. composer.lock
in .gitignore, line 20
  1. *.diff
  2. *.err
  3. *.orig
  4. *.log
  5. *.rej
  6. *.swo

    *.swo is user-specific and should not appear in a project .gitignore. Consider adding it to the user global .gitignore instead.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by SonrisaCMS
  7. *.swp
  8. *.vi
  9. *~
  10. *.sass-cache
in .gitignore, line 21
  1. *.err
  2. *.orig
  3. *.log
  4. *.rej
  5. *.swo
  6. *.swp

    *.swp is user-specific and should not appear in a project .gitignore. Consider adding it to the user global .gitignore instead.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by SonrisaCMS
  7. *.vi
  8. *~
  9. *.sass-cache
  10. #---------------------------------------------------
in .gitignore, line 30
  1. #---------------------------------------------------
  2. # OS or Editor folders
  3. #---------------------------------------------------
  4. ._*
  5. Thumbs.db

    Thumbs.db is user-specific and should not appear in a project .gitignore. Consider adding it to the user global .gitignore instead.

    Time to fix: about 15 minutes
    Open Issue Permalink
    Last edited by SonrisaCMS
  6. .cache
  7. .project
  8. .settings
  9. .tmproj
  10. *.sublime-project