Completed
Pull Request — master (#1)
by Woody
27:07 queued 01:07
created

Action::__construct()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 3
Metric Value
dl 0
loc 15
ccs 7
cts 7
cp 1
rs 9.4286
cc 3
eloc 9
nc 4
nop 3
crap 3
1
<?php
2
3
namespace Equip;
4
5
use Arbiter\Action as Arbiter;
6
7
class Action extends Arbiter
8
{
9
    protected $input = 'Equip\Input';
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
10
    protected $responder = 'Equip\Responder\ChainedResponder';
11
12
    /**
13
     * @inheritDoc
14
     */
15 13
    public function __construct(
16
        $domain,
17
        $responder = null,
18
        $input = null
19
    ) {
20 13
        $this->domain = $domain;
21
22 13
        if ($responder) {
23 1
            $this->responder = $responder;
24
        }
25
26 13
        if ($input) {
27 1
            $this->input = $input;
28
        }
29 13
    }
30
}
31