Issues (1124)

src/Event/StateEventStore.php (15 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 "StateEventStore.php" doesn't match the expected filename "stateeventstore.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
final class StateEventStore
0 ignored issues
show
Coding Style Documentation introduced by
Missing class doc comment
Loading history...
11
{
0 ignored issues
show
Opening brace should be on the same line as the declaration for class StateEventStore
Loading history...
12
    /**
13
     * This event is performed before any transition on the context.
14
     *
15
     * @see TransitionWasRequested
16
     */
17
    const BEFORE_TRANSITION = 'star_state.before_transition';
18
19
    /**
20
     * This event is performed after any transition is executed on the context.
21
     *
22
     * @see TransitionWasSuccessful
23
     */
24
    const AFTER_TRANSITION = 'star_state.after_transition';
25
26
    /**
27
     * This event is performed before the transition exception is triggered.
28
     *
29
     * @see TransitionWasFailed
30
     */
31
    const FAILURE_TRANSITION = 'star_state.transition_failure';
32
}
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...
33