Issues (632)

src/Inputs/Interfaces/SelectInput.php (31 issues)

1
<?php
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 "SelectInput.php" doesn't match the expected filename "selectinput.php"
Loading history...
2
namespace EddIriarte\Console\Inputs\Interfaces;
0 ignored issues
show
Missing file doc comment
Loading history...
3
4
/**
5
 * Interface SelectInput
6
 * @package EddIriarte\Console\Inputs\Interfaces
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
7
 * @author Eduardo Iriarte <eddiriarte[at]gmail[dot]com>
0 ignored issues
show
Content of the @author tag must be in the form "Display Name <[email protected]>"
Loading history...
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
8
 */
0 ignored issues
show
Missing @category tag in class comment
Loading history...
Missing @license tag in class comment
Loading history...
Missing @link tag in class comment
Loading history...
9
interface SelectInput
10
{
0 ignored issues
show
Opening brace should be on the same line as the declaration for interface SelectInput
Loading history...
11
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
12
     * @return string
13
     */
14
    public function getMessage(): string;
0 ignored issues
show
Expected 2 blank lines before function; 0 found
Loading history...
Expected 2 blank lines after function; 1 found
Loading history...
15
16
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
17
     * @return array
18
     */
19
    public function getOptions(): array;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
20
21
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
22
     * @return array
23
     */
24
    public function getSelections(): array;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
25
26
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
27
     * @return bool
0 ignored issues
show
Expected "boolean" but found "bool" for function return type
Loading history...
28
     */
29
    public function hasSelections(): bool;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
30
31
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
32
     * @param string $option
0 ignored issues
show
Missing parameter comment
Loading history...
33
     * @return bool
0 ignored issues
show
Expected "boolean" but found "bool" for function return type
Loading history...
34
     */
35
    public function isSelected(string $option): bool;
0 ignored issues
show
Expected 2 blank lines after function; 1 found
Loading history...
36
37
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
38
     * @param string $option
0 ignored issues
show
Missing parameter comment
Loading history...
39
     */
0 ignored issues
show
Missing @return tag in function comment
Loading history...
40
    public function select(string $option): void;
0 ignored issues
show
Expected 2 blank lines after function; 0 found
Loading history...
41
}
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...
42