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

Apps/View/Front/default/user/signup.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
use Ffcms\Core\Helper\HTML\Form;
3
4
/** @var $notify array */
5
/** @var $useCaptcha bool */
6
/** @var $model \Apps\Model\Front\User\FormRegister */
7
/** @var $this \Ffcms\Core\Arch\View */
8
$this->title = __('Sign up');
9
?>
10
11
<h1 class="text-center"><?php echo __('Sign up'); ?></h1>
12
<?= $this->render('user/_tabs'); ?>
13
<br />
14
15
<?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); ?>
16
17
<?= $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...
18
19
<?= $form->field('login', 'text', ['class' => 'form-control'], __('Enter your username for future use on the site')); ?>
20
<?= $form->field('email', 'text', ['class' => 'form-control'], __('Enter your e-mail for an account')); ?>
21
<?= $form->field('password', 'password', ['class' => 'form-control'], __('Enter a password for your account. It should be longer than 3 characters')); ?>
22
<?= $form->field('repassword', 'password', ['class' => 'form-control'], __('Repeat your password to be sure it correct')); ?>
23 View Code Duplication
<?php if (true === $useCaptcha) {
24
    if (\App::$Captcha->isFull()) {
25
        echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>';
26
    } else {
27
        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'));
28
    }
29
}
30
?>
31
32
<div class="col-md-9 col-md-offset-3"><?php echo $form->submitButton(__('Register!'), ['class' => 'btn btn-default']); ?></div>
33
34
35
<?= $form->finish(); ?>