NetteForm::beforeRender()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace kalanis\kw_table\form_nette;
4
5
6
use Nette\ComponentModel\IContainer;
7
8
9
/**
10
 * Class NetteFilterForm
11
 * @package kalanis\kw_table_nette
12
 * Form used for filtering in Nette
13
 *
14
 * @method addTbDatePicker($name, $label = null) \RadekDostal\NetteComponents\DateTimePicker\TbDatePicker
15
 * @method addTbDateTimePicker($name, $label = null) \RadekDostal\NetteComponents\DateTimePicker\TbDateTimePicker
16
 * @method addBootstrapDateRange($name, $label = null) \RadekDostal\NetteComponents\DateTimePicker\TbDateTimePicker
17
 * @method addTbDateRange($name, $label = null) \RadekDostal\NetteComponents\DateTimePicker\TbDateTimePicker
18
 * @method addBootstrapRange($name, $label = null) \RadekDostal\NetteComponents\DateTimePicker\TbDateTimePicker
19
 * @method addRange($name, $label = null) \RadekDostal\NetteComponents\DateTimePicker\TbDateTimePicker
20
 */
21
class NetteForm extends \Nette\Application\UI\Form
0 ignored issues
show
Bug introduced by
The type Nette\Application\UI\Form was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
{
23
24
    public function __construct(IContainer $parent = null, string $name = null)
25
    {
26
        parent::__construct($parent, $name);
27
        $this->setMethod('GET');
28
        $this->addSubmit('apply');
29
    }
30
31
    /**
32
     * Remove Nette param "do=?" in hidden element - tables do not need them and it is just error-introduction
33
     */
34
    protected function beforeRender()
35
    {
36
    }
37
}
38