Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
spotbot2k authored and github-actions[bot] committed Jun 10, 2022
1 parent 6d7b55f commit 3ee4768
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/Document/Areabrick/Exam.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
<?php

/**
* This file is part of the Pimcore Learning Management Framework
* Docs and updates: https://github.com/spotbot2k/pimcore-learning-management-framework
*
* @license GPLv3
*/

namespace LearningManagementFrameworkBundle\Document\Areabrick;

use Pimcore\Model\Document\Editable;
use Pimcore\Model\Document\Editable\Area\Info;
use LearningManagementFrameworkBundle\Helper\ExamHelper;
use LearningManagementFrameworkBundle\Form\ExamType;
use LearningManagementFrameworkBundle\Helper\ExamHelper;
use Pimcore\Extension\Document\Areabrick\AbstractTemplateAreabrick;
use Pimcore\Extension\Document\Areabrick\EditableDialogBoxConfiguration;
use Pimcore\Extension\Document\Areabrick\EditableDialogBoxInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
use Pimcore\Model\Document\Editable;
use Pimcore\Model\Document\Editable\Area\Info;
use Pimcore\Model\Translation;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Contracts\Translation\TranslatorInterface;

class Exam extends AbstractTemplateAreabrick implements EditableDialogBoxInterface
{
Expand Down Expand Up @@ -48,7 +55,7 @@ public function action(Info $info): ?Response
$result = $this->helper->process($examObject, $info->getRequest()->get(ExamType::PREFIX));

if ($result->isPassed) {
$info->setParam('result', $this->helper->validateCertificate($result->hash ));
$info->setParam('result', $this->helper->validateCertificate($result->hash));
}

$info->setParam('ratio', $result->ratio);
Expand Down

0 comments on commit 3ee4768

Please sign in to comment.