Skip to content

Commit

Permalink
Girlscouting: Use FQN in @param tags and add missing type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 6, 2019
1 parent bd961bb commit bb69ce1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Autoload
/**
* The composer autoloader.
*
* @var Composer\Autoload\ClassLoader
* @var \Composer\Autoload\ClassLoader
*/
private static $composerAutoloader = null;

Expand Down
10 changes: 5 additions & 5 deletions src/Ruleset.php
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,10 @@ private function expandRulesetReference($ref, $rulesetDir, $depth=0)
/**
* Processes a rule from a ruleset XML file, overriding built-in defaults.
*
* @param SimpleXMLElement $rule The rule object from a ruleset XML file.
* @param string[] $newSniffs An array of sniffs that got included by this rule.
* @param int $depth How many nested processing steps we are in.
* This is only used for debug output.
* @param \SimpleXMLElement $rule The rule object from a ruleset XML file.
* @param string[] $newSniffs An array of sniffs that got included by this rule.
* @param int $depth How many nested processing steps we are in.
* This is only used for debug output.
*
* @return void
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If rule settings are invalid.
Expand Down Expand Up @@ -1073,7 +1073,7 @@ private function processRule($rule, $newSniffs, $depth=0)
/**
* Determine if an element should be processed or ignored.
*
* @param SimpleXMLElement $element An object from a ruleset XML file.
* @param \SimpleXMLElement $element An object from a ruleset XML file.
*
* @return bool
*/
Expand Down
10 changes: 5 additions & 5 deletions src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -732,14 +732,14 @@ private function processChildProcs($childProcs)
/**
* Print progress information for a single processed file.
*
* @param File $file The file that was processed.
* @param int $numFiles The total number of files to process.
* @param int $numProcessed The number of files that have been processed,
* including this one.
* @param \PHP_CodeSniffer\Files\File $file The file that was processed.
* @param int $numFiles The total number of files to process.
* @param int $numProcessed The number of files that have been processed,
* including this one.
*
* @return void
*/
public function printProgress($file, $numFiles, $numProcessed)
public function printProgress(File $file, $numFiles, $numProcessed)
{
if (PHP_CODESNIFFER_VERBOSITY > 0
|| $this->config->showProgress === false
Expand Down

0 comments on commit bb69ce1

Please sign in to comment.