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 | |||
| 6 | /** @var $routes array */ |
||
| 7 | /** @var $model \Apps\Model\Admin\Main\FormAddRoute */ |
||
| 8 | |||
| 9 | $this->breadcrumbs = [ |
||
| 10 | Url::to('main/index') => __('Main'), |
||
| 11 | Url::to('main/routing') => __('Routing'), |
||
| 12 | __('Add route') |
||
| 13 | ]; |
||
| 14 | |||
| 15 | $this->title = __('Add route'); |
||
| 16 | |||
| 17 | ?> |
||
| 18 | |||
| 19 | <h1><?= __('New route') ?></h1> |
||
| 20 | <hr /> |
||
| 21 | <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); ?> |
||
| 22 | |||
| 23 | <?= $form->start() ?> |
||
|
0 ignored issues
–
show
|
|||
| 24 | |||
| 25 | <?= $form->field('type', 'select', |
||
| 26 | [ |
||
| 27 | 'class' => 'form-control', |
||
| 28 | 'options' => [ |
||
| 29 | 'Alias' => __('Static (alias) route'), |
||
| 30 | 'Callback' => __('Dynamic (callback) route') |
||
| 31 | ], |
||
| 32 | 'optionsKey' => true |
||
| 33 | ], |
||
| 34 | __('Specify type of defined rule')) ?> |
||
| 35 | <?= $form->field('loader', 'select', ['options' => ['Front', 'Admin', 'Api'], 'class' => 'form-control'], __('Select loader type where be applied rule')) ?> |
||
| 36 | <?= $form->field('source', 'text', ['class' => 'form-control'], __('Define source path (for static alias) or class name (for dynamic rule) to use it for target query')) ?> |
||
| 37 | <?= $form->field('target', 'text', ['class' => 'form-control'], __('Define target path or class path for displayd item on source path')) ?> |
||
| 38 | |||
| 39 | |||
| 40 | <div class="col-md-9 col-md-offset-3"><?= $form->submitButton(__('Add new route'), ['class' => 'btn btn-primary']) ?></div> |
||
| 41 | |||
| 42 | <?= $form->finish() ?> |
||
| 43 |
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.