mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
cs-fixer
This commit is contained in:
parent
baeccf0970
commit
2d4d1eda50
@ -270,7 +270,7 @@ class User implements UserInterface, \Stringable
|
|||||||
foreach ($this->scopeHistories as $scopeHistory) {
|
foreach ($this->scopeHistories as $scopeHistory) {
|
||||||
if ($at >= $scopeHistory->getStartDate() && (
|
if ($at >= $scopeHistory->getStartDate() && (
|
||||||
null === $scopeHistory->getEndDate() || $at < $scopeHistory->getEndDate()
|
null === $scopeHistory->getEndDate() || $at < $scopeHistory->getEndDate()
|
||||||
)) {
|
)) {
|
||||||
return $scopeHistory->getScope();
|
return $scopeHistory->getScope();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ class UserTest extends TestCase
|
|||||||
self::assertNotNull(
|
self::assertNotNull(
|
||||||
$user
|
$user
|
||||||
->getMainScopeHistories()
|
->getMainScopeHistories()
|
||||||
->filter(fn (User\UserScopeHistory $userScopeHistory) => $userScopeHistory->getScope() === $scopeA )
|
->filter(fn (User\UserScopeHistory $userScopeHistory) => $userScopeHistory->getScope() === $scopeA)
|
||||||
->first()->getEndDate()
|
->first()->getEndDate()
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ class UserTest extends TestCase
|
|||||||
self::assertNotNull(
|
self::assertNotNull(
|
||||||
$user
|
$user
|
||||||
->getUserJobHistories()
|
->getUserJobHistories()
|
||||||
->filter(fn(User\UserJobHistory $userJobHistory) => $userJobHistory->getJob() === $jobA )
|
->filter(fn (User\UserJobHistory $userJobHistory) => $userJobHistory->getJob() === $jobA)
|
||||||
->first()->getEndDate()
|
->first()->getEndDate()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user