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

components/text/controller.php (6 issues)

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 Text UI component.
7
 */
8
class Component_text
9
extends AbstractComponent
10
implements ValueComponentInterface, 
0 ignored issues
show
The implements keyword must be on the same line as the class name
Loading history...
The first item in a multi-line implements list must be on the line following the implements keyword
Loading history...
11
           DisableableComponentInterface,
0 ignored issues
show
Expected 4 spaces before interface name; 11 found
Loading history...
12
           FilterableComponentInterface,
0 ignored issues
show
Expected 4 spaces before interface name; 11 found
Loading history...
13
           ValidatableComponentInterface
0 ignored issues
show
Expected 4 spaces before interface name; 11 found
Loading history...
14
{
15 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...
16
    {
17
        return array(
18
            'name'          => '',
19
            'disabled'      => false,
20
            'placeholder'   => null,
21
            'size'          => null,
22
            'required'      => false,
23
            'readonly'      => false,
24
            'default'       => null,
25
            'filter'        => null,
26
            'validation'    => null
27
        );
28
    }
29
    
30
    public function required_arguments()
31
    {
32
        return array('name');
33
    }
34
    
35
    public function get_template_path() 
36
    {
37
        return __DIR__.'/template.phtml';
38
    }
39
}