Your project should use Doctrine migrations
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/composer.using_migrations
Your project uses discouraged logical operators
- Read doc
- Reliability
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.boolean_statement
- if ($country instanceof Country) {
- return $country;
- }
- if (is_string($country)) {
- if (strlen($country) !== 2 and strlen($country) !== 3) {
- throw new \InvalidArgumentException('The country code must be the alpha2code or the alpha3code.');
- }
- if (strlen($country) === 3) {
- $countryCode = Countries::getAlpha2Code($country);
Text files should end with a valid new line character.
- Read doc
- Productivity
- Info
More information: https://insight.symfony.com/what-we-analyse/missing_e_o_l
- - uses: actions/checkout@v3
- - uses: actions/setup-python@v4
- with:
- python-version: 3.x
- - run: pip install mkdocs
- - run: mkdocs gh-deploy --force