Fix Coding Guideline check on CI

The current setup actually fixed and didn't check or fail.
That's changed and code is fixed.
This commit is contained in:
Daniel Siepmann 2021-12-16 09:11:45 +01:00
parent 0e5cd38176
commit de82e395e6
2 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ validate:cgl:
before_script: before_script:
script: script:
- composer install --prefer-dist --no-progress - composer install --prefer-dist --no-progress
- ./vendor/bin/ecs check --no-progress-bar --clear-cache --fix - ./vendor/bin/ecs check --no-progress-bar --clear-cache
validate:phpstan:8.0: validate:phpstan:8.0:
image: php:8.0-alpine image: php:8.0-alpine

View file

@ -3,11 +3,11 @@
namespace Wrm\Events\Service; namespace Wrm\Events\Service;
use TYPO3\CMS\Core\Core\Environment; use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\DataHandling\DataHandler; use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Core\DataHandling\SlugHelper; use TYPO3\CMS\Core\DataHandling\SlugHelper;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Log\Logger; use TYPO3\CMS\Core\Log\Logger;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException; use TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException;
use TYPO3\CMS\Core\Resource\File; use TYPO3\CMS\Core\Resource\File;
use TYPO3\CMS\Core\Resource\Index\MetaDataRepository; use TYPO3\CMS\Core\Resource\Index\MetaDataRepository;