Passed
Push — develop ( f3eb57...728d57 )
by Septianata
13:03
created
app/Support/helpers.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use Illuminate\Support\Facades\Storage;
7 7
 use Illuminate\Support\Str;
8 8
 
9
-if (! function_exists('terbilang')) {
9
+if (!function_exists('terbilang')) {
10 10
     /**
11 11
      * Return the given value into readable number.
12 12
      *
@@ -15,49 +15,49 @@  discard block
 block discarded – undo
15 15
      */
16 16
     function terbilang($value): string
17 17
     {
18
-        $result = value(function () use ($value) {
19
-            $angka = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas'];
18
+        $result = value(function() use ($value) {
19
+            $angka = [ '', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas' ];
20 20
 
21 21
             $number = abs($value);
22 22
 
23 23
             switch (true) {
24 24
                 case $number < 12:
25
-                    return ' ' . $angka[$number];
25
+                    return ' '.$angka[ $number ];
26 26
 
27 27
                 case $number < 20:
28
-                    return terbilang($number - 10) . ' belas';
28
+                    return terbilang($number - 10).' belas';
29 29
 
30 30
                 case $number < 100:
31
-                    return terbilang($number / 10) . ' puluh ' . terbilang($number % 10);
31
+                    return terbilang($number / 10).' puluh '.terbilang($number % 10);
32 32
 
33 33
                 case $number < 200:
34
-                    return 'seratus ' . terbilang($number - 100);
34
+                    return 'seratus '.terbilang($number - 100);
35 35
 
36 36
                 case $number < 1000:
37
-                    return terbilang($number / 100) . ' ratus ' . terbilang($number % 100);
37
+                    return terbilang($number / 100).' ratus '.terbilang($number % 100);
38 38
 
39 39
                 case $number < 2000:
40
-                    return 'seribu ' . terbilang($number - 1000);
40
+                    return 'seribu '.terbilang($number - 1000);
41 41
 
42 42
                 case $number < 1000000:
43
-                    return terbilang($number / 1000) . ' ribu ' . terbilang($number % 1000);
43
+                    return terbilang($number / 1000).' ribu '.terbilang($number % 1000);
44 44
 
45 45
                 case $number < 1000000000:
46
-                    return terbilang($number / 1000000) . ' juta ' . terbilang($number % 1000000);
46
+                    return terbilang($number / 1000000).' juta '.terbilang($number % 1000000);
47 47
 
48 48
                 case $number < 1000000000000:
49
-                    return terbilang($number / 1000000000) . ' milyar ' . terbilang($number % 1000000000);
49
+                    return terbilang($number / 1000000000).' milyar '.terbilang($number % 1000000000);
50 50
 
51 51
                 case $number < 1000000000000000:
52
-                    return terbilang($number / 1000000000000) . ' trilyun ' . terbilang($number % 1000000000000);
52
+                    return terbilang($number / 1000000000000).' trilyun '.terbilang($number % 1000000000000);
53 53
             }
54 54
         });
55 55
 
56
-        return trim(($value < 0 ? 'minus ' : '') . $result);
56
+        return trim(($value < 0 ? 'minus ' : '').$result);
57 57
     }
58 58
 }
59 59
 
60
-if (! function_exists('greeting')) {
60
+if (!function_exists('greeting')) {
61 61
     /**
62 62
      * Return specific greeting based on the current hour.
63 63
      *
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     }
85 85
 }
86 86
 
87
-if (! function_exists('telegram_url')) {
87
+if (!function_exists('telegram_url')) {
88 88
     /**
89 89
      * Return base telegram bot API url.
90 90
      *
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     }
98 98
 }
99 99
 
100
-if (! function_exists('download_telegram_photo')) {
100
+if (!function_exists('download_telegram_photo')) {
101 101
     /**
102 102
      * Download telegram photo based on the given photo list.
103 103
      *
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
      */
111 111
     function download_telegram_photo(array $photos, string $path)
112 112
     {
113
-        $photos = Arr::sort($photos, fn ($photo) => $photo['file_size']);
113
+        $photos = Arr::sort($photos, fn($photo) => $photo[ 'file_size' ]);
114 114
 
115
-        $photoId = Arr::last($photos)['file_id'];
115
+        $photoId = Arr::last($photos)[ 'file_id' ];
116 116
 
117 117
         throw_unless($photoId, InvalidArgumentException::class, sprintf(
118 118
             'Telegram file_id is not found', $photoId
@@ -131,15 +131,15 @@  discard block
 block discarded – undo
131 131
             env('TELEGRAM_TOKEN'), $photoFilePath
132 132
         ));
133 133
 
134
-        $filename = Str::random() . '.' . pathinfo($photoFilePath, PATHINFO_EXTENSION);
134
+        $filename = Str::random().'.'.pathinfo($photoFilePath, PATHINFO_EXTENSION);
135 135
 
136
-        Storage::put($path . '/' . $filename, $photo);
136
+        Storage::put($path.'/'.$filename, $photo);
137 137
 
138 138
         return $filename;
139 139
     }
140 140
 }
141 141
 
142
-if (! function_exists('google_map_url')) {
142
+if (!function_exists('google_map_url')) {
143 143
     /**
144 144
      * Return google map url based on the given latitude and longitude.
145 145
      *
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
 }
160 160
 
161
-if (! function_exists('format_rupiah')) {
161
+if (!function_exists('format_rupiah')) {
162 162
     /**
163 163
      * Return number in rupiah format.
164 164
      *
@@ -168,6 +168,6 @@  discard block
 block discarded – undo
168 168
      */
169 169
     function format_rupiah(float $value, string $prefix = 'Rp'): string
170 170
     {
171
-        return $prefix . number_format($value, 0, ',', '.');
171
+        return $prefix.number_format($value, 0, ',', '.');
172 172
     }
173 173
 }
Please login to merge, or discard this patch.
app/Http/Resources/DataTables/OrderResource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
                 'name' => $this->resource->customer->fullname,
31 31
             ])->render(),
32 32
             'item_total' =>
33
-                $this->resource->item_total_bundle_quantity . ' ' . trans('bundle') .
34
-                '<br>' .
33
+                $this->resource->item_total_bundle_quantity.' '.trans('bundle').
34
+                '<br>'.
35 35
                 format_rupiah($this->resource->item_total),
36 36
             'schedule_date' => $this->resource->schedule_date ?? trans('Unscheduled'),
37 37
             'status' => $this->resource->status->label,
Please login to merge, or discard this patch.
app/Conversations/RegisterCustomerConversation.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $this->displayValidationErrorMessage($validationErrorMessage);
34 34
 
35
-        return $this->askRenderable('conversations.exchange.ask-email', function (Answer $answer) {
35
+        return $this->askRenderable('conversations.exchange.ask-email', function(Answer $answer) {
36 36
             $value = $answer->getText();
37 37
             $validator = CustomerStoreRequest::createValidator($value, 'email');
38 38
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 return $this->askEmail($validator->errors()->first('email'));
41 41
             }
42 42
 
43
-            $this->setUserStorage(['email' => $email = $validator->validated()['email']]);
43
+            $this->setUserStorage([ 'email' => $email = $validator->validated()[ 'email' ] ]);
44 44
 
45 45
             $username = $this->getUser()->getUsername();
46 46
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $this->displayValidationErrorMessage($validationErrorMessage);
64 64
 
65
-        return $this->askRenderable('conversations.register-customer.ask-fullname', function (Answer $answer) {
65
+        return $this->askRenderable('conversations.register-customer.ask-fullname', function(Answer $answer) {
66 66
             $value = $answer->getText();
67 67
             $validator = CustomerStoreRequest::createValidator($value, 'fullname');
68 68
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 return $this->askFullName($validator->errors()->first('fullname'));
71 71
             }
72 72
 
73
-            $this->setUserStorage(['fullname' => $validator->validated()['fullname']]);
73
+            $this->setUserStorage([ 'fullname' => $validator->validated()[ 'fullname' ] ]);
74 74
 
75 75
             return $this->askIdentityNumberOption();
76 76
         });
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
                 Button::create(view('conversations.register-customer.reply-identity_number-no')->render())->value('no'),
100 100
             ]);
101 101
 
102
-        return $this->ask($question, function (Answer $answer) {
102
+        return $this->ask($question, function(Answer $answer) {
103 103
             if (!$answer->isInteractiveMessageReply()) {
104 104
                 return;
105 105
             }
106 106
 
107
-            if (!in_array($value = $answer->getValue(), ['yes', 'no'])) {
107
+            if (!in_array($value = $answer->getValue(), [ 'yes', 'no' ])) {
108 108
                 return $this->askIdentityNumberOption($this->fallbackMessage($answer->getText()));
109 109
             }
110 110
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     protected function backToIdentityNumberOption(): string
123 123
     {
124
-        return trim(view('components.conversations.back', ['text' => 'opsi rekening/KTP'])->render());
124
+        return trim(view('components.conversations.back', [ 'text' => 'opsi rekening/KTP' ])->render());
125 125
     }
126 126
 
127 127
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             $additionalParameters = $this->keyboardBackToIdentityNumberOption()->toArray()
152 152
         );
153 153
 
154
-        return $this->getBot()->storeConversation($this, next: function (Answer $answer) use ($response) {
154
+        return $this->getBot()->storeConversation($this, next: function(Answer $answer) use ($response) {
155 155
             if (trim($answer->getText()) === $this->backToIdentityNumberOption()) {
156 156
                 $this->deleteTelegramMessageFromResponse($response);
157 157
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                 return $this->askAccountNumber($validator->errors()->first('account_number'));
166 166
             }
167 167
 
168
-            $this->setUserStorage(['account_number' => $validator->validated()['account_number']]);
168
+            $this->setUserStorage([ 'account_number' => $validator->validated()[ 'account_number' ] ]);
169 169
 
170 170
             return $this->askPhone();
171 171
         }, question: $question, additionalParameters: $additionalParameters);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             $additionalParameters = $this->keyboardBackToIdentityNumberOption()->toArray()
187 187
         );
188 188
 
189
-        return $this->getBot()->storeConversation($this, next: function (Answer $answer) use ($response1) {
189
+        return $this->getBot()->storeConversation($this, next: function(Answer $answer) use ($response1) {
190 190
             if (trim($answer->getText()) === $this->backToIdentityNumberOption()) {
191 191
                 $this->deleteTelegramMessageFromResponse($response1);
192 192
 
@@ -200,13 +200,13 @@  discard block
 block discarded – undo
200 200
                 return $this->askIdentityCard($validator->errors()->first('identitycard_number'));
201 201
             }
202 202
 
203
-            $this->setUserStorage(['identitycard_number' => $validator->validated()['identitycard_number']]);
203
+            $this->setUserStorage([ 'identitycard_number' => $validator->validated()[ 'identitycard_number' ] ]);
204 204
 
205 205
             $response2 = $this->reply(
206 206
                 $question = view('conversations.register-customer.ask-identitycard_image')->render()
207 207
             );
208 208
 
209
-            return $this->getBot()->storeConversation($this, function (Answer $answer) use ($response1, $response2) {
209
+            return $this->getBot()->storeConversation($this, function(Answer $answer) use ($response1, $response2) {
210 210
                 if (trim($answer->getText()) === $this->backToIdentityNumberOption()) {
211 211
                     $this->deleteTelegramMessageFromResponse($response1);
212 212
                     $this->deleteTelegramMessageFromResponse($response2);
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
                     return $this->askIdentityNumberOption();
215 215
                 }
216 216
 
217
-                $photos = $this->getMessagePayload('photo', []);
217
+                $photos = $this->getMessagePayload('photo', [ ]);
218 218
 
219 219
                 if (empty($photos)) {
220
-                    return $this->askIdentityCard('❌ Foto KTP ' . trans('could not be found.'));
220
+                    return $this->askIdentityCard('❌ Foto KTP '.trans('could not be found.'));
221 221
                 }
222 222
 
223 223
                 $response = $this->reply(view('components.conversations.please-wait')->render());
@@ -227,13 +227,13 @@  discard block
 block discarded – undo
227 227
                 $this->deleteTelegramMessageFromResponse($response);
228 228
 
229 229
                 if (!$filename) {
230
-                    return $this->askIdentityCard('❌ Foto KTP ' . trans('could not be saved.'));
230
+                    return $this->askIdentityCard('❌ Foto KTP '.trans('could not be saved.'));
231 231
                 }
232 232
 
233
-                $this->setUserStorage(['identitycard_image' => $filename]);
233
+                $this->setUserStorage([ 'identitycard_image' => $filename ]);
234 234
 
235 235
                 return $this
236
-                    ->say('✅ ' . trans(':action ran successfully!', ['action' => 'Upload foto KTP']))
236
+                    ->say('✅ '.trans(':action ran successfully!', [ 'action' => 'Upload foto KTP' ]))
237 237
                     ->askPhone();
238 238
             }, $question);
239 239
         }, question: $question, additionalParameters: $additionalParameters);
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     {
250 250
         $this->displayValidationErrorMessage($validationErrorMessage);
251 251
 
252
-        return $this->askRenderable('conversations.register-customer.ask-phone', function () {
252
+        return $this->askRenderable('conversations.register-customer.ask-phone', function() {
253 253
             $value = $this->getMessagePayload('contact.phone_number');
254 254
             $validator = CustomerStoreRequest::createValidator($value, 'phone');
255 255
 
@@ -257,15 +257,15 @@  discard block
 block discarded – undo
257 257
                 return $this->askPhone($validator->errors()->first('phone'));
258 258
             }
259 259
 
260
-            $this->setUserStorage(['phone' => $validator->validated()['phone']]);
260
+            $this->setUserStorage([ 'phone' => $validator->validated()[ 'phone' ] ]);
261 261
 
262 262
             return $this->askWhatsappPhone();
263
-        }, additionalParameters: ['reply_markup' => json_encode([
264
-            'keyboard' => [[['text' => '☎️ ' . trans('Send My Phone Number'), 'request_contact' => true]]],
263
+        }, additionalParameters: [ 'reply_markup' => json_encode([
264
+            'keyboard' => [ [ [ 'text' => '☎️ '.trans('Send My Phone Number'), 'request_contact' => true ] ] ],
265 265
             'resize_keyboard' => true,
266 266
             'one_time_keyboard' => true,
267 267
             'remove_keyboard' => true,
268
-        ])]);
268
+        ]) ]);
269 269
     }
270 270
 
271 271
     /**
@@ -278,34 +278,34 @@  discard block
 block discarded – undo
278 278
     {
279 279
         $this->displayValidationErrorMessage($validationErrorMessage);
280 280
 
281
-        $question = Question::create(view('conversations.register-customer.confirm-whatsapp_phone', ['phone' => $this->getUserStorage('phone')])->render())
281
+        $question = Question::create(view('conversations.register-customer.confirm-whatsapp_phone', [ 'phone' => $this->getUserStorage('phone') ])->render())
282 282
             ->callbackId('register_confirm_whatsapp_phone')
283 283
             ->addButtons([
284 284
                 Button::create(view('conversations.register-customer.reply-whatsapp_phone-yes')->render())->value('yes'),
285 285
                 Button::create(view('conversations.register-customer.reply-whatsapp_phone-no')->render())->value('no'),
286 286
             ]);
287 287
 
288
-        return $this->ask($question, function (Answer $answer) {
288
+        return $this->ask($question, function(Answer $answer) {
289 289
             if (!$answer->isInteractiveMessageReply()) {
290 290
                 return;
291 291
             }
292 292
 
293
-            if (!in_array($value = $answer->getValue(), ['yes', 'no'])) {
293
+            if (!in_array($value = $answer->getValue(), [ 'yes', 'no' ])) {
294 294
                 return $this->askWhatsappPhone($this->fallbackMessage($answer->getText()));
295 295
             }
296 296
 
297 297
             $phone = $this->getUserStorage('phone');
298 298
 
299 299
             if ($value === 'yes') {
300
-                $this->setUserStorage(['whatsapp_phone' => $phone]);
300
+                $this->setUserStorage([ 'whatsapp_phone' => $phone ]);
301 301
 
302 302
                 return $this->askLocation();
303 303
             }
304 304
 
305
-            return value(function (string $validationErrorMessage = null) use (&$callback) {
305
+            return value(function(string $validationErrorMessage = null) use (&$callback) {
306 306
                 $this->displayValidationErrorMessage($validationErrorMessage);
307 307
 
308
-                $this->askRenderable('conversations.register-customer.ask-whatsapp_phone', function (Answer $answer) use (&$phone, $callback) {
308
+                $this->askRenderable('conversations.register-customer.ask-whatsapp_phone', function(Answer $answer) use (&$phone, $callback) {
309 309
                     $value = $answer->getText();
310 310
                     $validator = CustomerStoreRequest::createValidator($value, 'whatsapp_phone');
311 311
 
@@ -313,9 +313,9 @@  discard block
 block discarded – undo
313 313
                         return $callback($validator->errors()->first('whatsapp_phone'));
314 314
                     }
315 315
 
316
-                    $phone = $validator->validated()['whatsapp_phone'];
316
+                    $phone = $validator->validated()[ 'whatsapp_phone' ];
317 317
 
318
-                    $this->setUserStorage(['whatsapp_phone' => $phone]);
318
+                    $this->setUserStorage([ 'whatsapp_phone' => $phone ]);
319 319
 
320 320
                     return $this->askLocation();
321 321
                 });
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     {
334 334
         $this->displayValidationErrorMessage($validationErrorMessage);
335 335
 
336
-        return $this->askRenderable('conversations.register-customer.ask-location', function () {
336
+        return $this->askRenderable('conversations.register-customer.ask-location', function() {
337 337
             $latitude = $this->getMessagePayload('location.latitude');
338 338
             $longitude = $this->getMessagePayload('location.longitude');
339 339
 
@@ -354,11 +354,11 @@  discard block
 block discarded – undo
354 354
             ]);
355 355
 
356 356
             return $this->askDataConfirmation();
357
-        }, additionalParameters: ['reply_markup' => json_encode([
358
-            'keyboard' => [[['text' => '
Please login to merge, or discard this patch.
app/Conversations/ExchangeConversation.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
                 Button::create(view('conversations.register-customer.reply-customer_data-no')->render())->value('no'),
83 83
             ]);
84 84
 
85
-        return $this->ask($question, next: function (Answer $answer) use ($customer) {
85
+        return $this->ask($question, next: function(Answer $answer) use ($customer) {
86 86
             if (!$answer->isInteractiveMessageReply()) {
87 87
                 return;
88 88
             }
89 89
 
90
-            if (!in_array($value = $answer->getValue(), ['yes', 'no'])) {
90
+            if (!in_array($value = $answer->getValue(), [ 'yes', 'no' ])) {
91 91
                 return $this->displayCustomerData($customer, $this->fallbackMessage($answer->getText()));
92 92
             }
93 93
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             $additionalParameters = $keyboard->toArray()
131 131
         );
132 132
 
133
-        return $this->getBot()->storeConversation($this, next: function (Answer $answer) use ($response, $customer, $denominations) {
133
+        return $this->getBot()->storeConversation($this, next: function(Answer $answer) use ($response, $customer, $denominations) {
134 134
             if (!$answer->isInteractiveMessageReply()) {
135 135
                 return;
136 136
             }
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
             }
145 145
 
146 146
             /** @var \App\Models\Order $order */
147
-            $order = Order::findOrCreateFromCode($this->getUserStorage('order_code'), $customer, function (Order $order) {
148
-                $this->setUserStorage(['order_code' => $order->code]);
147
+            $order = Order::findOrCreateFromCode($this->getUserStorage('order_code'), $customer, function(Order $order) {
148
+                $this->setUserStorage([ 'order_code' => $order->code ]);
149 149
             });
150 150
 
151 151
             if ($order->item_total > Configuration::getMaximumTotalOrderValue()) {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
              * If there is an order's item that has same denomination with the selected one,
157 157
              * then it will be deleted first before customer continue to record item.
158 158
              */
159
-            if ($item = $order->items()->whereHas('denomination', function ($query) use ($denomination) {
159
+            if ($item = $order->items()->whereHas('denomination', function($query) use ($denomination) {
160 160
                 $query->whereKey($denomination->getKey());
161 161
             })->first('id')) {
162 162
                 $item->delete();
@@ -181,15 +181,15 @@  discard block
 block discarded – undo
181 181
         $keyboard = Keyboard::create(Keyboard::TYPE_INLINE)->resizeKeyboard();
182 182
         $unit = Str::lower($denomination->type->label);
183 183
 
184
-        collect($denomination->range_order_bundle)->chunk(3)->map(function (Collection $quantities) use ($keyboard, $unit) {
185
-            $keyboard->addRow(...$quantities->map(fn ($quantity) => KeyboardButton::create(
184
+        collect($denomination->range_order_bundle)->chunk(3)->map(function(Collection $quantities) use ($keyboard, $unit) {
185
+            $keyboard->addRow(...$quantities->map(fn($quantity) => KeyboardButton::create(
186 186
                 view('conversations.exchange.reply-bundle_quantity-quantity', compact('quantity'))->render()
187 187
             )->callbackData($quantity))->toArray());
188 188
         });
189 189
 
190 190
         $keyboard->addRow(
191 191
             KeyboardButton::create(
192
-                view('components.conversations.back', ['text' => 'opsi pilih nominal uang'])->render()
192
+                view('components.conversations.back', [ 'text' => 'opsi pilih nominal uang' ])->render()
193 193
             )->callbackData('back_to_denomination_option')
194 194
         );
195 195
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             $additionalParameters = $keyboard->toArray()
199 199
         );
200 200
 
201
-        return $this->getBot()->storeConversation($this, next: function (Answer $answer) use ($response, $order, $denomination) {
201
+        return $this->getBot()->storeConversation($this, next: function(Answer $answer) use ($response, $order, $denomination) {
202 202
             $this->deleteTelegramMessageFromResponse($response);
203 203
 
204 204
             if ($answer->getValue() === 'back_to_denomination_option') {
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
             $additionalParameters = $keyboard->toArray()
256 256
         );
257 257
 
258
-        return $this->getBot()->storeConversation($this, next: function (Answer $answer) use ($response, $responseConfirmOrder, $order) {
258
+        return $this->getBot()->storeConversation($this, next: function(Answer $answer) use ($response, $responseConfirmOrder, $order) {
259 259
             $this->deleteTelegramMessageFromResponse($response);
260 260
 
261 261
             switch ($answer->getValue()) {
Please login to merge, or discard this patch.