Completed
Push — master ( d8cd58...544e47 )
by Alex
19s queued 16s
created
src/http/controllers/configuration/CorporationQuestionController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             'question_id' => [
35 35
                 'required',
36 36
                 'exists:seat_hr_questions,id',
37
-                Rule::unique('seat_hr_corporation_questions')->where(function ($query) use ($data) {
37
+                Rule::unique('seat_hr_corporation_questions')->where(function($query) use ($data) {
38 38
                     return $query->where('corporation_id', $data['corporation_id']);
39 39
                 }),
40 40
             ],
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             return back()->withErrors('Invalid question ID');
58 58
         }
59 59
 
60
-        $question->active = !(bool)$question->active;
60
+        $question->active = !(bool) $question->active;
61 61
         $question->save();
62 62
 
63 63
         return back()->with('success', 'Question updated successfully.');
Please login to merge, or discard this patch.