Issues (1124)

src/Event/TransitionWasRequested.php (30 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 "TransitionWasRequested.php" doesn't match the expected filename "transitionwasrequested.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\Event;
9
10
use Symfony\Contracts\EventDispatcher\Event;
11
12
final class TransitionWasRequested extends Event implements StateEvent
0 ignored issues
show
Coding Style Documentation introduced by
Missing class doc comment
Loading history...
13
{
0 ignored issues
show
Opening brace should be on the same line as the declaration for class TransitionWasRequested
Loading history...
14
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
15
     * @var string
16
     */
17
    private $transition;
0 ignored issues
show
Private member variable "transition" must contain a leading underscore
Loading history...
Expected 1 blank line before member var; 0 found
Loading history...
Private member variable "transition" must be prefixed with an underscore
Loading history...
18
19 30
    public function __construct(string $transition)
0 ignored issues
show
Expected 2 blank lines before function; 1 found
Loading history...
Missing function doc comment
Loading history...
20
    {
0 ignored issues
show
Opening brace should be on the same line as the declaration
Loading history...
21 30
        $this->transition = $transition;
22 30
    }
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
Expected 1 blank line before closing function brace; 0 found
Loading history...
Expected //end __construct()
Loading history...
23
24
    public function transition(): string
0 ignored issues
show
Missing function doc comment
Loading history...
25
    {
0 ignored issues
show
Opening brace should be on the same line as the declaration
Loading history...
26
        return $this->transition;
27
    }
0 ignored issues
show
Expected 2 blank lines after function; 0 found
Loading history...
Expected 1 blank line before closing function brace; 0 found
Loading history...
Expected //end transition()
Loading history...
28
}
0 ignored issues
show
Expected //end class
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...
29