11<?php
22
3- declare (strict_types = 1 );
3+ declare (strict_types= 1 );
44
55namespace PhpDocChecker ;
66
@@ -29,7 +29,7 @@ class CheckerCommand extends Command
2929 protected array $ warnings = [];
3030
3131 protected array $ exclude = [];
32-
32+
3333 protected array $ files = [];
3434
3535 protected OutputInterface $ output ;
@@ -60,11 +60,6 @@ protected function configure(): void
6060
6161 /**
6262 * Execute the actual docblock checker.
63- *
64- * @param InputInterface $input
65- * @param OutputInterface $output
66- *
67- * @return int
6863 */
6964 protected function execute (InputInterface $ input , OutputInterface $ output ): int
7065 {
@@ -92,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9287 if (!\is_null ($ exclude )) {
9388 $ this ->exclude = \array_map ('trim ' , \explode (', ' , $ exclude ));
9489 }
95-
90+
9691 // Set up files:
9792 if (!\is_null ($ files )) {
9893 $ this ->files = \array_map ('trim ' , \explode (', ' , $ files ));
@@ -218,7 +213,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
218213 /**
219214 * Iterate through a directory and check all of the PHP files within it.
220215 *
221- * @param string $path
222216 * @param string[] $workList
223217 */
224218 protected function processDirectory (string $ path = '' , array &$ workList = []): void
@@ -232,7 +226,7 @@ protected function processDirectory(string $path = '', array &$workList = []): v
232226
233227 $ itemPath = $ path . $ item ->getFilename ();
234228
235- if (\in_array ($ itemPath , $ this ->exclude )) {
229+ if (\in_array ($ itemPath , $ this ->exclude , true )) {
236230 continue ;
237231 }
238232
@@ -245,11 +239,10 @@ protected function processDirectory(string $path = '', array &$workList = []): v
245239 }
246240 }
247241 }
248-
242+
249243 /**
250244 * Iterate through the files and check them out
251245 *
252- * @param string $path
253246 * @param string[] $files
254247 * @param string[] $workList
255248 */
@@ -258,7 +251,7 @@ protected function processFiles(string $path = '', array $files = [], array &$wo
258251 foreach ($ files as $ item ) {
259252 $ itemPath = $ path . $ item ;
260253
261- if (\in_array ($ itemPath , $ this ->exclude )) {
254+ if (\in_array ($ itemPath , $ this ->exclude , true )) {
262255 continue ;
263256 }
264257
@@ -271,16 +264,14 @@ protected function processFiles(string $path = '', array $files = [], array &$wo
271264 /**
272265 * Check a specific PHP file for errors.
273266 *
274- * @param string $file
275267 *
276- * @return array
277268 */
278269 protected function processFile (string $ file ): array
279270 {
280271 $ result = $ this ->checkerFileProcessor ->processFile ($ file );
281272
282273 $ this ->errors = \array_merge ($ this ->errors , $ result ['errors ' ]);
283- $ this ->warnings = \array_merge ($ this ->warnings , $ result ['warnings ' ]);;
274+ $ this ->warnings = \array_merge ($ this ->warnings , $ result ['warnings ' ]);
284275
285276 if (0 === \count ($ result ['errors ' ])) {
286277 $ this ->passed += 1 ;
0 commit comments