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.
Test Failed
Push — master ( 8bca22...568bf9 )
by Gabriel
13:02 queued 05:02
created

HasReports   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A newReport() 0 4 1
getReportsModelManager() 0 1 ?
A compileReportName() 0 4 1
1
<?php
2
3
namespace ByTIC\Common\Reports\Traits;
4
5
use ByTIC\Common\Records\Traits\AbstractTrait\RecordsTrait;
6
7
/**
8
 * Class RecordHasReports
9
 *
10
 * @package ByTIC\Common\Reports\Generator
11
 */
12
trait HasReports
13
{
14
    use RecordsTrait;
15
16
    /**
17
     * @param $name
18
     * @param $params
19
     */
20
    public function newReport($name, $params)
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
    {
22
        return;
23
    }
24
25
    abstract protected function getReportsModelManager();
26
27
    /**
28
     * @param $name
29
     * @return string
30
     */
31
    public function compileReportName($name)
32
    {
33
        return $name;
34
    }
35
}
36