1 | <?php |
||
2 | /** |
||
3 | * Created by PhpStorm. |
||
4 | * User: sjhc1170 |
||
5 | * Date: 18/05/2018 |
||
6 | * Time: 10:00 |
||
7 | */ |
||
8 | |||
9 | namespace Iriven\Plugins\Form\Elements; |
||
10 | |||
11 | |||
12 | use \Iriven\Plugins\Form\Core\FormElement; |
||
0 ignored issues
–
show
|
|||
13 | |||
14 | class Number extends FormElement |
||
15 | { |
||
16 | public function __construct($label, $attributes) |
||
17 | { |
||
18 | parent::__construct($label, $attributes); |
||
19 | |||
20 | $this->attributes->set('type','number'); |
||
21 | |||
22 | if(!$this->attributes->has('min')) |
||
23 | $this->attributes->set('min','0'); |
||
24 | |||
25 | if(!$this->attributes->has('max')) |
||
26 | $this->attributes->set('max','100'); |
||
27 | |||
28 | if(!$this->attributes->has('step')) |
||
29 | $this->attributes->set('step','1'); |
||
30 | } |
||
31 | |||
32 | } |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths