phpffcms /
ffcms
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | use Ffcms\Core\Helper\HTML\Form; |
||
| 4 | use Ffcms\Core\Helper\Url; |
||
| 5 | use Apps\ActiveRecord\ProfileField; |
||
| 6 | |||
| 7 | /** @var $model Apps\Model\Front\Profile\FormSettings */ |
||
| 8 | /** @var $this object */ |
||
| 9 | |||
| 10 | $this->title = __('Profile settings'); |
||
| 11 | |||
| 12 | $this->breadcrumbs = [ |
||
| 13 | Url::to('main/index') => __('Home'), |
||
| 14 | Url::to('profile/show', \App::$User->identity()->getId()) => __('Profile'), |
||
| 15 | __('Settings') |
||
| 16 | ]; |
||
| 17 | |||
| 18 | ?> |
||
| 19 | |||
| 20 | <?= $this->render('profile/_settingsTab') ?> |
||
| 21 | |||
| 22 | <h1><?= __('Profile settings') ?></h1> |
||
| 23 | <hr /> |
||
| 24 | <?php $form = new Form($model, ['class' => 'form-horizontal', 'action' => '', 'method' => 'post']) ?> |
||
| 25 | |||
| 26 | <?= $form->start() ?> |
||
|
0 ignored issues
–
show
|
|||
| 27 | |||
| 28 | <?= $form->field('nick', 'text', ['class' => 'form-control'], __('Enter your nickname or real name')) ?> |
||
| 29 | <?= $form->field('sex', 'select', ['class' => 'form-control', 'options' => ['0' => __('Unknown'), '1' => __('Male'), '2' => __('Female')], 'optionsKey' => true], __('Choose your gender')) ?> |
||
| 30 | <?= $form->field('birthday', 'text', ['class' => 'form-control'], __('Enter your birthday date in d.m.Y format')) ?> |
||
| 31 | <?= $form->field('city', 'text', ['class' => 'form-control'], __('Enter the name of the city where you live')) ?> |
||
| 32 | <?= $form->field('hobby', 'text', ['class' => 'form-control'], __('Enter your hobbies in comma-separated format')) ?> |
||
| 33 | <?= $form->field('phone', 'text', ['class' => 'form-control'], __('Enter your phone number without spaces, if you want to make it public for other users')) ?> |
||
| 34 | <?= $form->field('url', 'text', ['class' => 'form-control'], __('If you have your own homepage - enter url there')) ?> |
||
| 35 | <?php |
||
| 36 | foreach (ProfileField::getAll() as $custom) { |
||
| 37 | echo $form->field('custom_data.' . $custom->id, 'text', ['class' => 'form-control']); |
||
| 38 | } |
||
| 39 | ?> |
||
| 40 | |||
| 41 | <div class="col-md-9 col-md-offset-3"><?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?></div> |
||
| 42 | |||
| 43 | <?= $form->finish() ?> |
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.