Issues (1124)

src/StateRegistry.php (24 issues)

1
<?php declare(strict_types=1);
0 ignored issues
show
This file is missing a doc comment.
Loading history...
The PHP open tag does not have a corresponding PHP close tag
Loading history...
Filename "StateRegistry.php" doesn't match the expected filename "stateregistry.php"
Loading history...
2
3
namespace Star\Component\State;
4
5
interface StateRegistry extends RegistryBuilder
0 ignored issues
show
Missing class doc comment
Loading history...
6
{
0 ignored issues
show
Opening brace should be on the same line as the declaration for interface StateRegistry
Loading history...
7
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
8
     * @param string $name The transition name
0 ignored issues
show
Parameter comment must end with a full stop
Loading history...
9
     *
10
     * @return StateTransition
11
     * @throws NotFoundException
0 ignored issues
show
Comment missing for @throws tag in function comment
Loading history...
12
     */
13
    public function getTransition(string $name): StateTransition;
0 ignored issues
show
Expected 2 blank lines before function; 0 found
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
14
15
    public function addAttribute(string $state, string $attribute): void;
0 ignored issues
show
Missing function doc comment
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
16
17
    public function hasAttribute(string $state, string $attribute): bool;
0 ignored issues
show
Missing function doc comment
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
18
19
    public function hasState(string $name): bool;
0 ignored issues
show
Missing function doc comment
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
20
21
    public function transitionStartsFrom(string $transition, string $state): bool;
0 ignored issues
show
Missing function doc comment
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
22
23
    public function acceptTransitionVisitor(TransitionVisitor $visitor): void;
0 ignored issues
show
Missing function doc comment
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
24
25
    public function acceptStateVisitor(StateVisitor $visitor): void;
0 ignored issues
show
Missing function doc comment
Loading history...
Expected 2 blank lines after function; 0 found
Loading history...
26
}
0 ignored issues
show
Expected //end interface
Loading history...
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...
27