Skip to content

Commit 6dc7e4d

Browse files
committed
Docs: various minor fixes
1 parent 6be2da7 commit 6dc7e4d

File tree

4 files changed

+48
-48
lines changed

4 files changed

+48
-48
lines changed

src/Config.php

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -19,46 +19,46 @@
1919
/**
2020
* Stores the configuration used to run PHPCS and PHPCBF.
2121
*
22-
* @property string[] $files The files and directories to check.
23-
* @property string[] $standards The standards being used for checking.
24-
* @property int $verbosity How verbose the output should be.
25-
* 0: no unnecessary output
26-
* 1: basic output for files being checked
27-
* 2: ruleset and file parsing output
28-
* 3: sniff execution output
29-
* @property bool $interactive Enable interactive checking mode.
30-
* @property int $parallel Check files in parallel.
31-
* @property bool $cache Enable the use of the file cache.
32-
* @property bool $cacheFile A file where the cache data should be written
33-
* @property bool $colors Display colours in output.
34-
* @property bool $explain Explain the coding standards.
35-
* @property bool $local Process local files in directories only (no recursion).
36-
* @property bool $showSources Show sniff source codes in report output.
37-
* @property bool $showProgress Show basic progress information while running.
38-
* @property bool $quiet Quiet mode; disables progress and verbose output.
39-
* @property bool $annotations Process phpcs: annotations.
40-
* @property int $tabWidth How many spaces each tab is worth.
41-
* @property string $encoding The encoding of the files being checked.
42-
* @property string[] $sniffs The sniffs that should be used for checking.
43-
* If empty, all sniffs in the supplied standards will be used.
44-
* @property string[] $exclude The sniffs that should be excluded from checking.
45-
* If empty, all sniffs in the supplied standards will be used.
46-
* @property string[] $ignored Regular expressions used to ignore files and folders during checking.
47-
* @property string $reportFile A file where the report output should be written.
48-
* @property string $generator The documentation generator to use.
49-
* @property string $filter The filter to use for the run.
50-
* @property string[] $bootstrap One of more files to include before the run begins.
51-
* @property int $reportWidth The maximum number of columns that reports should use for output.
52-
* Set to "auto" for have this value changed to the width of the terminal.
53-
* @property int $errorSeverity The minimum severity an error must have to be displayed.
54-
* @property int $warningSeverity The minimum severity a warning must have to be displayed.
55-
* @property bool $recordErrors Record the content of error messages as well as error counts.
56-
* @property string $suffix A suffix to add to fixed files.
57-
* @property string $basepath A file system location to strip from the paths of files shown in reports.
58-
* @property bool $stdin Read content from STDIN instead of supplied files.
59-
* @property string $stdinContent Content passed directly to PHPCS on STDIN.
60-
* @property string $stdinPath The path to use for content passed on STDIN.
61-
* @property bool $trackTime Whether or not to track sniff run time.
22+
* @property string[] $files The files and directories to check.
23+
* @property string[] $standards The standards being used for checking.
24+
* @property int $verbosity How verbose the output should be.
25+
* 0: no unnecessary output
26+
* 1: basic output for files being checked
27+
* 2: ruleset and file parsing output
28+
* 3: sniff execution output
29+
* @property bool $interactive Enable interactive checking mode.
30+
* @property int $parallel Check files in parallel.
31+
* @property bool $cache Enable the use of the file cache.
32+
* @property string $cacheFile Path to the file where the cache data should be written
33+
* @property bool $colors Display colours in output.
34+
* @property bool $explain Explain the coding standards.
35+
* @property bool $local Process local files in directories only (no recursion).
36+
* @property bool $showSources Show sniff source codes in report output.
37+
* @property bool $showProgress Show basic progress information while running.
38+
* @property bool $quiet Quiet mode; disables progress and verbose output.
39+
* @property bool $annotations Process phpcs: annotations.
40+
* @property int $tabWidth How many spaces each tab is worth.
41+
* @property string $encoding The encoding of the files being checked.
42+
* @property string[] $sniffs The sniffs that should be used for checking.
43+
* If empty, all sniffs in the supplied standards will be used.
44+
* @property string[] $exclude The sniffs that should be excluded from checking.
45+
* If empty, all sniffs in the supplied standards will be used.
46+
* @property string[] $ignored Regular expressions used to ignore files and folders during checking.
47+
* @property string $reportFile A file where the report output should be written.
48+
* @property string $generator The documentation generator to use.
49+
* @property string $filter The filter to use for the run.
50+
* @property string[] $bootstrap One of more files to include before the run begins.
51+
* @property int|string $reportWidth The maximum number of columns that reports should use for output.
52+
* Set to "auto" for have this value changed to the width of the terminal.
53+
* @property int $errorSeverity The minimum severity an error must have to be displayed.
54+
* @property int $warningSeverity The minimum severity a warning must have to be displayed.
55+
* @property bool $recordErrors Record the content of error messages as well as error counts.
56+
* @property string $suffix A suffix to add to fixed files.
57+
* @property string $basepath A file system location to strip from the paths of files shown in reports.
58+
* @property bool $stdin Read content from STDIN instead of supplied files.
59+
* @property string $stdinContent Content passed directly to PHPCS on STDIN.
60+
* @property string $stdinPath The path to use for content passed on STDIN.
61+
* @property bool $trackTime Whether or not to track sniff run time.
6262
*
6363
* @property array<string, string> $extensions File extensions that should be checked, and what tokenizer to use.
6464
* E.g., array('inc' => 'PHP');
@@ -169,7 +169,7 @@ class Config
169169
/**
170170
* Command line values that the user has supplied directly.
171171
*
172-
* @var array<string, TRUE>
172+
* @var array<string, true|array<string, true>>
173173
*/
174174
private static $overriddenDefaults = [];
175175

src/Reports/Performance.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class Performance implements Report
2424
* and FALSE if it ignored the file. Returning TRUE indicates that the file and
2525
* its data should be counted in the grand totals.
2626
*
27-
* @param array $report Prepared report data.
28-
* @param \PHP_CodeSniffer\File $phpcsFile The file being reported on.
29-
* @param bool $showSources Show sources?
30-
* @param int $width Maximum allowed line width.
27+
* @param array $report Prepared report data.
28+
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on.
29+
* @param bool $showSources Show sources?
30+
* @param int $width Maximum allowed line width.
3131
*
3232
* @return bool
3333
*/

src/Ruleset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Ruleset
8888
* The key is the token name being listened for and the value
8989
* is the sniff object.
9090
*
91-
* @var array<int, \PHP_CodeSniffer\Sniffs\Sniff>
91+
* @var array<int, array<string, array<string, mixed>>>
9292
*/
9393
public $tokenListeners = [];
9494

src/Util/Timing.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function startTiming()
4343
/**
4444
* Get the duration of the run up to "now".
4545
*
46-
* @return int Duration in microseconds.
46+
* @return float Duration in microseconds.
4747
*/
4848
public static function getDuration()
4949
{
@@ -60,7 +60,7 @@ public static function getDuration()
6060
/**
6161
* Convert a duration in microseconds to a human readable duration string.
6262
*
63-
* @param int $duration Duration in microseconds.
63+
* @param float $duration Duration in microseconds.
6464
*
6565
* @return string
6666
*/

0 commit comments

Comments
 (0)