Passed
Push — master ( d917f3...9bdfff )
by Jesse
02:48
created

ProposalHasAlreadyExpired::cannotAcceptItAnymore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php declare(strict_types=1);
0 ignored issues
show
Coding Style introduced by
Class found in ".php" file; use ".inc" extension instead
Loading history...
Coding Style introduced by
This file is missing a doc comment.
Loading history...
Coding Style introduced by
The PHP open tag does not have a corresponding PHP close tag
Loading history...
Coding Style introduced by
Filename "ProposalHasAlreadyExpired.php" doesn't match the expected filename "proposalhasalreadyexpired.php"
Loading history...
introduced by
The PHP open tag must be followed by exactly one blank line
Loading history...
introduced by
Expected 1 space before "="; 0 found
Loading history...
introduced by
Expected 1 space after "="; 0 found
Loading history...
2
3
namespace Stratadox\CardGame\Proposal;
4
5
use RuntimeException;
6
7
final class ProposalHasAlreadyExpired extends RuntimeException
0 ignored issues
show
Coding Style Documentation introduced by
Missing doc comment for class ProposalHasAlreadyExpired
Loading history...
introduced by
Missing class doc comment
Loading history...
8
{
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration for class ProposalHasAlreadyExpired
Loading history...
introduced by
Opening brace should be on the same line as the declaration
Loading history...
9
    public static function cannotAcceptItAnymore(): self
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line before function; 0 found
Loading history...
Coding Style introduced by
Missing doc comment for function cannotAcceptItAnymore()
Loading history...
introduced by
Missing function doc comment
Loading history...
10
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
11
        return new self(
12
            'The proposal cannot be accepted anymore, because it has expired.'
13
        );
14
    }
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line after function; 0 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
15
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
16