Passed
Push — master ( 671b4b...06a963 )
by Gabriel
04:41
created

StatsTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 1
b 0
f 1
dl 0
loc 9
ccs 0
cts 1
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A compileForLetter() 0 2 1
1
<?php
2
3
namespace ByTIC\DocumentGenerator\PdfLetters\Models\Stats;
4
5
use ByTIC\DocumentGenerator\Tests\Fixtures\Models\PdfLetters\PdfLetter;
6
use Nip\Records\AbstractModels\Record;
7
use Nip\Records\Traits\AbstractTrait\RecordsTrait as AbstractRecordsTrait;
8
9
/**
10
 * Class StatsTrait
11
 * @package ByTIC\DocumentGenerator\PdfLetters\Models\Stats
12
 */
13
trait StatsTrait
14
{
15
    use AbstractRecordsTrait;
16
17
    /**
18
     * @param PdfLetter|Record $letter
19
     */
20
    public function compileForLetter($letter)
0 ignored issues
show
Unused Code introduced by
The parameter $letter is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
    public function compileForLetter(/** @scrutinizer ignore-unused */ $letter)

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

Loading history...
21
    {
22
23
    }
24
}
25