Completed
Branch develop (b9c805)
by Pavel
06:33
created
src/AppBundle/Services/CheckAnwers.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.