for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
Check for code that has been commented out.
/** @var $notify array */
/** @var $useCaptcha bool */
/** @var $model \Apps\Model\Front\User\FormRegister */
/** @var \Ffcms\Templex\Template\Template $this */
'title' => __('Sign up')
<?php $this->start('body') ?>
<h1><?= __('Sign up'); ?></h1>
<?= $this->insert('user/_menu/tabs') ?>
<?php $form = $this->form($model) ?>
<?= $form->start() ?>
<?php // $this->insert('user/_menu/_social_panel') ?>
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have
checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that
someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.
<?= $form->fieldset()->text('login', null, __('Enter your username for future use on the site')); ?>
<?= $form->fieldset()->text('email', null, __('Enter your e-mail for an account')); ?>
<?= $form->fieldset()->password('password', null, __('Enter a password for your account. It should be longer than 3 characters')); ?>
<?= $form->fieldset()->password('repassword', null, __('Repeat your password to be sure it correct')); ?>
<?= $this->insert('_core/form/fieldset/captcha', ['form' => $form]) ?>
<?= $form->button()->submit(__('Register!'), ['class' => 'btn btn-primary']) ?>
<?= $form->stop() ?>
<?= $this->stop() ?>