TraitedFixture::call()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace Vvval\Spiral\Validation\Tests\Checkers\Fixtures;
4
5
use Vvval\Spiral\Validation\Checkers\Traits\CustomMessagesTrait;
6
7
class TraitedFixture
8
{
9
    use CustomMessagesTrait;
10
11
    const MESSAGE = 'trait message';
12
13
    /**
14
     * @param string $method
15
     *
16
     * @return string
17
     */
18
    public function getMessage(string $method): string
0 ignored issues
show
Unused Code introduced by
The parameter $method 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...
19
    {
20
        return self::MESSAGE;
21
    }
22
23
    /**
24
     * @param string|null $message
25
     * @param string      $method
26
     *
27
     * @return string
28
     */
29
    public function call(string $message = null, string $method)
30
    {
31
        return $this->makeMessage($message, $method);
32
    }
33
}