Skip to content

Commit c07b4cc

Browse files
committed
Various minor doc fixes
... picked up along the way.
1 parent 0d143c0 commit c07b4cc

File tree

17 files changed

+29
-29
lines changed

17 files changed

+29
-29
lines changed

autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public static function getLoadedClassName($path)
298298
*
299299
* @param string $class The name of the class.
300300
*
301-
* @throws \Exception If the class name has not been loaded
301+
* @throws \Exception If the class name has not been loaded.
302302
* @return string
303303
*/
304304
public static function getLoadedFileName($class)

src/Fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function fixFile()
228228
*
229229
* @return string
230230
*
231-
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException when the diff command fails.
231+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException When the diff command fails.
232232
*/
233233
public function generateDiff($filePath=null, $colors=true)
234234
{

src/Standards/Generic/Sniffs/CodeAnalysis/JumbledIncrementerSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function process(File $phpcsFile, $stackPtr)
101101
* Get all used variables in the incrementer part of a for statement.
102102
*
103103
* @param array<int, array> $tokens Array with all code sniffer tokens.
104-
* @param array<string, mixed> $token Current for loop token
104+
* @param array<string, mixed> $token Current for loop token.
105105
*
106106
* @return string[] List of all found incrementer variables.
107107
*/

src/Standards/Generic/Sniffs/Debug/ClosureLinterSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function register()
6363
* the token was found.
6464
*
6565
* @return int
66-
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jslint.js could not be run
66+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jslint.js could not be run.
6767
*/
6868
public function process(File $phpcsFile, $stackPtr)
6969
{

src/Standards/Generic/Sniffs/Debug/ESLintSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function register()
5454
* the token was found.
5555
*
5656
* @return int
57-
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jshint.js could not be run
57+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jshint.js could not be run.
5858
*/
5959
public function process(File $phpcsFile, $stackPtr)
6060
{

src/Standards/Generic/Sniffs/Debug/JSHintSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function register()
4848
* the token was found.
4949
*
5050
* @return int
51-
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jshint.js could not be run
51+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jshint.js could not be run.
5252
*/
5353
public function process(File $phpcsFile, $stackPtr)
5454
{

src/Standards/Squiz/Sniffs/Classes/SelfMemberReferenceSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
182182
/**
183183
* Returns the declaration names for classes/interfaces/functions with a namespace.
184184
*
185-
* @param array $tokens Token stack for this file
185+
* @param array $tokens Token stack for this file.
186186
* @param int $stackPtr The position where the namespace building will start.
187187
*
188188
* @return string

src/Standards/Squiz/Sniffs/Debug/JSLintSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function register()
4747
* the token was found.
4848
*
4949
* @return int
50-
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jslint.js could not be run
50+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jslint.js could not be run.
5151
*/
5252
public function process(File $phpcsFile, $stackPtr)
5353
{

src/Tokenizers/CSS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CSS extends PHP
2222
*
2323
* Pre-checks the content to see if it looks minified.
2424
*
25-
* @param string $content The content to tokenize,
25+
* @param string $content The content to tokenize.
2626
* @param \PHP_CodeSniffer\Config $config The config data for the run.
2727
* @param string $eolChar The EOL char used in the content.
2828
*

src/Tokenizers/JS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class JS extends Tokenizer
251251
*
252252
* Pre-checks the content to see if it looks minified.
253253
*
254-
* @param string $content The content to tokenize,
254+
* @param string $content The content to tokenize.
255255
* @param \PHP_CodeSniffer\Config $config The config data for the run.
256256
* @param string $eolChar The EOL char used in the content.
257257
*

0 commit comments

Comments
 (0)