Skip to content

Commit bb69ce1

Browse files
committed
Girlscouting: Use FQN in @param tags and add missing type declaration
1 parent bd961bb commit bb69ce1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Autoload
2323
/**
2424
* The composer autoloader.
2525
*
26-
* @var Composer\Autoload\ClassLoader
26+
* @var \Composer\Autoload\ClassLoader
2727
*/
2828
private static $composerAutoloader = null;
2929

src/Ruleset.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -836,10 +836,10 @@ private function expandRulesetReference($ref, $rulesetDir, $depth=0)
836836
/**
837837
* Processes a rule from a ruleset XML file, overriding built-in defaults.
838838
*
839-
* @param SimpleXMLElement $rule The rule object from a ruleset XML file.
840-
* @param string[] $newSniffs An array of sniffs that got included by this rule.
841-
* @param int $depth How many nested processing steps we are in.
842-
* This is only used for debug output.
839+
* @param \SimpleXMLElement $rule The rule object from a ruleset XML file.
840+
* @param string[] $newSniffs An array of sniffs that got included by this rule.
841+
* @param int $depth How many nested processing steps we are in.
842+
* This is only used for debug output.
843843
*
844844
* @return void
845845
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If rule settings are invalid.
@@ -1073,7 +1073,7 @@ private function processRule($rule, $newSniffs, $depth=0)
10731073
/**
10741074
* Determine if an element should be processed or ignored.
10751075
*
1076-
* @param SimpleXMLElement $element An object from a ruleset XML file.
1076+
* @param \SimpleXMLElement $element An object from a ruleset XML file.
10771077
*
10781078
* @return bool
10791079
*/

src/Runner.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,14 +732,14 @@ private function processChildProcs($childProcs)
732732
/**
733733
* Print progress information for a single processed file.
734734
*
735-
* @param File $file The file that was processed.
736-
* @param int $numFiles The total number of files to process.
737-
* @param int $numProcessed The number of files that have been processed,
738-
* including this one.
735+
* @param \PHP_CodeSniffer\Files\File $file The file that was processed.
736+
* @param int $numFiles The total number of files to process.
737+
* @param int $numProcessed The number of files that have been processed,
738+
* including this one.
739739
*
740740
* @return void
741741
*/
742-
public function printProgress($file, $numFiles, $numProcessed)
742+
public function printProgress(File $file, $numFiles, $numProcessed)
743743
{
744744
if (PHP_CODESNIFFER_VERBOSITY > 0
745745
|| $this->config->showProgress === false

0 commit comments

Comments
 (0)