Skip to content

Commit

Permalink
Add some more type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
exussum12 committed Dec 18, 2018
1 parent 801add3 commit d86c446
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Loaders/Checkstyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ public static function getDescription(): string
return 'Parses a report in checkstyle format';
}

/**
* @param XMLReader $reader
* @param string $currentFile
*/
protected function handleErrors($reader, $currentFile)
protected function handleErrors(XMLReader $reader, string $currentFile)
{
if ($reader->name === "error") {
$this->coveredLines
Expand All @@ -90,12 +86,7 @@ protected function handleErrors($reader, $currentFile)
}
}

/**
* @param XMLReader $reader
* @param string $currentFile
* @return string
*/
protected function handleFile($reader, $currentFile)
protected function handleFile(XMLReader $reader, string $currentFile): string
{
if ((
$reader->name === "file" &&
Expand Down

0 comments on commit d86c446

Please sign in to comment.