mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-31 20:13:49 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -24,6 +24,7 @@ use Symfony\Component\Security\Core\Security;
|
||||
use Symfony\Component\Workflow\Registry;
|
||||
use Symfony\Component\Workflow\Workflow;
|
||||
use UnexpectedValueException;
|
||||
|
||||
use function array_combine;
|
||||
use function array_fill;
|
||||
use function array_map;
|
||||
@@ -96,7 +97,9 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
|
||||
->findBy(['id' => $ids]);
|
||||
|
||||
return array_combine(
|
||||
array_map(static function ($e) { return $e->getId(); }, $events),
|
||||
array_map(static function ($e) {
|
||||
return $e->getId();
|
||||
}, $events),
|
||||
$events
|
||||
);
|
||||
}
|
||||
@@ -189,10 +192,12 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
|
||||
$clauses = [];
|
||||
|
||||
// loop over centers
|
||||
foreach ($this->authorizationHelper->getReachableCenters(
|
||||
$this->security->getUser(),
|
||||
new Role(ActivityVoter::SEE_DETAILS)
|
||||
) as $center) {
|
||||
foreach (
|
||||
$this->authorizationHelper->getReachableCenters(
|
||||
$this->security->getUser(),
|
||||
new Role(ActivityVoter::SEE_DETAILS)
|
||||
) as $center
|
||||
) {
|
||||
if (false === in_array($center, $centers, true)) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user