Skip to content
Snippets Groups Projects
Commit 49a5e38c authored by sebastien dupuy's avatar sebastien dupuy
Browse files

phpstan + php-cs-fixer

parent d80e987f
No related branches found
No related tags found
No related merge requests found
Pipeline #40878 failed
......@@ -25,6 +25,8 @@
class EvaluationsController extends Controller
{
private GraphDataRepository $repository;
public function __construct(GraphDataRepository $repository)
{
$this->repository = $repository;
......@@ -194,7 +196,7 @@ public function save(EvaluationRepository $repository, EvaluationRequest $reques
$evaluation->save();
if ((Evaluation::STEP_ACTIONS === intval($evaluation->current_step))){
if (Evaluation::STEP_ACTIONS === intval($evaluation->current_step)) {
// Ajout du niveau supérieur pour les mesures preconisées
$preconizedMeasure = array_slice($this->repository->getBestMeasuresForEvaluation($evaluation), 0, 4);
foreach ($evaluation->measureLevels as $measureLevel) {
......@@ -207,7 +209,6 @@ public function save(EvaluationRepository $repository, EvaluationRequest $reques
}
}
// si mofification d'un step, reinitialisation des steps suivants
if (isset($data['draft']) && $data['draft']) {
if (1 === $evaluation->current_step) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment