NetteForm   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A beforeRender() 0 2 1
A __construct() 0 5 1
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