Completed
Push — master ( 6f8a68...2f55bf )
by Askupa
02:00
created

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\Metabox;
4
5
class Field
6
extends \Amarkal\UI\AbstractComponent
7
{
8
    public function default_model() 
9
    {
10
        return array(
11
            'type'          => '',
12
            'label'         => '',
13
            'description'   => ''
14
        );
15
    }
16
    
17
    protected function on_created() 
18
    {
19
//        $this->model['value'] = \get_term_meta($this->term_id, $this->name, true);
0 ignored issues
show
Unused Code Comprehensibility introduced by
60% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
20
    }
21
    
22
    public function get_template_path()
23
    {
24
        return __DIR__.'/Field.phtml';
25
    }
26
}