Passed
Push — master ( cee0bf...380ca5 )
by Mihail
04:24
created
Apps/View/Front/default/form/fieldset/captcha.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,14 @@
 block discarded – undo
13 13
 
14 14
 <?php if (App::$Captcha->isFull()): ?>
15 15
     <div class="col-md-9 offset-md-3"><?= $html ?></div>
16
-<?php else: ?>
16
+<?php else {
17
+    : ?>
17 18
     <div class="row">
18 19
         <div class="col-md-9 offset-md-3">
19 20
             <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" />
20 21
         </div>
21 22
     </div>
22 23
     <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?>
23
-<?php endif; ?>
24 24
\ No newline at end of file
25
+<?php endif;
26
+}
27
+?>
25 28
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Controller/Api/Captcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         // set header. Class response->header->set is not working here (content output directly before)
21 21
         header('Content-type: image/jpeg');
22 22
         $builder = new CaptchaBuilder();
23
-        $builder->build(mt_rand(200, 250), mt_rand(70,80)); // build and set random width/height
23
+        $builder->build(mt_rand(200, 250), mt_rand(70, 80)); // build and set random width/height
24 24
         // set captcha value to session
25 25
         App::$Session->set('captcha', $builder->getPhrase());
26 26
 
Please login to merge, or discard this patch.