Adjust code and config to pass php code sniffer

Relates: #8092
This commit is contained in:
Daniel Siepmann 2021-01-07 08:54:42 +01:00
parent 59272afffd
commit b7adb97cbc
4 changed files with 16 additions and 16 deletions

View file

@ -2,9 +2,7 @@
namespace Wrm\Events\Domain\Repository; namespace Wrm\Events\Domain\Repository;
use TYPO3\CMS\Extbase\Persistence\Repository; /*
/**
* This file is part of the TYPO3 CMS project. * This file is part of the TYPO3 CMS project.
* *
* It is free software; you can redistribute it and/or modify it under * It is free software; you can redistribute it and/or modify it under
@ -17,11 +15,12 @@ use TYPO3\CMS\Extbase\Persistence\Repository;
* The TYPO3 project - inspiring people to share! * The TYPO3 project - inspiring people to share!
*/ */
use Wrm\Events\Domain\Model\Dto\EventDemand;
use Wrm\Events\Service\CategoryService;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Persistence\QueryInterface; use TYPO3\CMS\Extbase\Persistence\QueryInterface;
use TYPO3\CMS\Extbase\Persistence\QueryResultInterface; use TYPO3\CMS\Extbase\Persistence\QueryResultInterface;
use TYPO3\CMS\Extbase\Persistence\Repository;
use Wrm\Events\Domain\Model\Dto\EventDemand;
use Wrm\Events\Service\CategoryService;
class EventRepository extends Repository class EventRepository extends Repository
{ {

View file

@ -2,9 +2,7 @@
namespace Wrm\Events\Domain\Repository; namespace Wrm\Events\Domain\Repository;
use TYPO3\CMS\Extbase\Persistence\Repository; /*
/**
* This file is part of the TYPO3 CMS project. * This file is part of the TYPO3 CMS project.
* *
* It is free software; you can redistribute it and/or modify it under * It is free software; you can redistribute it and/or modify it under
@ -17,7 +15,7 @@ use TYPO3\CMS\Extbase\Persistence\Repository;
* The TYPO3 project - inspiring people to share! * The TYPO3 project - inspiring people to share!
*/ */
use TYPO3\CMS\Extbase\Persistence\QueryResultInterface; use TYPO3\CMS\Extbase\Persistence\Repository;
class OrganizerRepository extends Repository class OrganizerRepository extends Repository
{ {

View file

@ -2,9 +2,7 @@
namespace Wrm\Events\Domain\Repository; namespace Wrm\Events\Domain\Repository;
use TYPO3\CMS\Extbase\Persistence\Repository; /*
/**
* This file is part of the TYPO3 CMS project. * This file is part of the TYPO3 CMS project.
* *
* It is free software; you can redistribute it and/or modify it under * It is free software; you can redistribute it and/or modify it under
@ -17,7 +15,7 @@ use TYPO3\CMS\Extbase\Persistence\Repository;
* The TYPO3 project - inspiring people to share! * The TYPO3 project - inspiring people to share!
*/ */
use TYPO3\CMS\Extbase\Persistence\QueryResultInterface; use TYPO3\CMS\Extbase\Persistence\Repository;
class RegionRepository extends Repository class RegionRepository extends Repository
{ {

View file

@ -14,8 +14,13 @@
<arg name="extensions" value="php" /> <arg name="extensions" value="php" />
<!-- Base rules --> <!-- Base rules -->
<rule ref="PSR12" /> <rule ref="PSR12">
<rule ref="Generic.Files.LineLength.TooLong"> <!-- Ignore some rules for now. -->
<exclude-pattern>/Tests/*</exclude-pattern> <!-- Otherwise we would need some more adjustments to the code. -->
<!-- We can clean these rules up in the future -->
<exclude name="Generic.Files.LineLength.TooLong" />
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" />
</rule> </rule>
</ruleset> </ruleset>