apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class AdministrativeLocationAggregatorTest extends AbstractAggregatorTest
@@ -52,7 +53,7 @@ final class AdministrativeLocationAggregatorTest extends AbstractAggregatorTest
return [
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ClosingMotiveAggregatorTest extends AbstractAggregatorTest
@@ -52,7 +53,7 @@ final class ClosingMotiveAggregatorTest extends AbstractAggregatorTest
return [
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ConfidentialAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class DurationAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EmergencyAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EvaluationAggregatorTest extends AbstractAggregatorTest

View File

@@ -16,11 +16,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\GeographicalUnitStatAggregator;
use DateTimeImmutable;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GeographicalUnitStatAggregatorTest extends AbstractAggregatorTest
@@ -46,7 +46,7 @@ final class GeographicalUnitStatAggregatorTest extends AbstractAggregatorTest
$levels = $repository->findAll();
return [
['date_calc' => new RollingDate(RollingDate::T_TODAY), 'level' => $levels]
['date_calc' => new RollingDate(RollingDate::T_TODAY), 'level' => $levels],
];
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class IntensityAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class OriginAggregatorTest extends AbstractAggregatorTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ReferrerAggregator;
use DateTimeImmutable;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ReferrerAggregatorTest extends AbstractAggregatorTest
@@ -41,7 +41,7 @@ final class ReferrerAggregatorTest extends AbstractAggregatorTest
public function getFormData(): array
{
return [
['date_calc' => new RollingDate(RollingDate::T_TODAY)]
['date_calc' => new RollingDate(RollingDate::T_TODAY)],
];
}

View File

@@ -19,13 +19,13 @@ use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ReferrerScopeAggregator;
use DateTimeImmutable;
use Doctrine\ORM\EntityManagerInterface;
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;
/**
* @internal
*
* @coversNothing
*/
final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
@@ -43,7 +43,7 @@ final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
);
$dateConverter = $this->prophesize(RollingDateConverterInterface::class);
$dateConverter->convert(Argument::type(RollingDate::class))->willReturn(new DateTimeImmutable());
$dateConverter->convert(Argument::type(RollingDate::class))->willReturn(new \DateTimeImmutable());
return new ReferrerScopeAggregator(
$scopeRepository->reveal(),
@@ -56,7 +56,7 @@ final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
{
return [
[
'date_calc' => new RollingDate(RollingDate::T_TODAY)
'date_calc' => new RollingDate(RollingDate::T_TODAY),
],
];
}
@@ -70,7 +70,7 @@ final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
return [
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class RequestorAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ScopeAggregatorTest extends AbstractAggregatorTest
@@ -56,7 +57,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
->join('acp.scopes', 'acpscope'),
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class SocialActionAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class SocialIssueAggregatorTest extends AbstractAggregatorTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\StepAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class StepAggregatorTest extends AbstractAggregatorTest
@@ -42,7 +42,7 @@ final class StepAggregatorTest extends AbstractAggregatorTest
{
return [
[
'on_date' => new RollingDate(RollingDate::T_TODAY)
'on_date' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class UserJobAggregatorTest extends AbstractAggregatorTest
@@ -59,7 +60,7 @@ final class UserJobAggregatorTest extends AbstractAggregatorTest
->join('acp.job', 'acpjob'),
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->from(AccompanyingPeriod::class, 'acp'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class EvaluationTypeAggregatorTest extends AbstractAggregatorTest

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\HouseholdAggregators\ChildrenNumberAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ChildrenNumberAggregatorTest extends AbstractAggregatorTest
@@ -42,7 +42,7 @@ final class ChildrenNumberAggregatorTest extends AbstractAggregatorTest
{
return [
[
'on_date' => new RollingDate(RollingDate::T_TODAY)
'on_date' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\HouseholdAggregators\CompositionAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class CompositionAggregatorTest extends AbstractAggregatorTest
@@ -42,7 +42,7 @@ final class CompositionAggregatorTest extends AbstractAggregatorTest
{
return [
[
'on_date' => new RollingDate(RollingDate::T_TODAY)
'on_date' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -15,11 +15,11 @@ use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Aggregator\PersonAggregators\AgeAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class AgeAggregatorTest extends AbstractAggregatorTest
@@ -42,7 +42,7 @@ final class AgeAggregatorTest extends AbstractAggregatorTest
{
return [
[
'date_age_calculation' => new RollingDate(RollingDate::T_TODAY)
'date_age_calculation' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class CountryOfBirthAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GenderAggregatorTest extends AbstractAggregatorTest

View File

@@ -16,12 +16,12 @@ use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\Household\HouseholdMember;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Export\Aggregator\PersonAggregators\HouseholdPositionAggregator;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\Expr;
/**
* @internal
*
* @coversNothing
*/
final class HouseholdPositionAggregatorTest extends AbstractAggregatorTest
@@ -44,7 +44,7 @@ final class HouseholdPositionAggregatorTest extends AbstractAggregatorTest
{
return [
[
'date_position' => new RollingDate(RollingDate::T_TODAY)
'date_position' => new RollingDate(RollingDate::T_TODAY),
],
];
}
@@ -62,7 +62,7 @@ final class HouseholdPositionAggregatorTest extends AbstractAggregatorTest
->join(HouseholdMember::class, 'householdmember', Expr\Join::WITH, 'householdmember.person = person'),
$em->createQueryBuilder()
->select('count(person.id)')
->from(Person::class, 'person')
->from(Person::class, 'person'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class MaritalStatusAggregatorTest extends AbstractAggregatorTest
@@ -56,7 +57,7 @@ final class MaritalStatusAggregatorTest extends AbstractAggregatorTest
->join('person.maritalStatus', 'personmarital'),
$em->createQueryBuilder()
->select('count(person.id)')
->from(Person::class, 'person')
->from(Person::class, 'person'),
];
}
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class NationalityAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ActionTypeAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GoalAggregatorTest extends AbstractAggregatorTest

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class GoalResultAggregatorTest extends AbstractAggregatorTest
@@ -60,7 +61,7 @@ final class GoalResultAggregatorTest extends AbstractAggregatorTest
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->join('acp.works', 'acpw')
->join('acpw.goals', 'goal')
->join('acpw.goals', 'goal'),
];
}
}

View File

@@ -11,7 +11,6 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Aggregator\SocialWorkAggregators;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\JobAggregator;
@@ -19,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class JobAggregatorTest extends AbstractAggregatorTest
@@ -54,7 +54,7 @@ final class JobAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->join('acp.works', 'acpw')
->join('acp.works', 'acpw'),
];
}
}

View File

@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ReferrerAggregatorTest extends AbstractAggregatorTest
@@ -42,8 +43,8 @@ final class ReferrerAggregatorTest extends AbstractAggregatorTest
return [
[], // there are previous saved export which does not contains any data
[
'referrer_at' => new RollingDate(RollingDate::T_TODAY)
]
'referrer_at' => new RollingDate(RollingDate::T_TODAY),
],
];
}

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ResultAggregatorTest extends AbstractAggregatorTest

View File

@@ -11,7 +11,6 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Tests\Export\Aggregator\SocialWorkAggregators;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\ScopeAggregator;
@@ -19,6 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
*
* @coversNothing
*/
final class ScopeAggregatorTest extends AbstractAggregatorTest
@@ -54,7 +54,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(acp.id)')
->from(AccompanyingPeriod::class, 'acp')
->join('acp.works', 'acpw')
->join('acp.works', 'acpw'),
];
}
}