Completed
Push — master ( 7a8290...bcd23f )
by Askupa
03:29
created

components/number/controller.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Amarkal\UI;
4
5
/**
6
 * Implements a number UI component.
7
 */
8
class Component_number
9
extends AbstractComponent
10
{
11 View Code Duplication
    public function default_model() 
0 ignored issues
show
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
12
    {
13
        return array(
14
            'name'          => '',
15
            'disabled'      => false,
16
            'size'          => null,
17
            'min'           => null,
18
            'max'           => null,
19
            'step'          => null,
20
            'required'      => false,
21
            'readonly'      => false
22
        );
23
    }
24
    
25
    public function required_arguments()
26
    {
27
        return array('name');
28
    }
29
    
30
    public function get_template_path() 
31
    {
32
        return __DIR__.'/template.phtml';
33
    }
34
}