GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 8b034b...b09e0d )
by Gabriel
07:03
created

FormField   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
1
<?php
2
3
namespace ByTIC\FormBuilder\Tests\Fixtures\Application\Models\Fields;
4
5
use ByTIC\Common\Records\Record;
6
use ByTIC\FormBuilder\Application\Models\Fields\Traits\FormFieldTrait;
7
use ByTIC\FormBuilder\Application\Models\Fields\Types\Traits\AbstractTypeTrait;
8
9
/**
10
 * Class FormField
11
 * @package ByTIC\FormBuilder\Tests\Fixtures\Application\Modules\AbstractModule\Forms
12
 */
13
class FormField extends Record
14
{
15
    use FormFieldTrait;
16
17
    /**
18
     * @return AbstractTypeTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type AbstractTypeTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
19
     */
20
    public function getType()
21
    {
22
        return 'text';
23
    }
24
}
25