@@ -40,8 +40,9 @@ discard block |
||
| 40 | 40 | $data["answer_{$item->getId()}"] ? $countAllChecks++ : null; |
| 41 | 41 | if ($item->getCorrectly() === $data["answer_{$item->getId()}"]) { |
| 42 | 42 | $sumAllCorrect++; |
| 43 | - if ($item->getCorrectly()) |
|
| 44 | - $sumCorrectChecks++; |
|
| 43 | + if ($item->getCorrectly()) { |
|
| 44 | + $sumCorrectChecks++; |
|
| 45 | + } |
|
| 45 | 46 | } else { |
| 46 | 47 | if ($item->getCorrectly() === false) { |
| 47 | 48 | $sumFalseAnswers++; |
@@ -58,8 +59,9 @@ discard block |
||
| 58 | 59 | if ($question->getAllIncorrect() || $data['answer_all_incorrect']) { |
| 59 | 60 | if ($question->getAllIncorrect() === $data['answer_all_incorrect'] && $question->getAllIncorrect() === true && |
| 60 | 61 | $sumAllCorrect == $countOriginalAnswers |
| 61 | - ) |
|
| 62 | - return 1; |
|
| 62 | + ) { |
|
| 63 | + return 1; |
|
| 64 | + } |
|
| 63 | 65 | |
| 64 | 66 | return 0; |
| 65 | 67 | } |