Issues (1124)

src/StateVisitor.php (14 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 "StateVisitor.php" doesn't match the expected filename "statevisitor.php"
Loading history...
2
3
namespace Star\Component\State;
4
5
interface StateVisitor
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 StateVisitor
Loading history...
7
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
8
     * @param string $name
0 ignored issues
show
Missing parameter comment
Loading history...
Expected 3 spaces after parameter type; 1 found
Loading history...
9
     * @param string[] $attributes
0 ignored issues
show
Missing parameter comment
Loading history...
10
     */
0 ignored issues
show
Missing @return tag in function comment
Loading history...
11
    public function visitState(string $name, array $attributes): void;
0 ignored issues
show
Expected 2 blank lines before function; 0 found
Loading history...
Expected 2 blank lines after function; 0 found
Loading history...
12
}
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...
13