Skip to content

Commit f2204b9

Browse files
committed
Merge pull request #517 from aik099/patch-1
Fixed typo in the comment
2 parents 1cd2cf0 + 896f57e commit f2204b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeSniffer/Standards/Squiz/Sniffs/Commenting/InlineCommentSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
257257
return;
258258
}
259259

260-
// If the first chatacter is now uppercase and is not
260+
// If the first character is now uppercase and is not
261261
// a non-letter character, throw an error.
262262
// \p{Lu} : an uppercase letter that has a lowercase variant.
263263
// \P{L} : a non-letter character.
@@ -267,7 +267,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
267267
}
268268

269269
// Only check the end of comment character if the start of the comment
270-
// is a leter, indicating that the comment is just standard text.
270+
// is a letter, indicating that the comment is just standard text.
271271
if (preg_match('/\P{L}/u', $commentText[0]) === 0) {
272272
$commentCloser = $commentText[(strlen($commentText) - 1)];
273273
$acceptedClosers = array(

0 commit comments

Comments
 (0)