1 | <?php |
||
7 | class PhpCsTool implements CommandInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $files; |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $standard; |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $errorMessage; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $enableFaces; |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $ignore; |
||
29 | |||
30 | /** |
||
31 | * PhpCsToolCommand constructor. |
||
32 | * |
||
33 | * @param array $files |
||
34 | * @param string $standard |
||
35 | * @param string $errorMessage |
||
36 | * @param bool $enableFaces |
||
37 | * @param string $ignore |
||
38 | */ |
||
39 | 3 | public function __construct(array $files, $standard, $errorMessage, $enableFaces, $ignore) |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 2 | public function getErrorMessage() |
|
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | 2 | public function isEnableFaces() |
|
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | 2 | public function getFiles() |
|
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | 2 | public function getStandard() |
|
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | 2 | public function getIgnore() |
|
87 | } |
||
88 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.