mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -17,7 +17,7 @@ use Psr\Log\LoggerInterface;
|
||||
use Symfony\Component\Workflow\Registry;
|
||||
|
||||
/**
|
||||
* Change the step of an accompanying period
|
||||
* Change the step of an accompanying period.
|
||||
*
|
||||
* This should be invoked through scripts (not in the in context of an http request, or an
|
||||
* action from a user).
|
||||
@@ -32,14 +32,14 @@ class AccompanyingPeriodStepChanger
|
||||
private readonly Registry $workflowRegistry,
|
||||
) {}
|
||||
|
||||
public function __invoke(AccompanyingPeriod $period, string $transition, ?string $workflowName = null): void
|
||||
public function __invoke(AccompanyingPeriod $period, string $transition, string $workflowName = null): void
|
||||
{
|
||||
$workflow = $this->workflowRegistry->get($period, $workflowName);
|
||||
|
||||
if (!$workflow->can($period, $transition)) {
|
||||
$this->logger->info(self::LOG_PREFIX . 'not able to apply the transition on period', [
|
||||
$this->logger->info(self::LOG_PREFIX.'not able to apply the transition on period', [
|
||||
'period_id' => $period->getId(),
|
||||
'transition' => $transition
|
||||
'transition' => $transition,
|
||||
]);
|
||||
|
||||
return;
|
||||
@@ -49,9 +49,9 @@ class AccompanyingPeriodStepChanger
|
||||
|
||||
$this->entityManager->flush();
|
||||
|
||||
$this->logger->info(self::LOG_PREFIX . 'could apply a transition', [
|
||||
$this->logger->info(self::LOG_PREFIX.'could apply a transition', [
|
||||
'period_id' => $period->getId(),
|
||||
'transition' => $transition
|
||||
'transition' => $transition,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user