Passed
Push — master ( 29baaf...069627 )
by Mihail
06:51
created

Apps/View/Front/default/user/recovery.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/** @var $this \Ffcms\Core\Arch\View */
4
/** @var $model \Apps\Model\Front\User\FormRecovery */
5
use Ffcms\Core\Helper\HTML\Form;
6
7
$this->title = __('Recovery');
8
9
?>
10
<h1 class="text-center"><?= __('Recovery form') ?></h1>
11
<?= $this->render('user/_tabs'); ?>
12
<br/>
13
14
<?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); ?>
15
16
<?= $form->start() ?>
0 ignored issues
show
The method start() does not seem to exist on object<Ffcms\Core\Helper\HTML\Form>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
17
18
<?= $form->field('email', 'email', ['class' => 'form-control'], __('Input your account email')); ?>
19
<?php
20 View Code Duplication
if (\App::$Captcha->isFull()) {
21
    echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>';
22
} else {
23
    echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload'));
24
}
25
?>
26
27
<div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Make recovery'), ['class' => 'btn btn-default']); ?></div>
28
29
<?= $form->finish(); ?>