Issues (1124)

src/StateTransition.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 "StateTransition.php" doesn't match the expected filename "statetransition.php"
Loading history...
2
/**
0 ignored issues
show
Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
Loading history...
Block comments must be started with /*
Loading history...
3
 * This file is part of the php-state project.
4
 *
5
 * (c) Yannick Voyer <[email protected]> (http://github.com/yvoyer)
6
 */
0 ignored issues
show
PHP version not specified
Loading history...
Missing @category tag in file comment
Loading history...
Missing @package tag in file comment
Loading history...
Missing @author tag in file comment
Loading history...
Missing @license tag in file comment
Loading history...
Missing @link tag in file comment
Loading history...
7
8
namespace Star\Component\State;
9
10
interface StateTransition
0 ignored issues
show
Missing class doc comment
Loading history...
11
{
0 ignored issues
show
Opening brace should be on the same line as the declaration for interface StateTransition
Loading history...
12
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
13
     * @param RegistryBuilder $registry
0 ignored issues
show
Missing parameter comment
Loading history...
14
     */
0 ignored issues
show
Missing @return tag in function comment
Loading history...
15
    public function onRegister(RegistryBuilder $registry): void;
0 ignored issues
show
Expected 2 blank lines before function; 0 found
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
16
17
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
18
     * @return string
19
     */
20
    public function getName(): string;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
21
22
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
23
     * @return string
24
     */
25
    public function getDestinationState(): string;
0 ignored issues
show
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