break answer finding loop
This commit is contained in:
parent
3bd543654d
commit
a9a9456e15
@ -4,6 +4,7 @@ namespace App\Controller;
|
|||||||
use App\Form\SafetyQuizType;
|
use App\Form\SafetyQuizType;
|
||||||
use Egulias\EmailValidator\Warning\Warning;
|
use Egulias\EmailValidator\Warning\Warning;
|
||||||
use Error;
|
use Error;
|
||||||
|
use phpDocumentor\Reflection\Types\Boolean;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
@ -151,8 +152,10 @@ class SafetyController extends AbstractController
|
|||||||
if($choice['Value'])
|
if($choice['Value'])
|
||||||
{
|
{
|
||||||
$answer = $choice;
|
$answer = $choice;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$questionData += ['answer'=>$answer, 'submittedAnswer'=>$submittedData[$key]];
|
$questionData += ['answer'=>$answer, 'submittedAnswer'=>$submittedData[$key]];
|
||||||
$submission += $questionData;
|
$submission += $questionData;
|
||||||
$quiz[$key] += ['submittedAnswer'=>$submittedData[$key], 'answer'=>$answer];
|
$quiz[$key] += ['submittedAnswer'=>$submittedData[$key], 'answer'=>$answer];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user