Skip to content

Commit 0d43c78

Browse files
authored
[TASK] Fix typos in comments and names and improve some comments (#667)
1 parent 43b0247 commit 0d43c78

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/CSSList/CSSList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ public function insertBefore($item, $sibling): void
306306
* Removes an item from the CSS list.
307307
*
308308
* @param RuleSet|Import|Charset|CSSList $oItemToRemove
309-
* May be a RuleSet (most likely a DeclarationBlock), a Import,
310-
* a Charset or another CSSList (most likely a MediaQuery)
309+
* May be a `RuleSet` (most likely a `DeclarationBlock`), an `Import`,
310+
* a `Charset` or another `CSSList` (most likely a `MediaQuery`)
311311
*
312312
* @return bool whether the item was removed
313313
*/

src/Value/Value.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private static function parseUnicodeRangeValue(ParserState $oParserState): strin
200200
$oParserState->consume('U+');
201201
do {
202202
if ($oParserState->comes('-')) {
203-
$iCodepointMaxLength = 13; // Max length is 2 six digit code points + the dash(-) between them
203+
$iCodepointMaxLength = 13; // Max length is 2 six-digit code points + the dash(-) between them
204204
}
205205
$sRange .= $oParserState->consume(1);
206206
} while (\strlen($sRange) < $iCodepointMaxLength && \preg_match('/[A-Fa-f0-9\\?-]/', $oParserState->peek()));

tests/CSSList/AtRuleBlockListTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function provideMinWidthMediaRule(): array
2828
/**
2929
* @return array<string, array{0: string}>
3030
*/
31-
public static function provideSyntacticlyCorrectAtRule(): array
31+
public static function provideSyntacticallyCorrectAtRule(): array
3232
{
3333
return [
3434
'media print' => ['@media print { html { background: white; color: black; } }'],
@@ -107,9 +107,9 @@ public function parsesArgumentsOfMediaQueries(string $css): void
107107
* @test
108108
*
109109
* @dataProvider provideMinWidthMediaRule
110-
* @dataProvider provideSyntacticlyCorrectAtRule
110+
* @dataProvider provideSyntacticallyCorrectAtRule
111111
*/
112-
public function parsesSyntacticlyCorrectAtRuleInStrictMode(string $css): void
112+
public function parsesSyntacticallyCorrectAtRuleInStrictMode(string $css): void
113113
{
114114
$contents = (new Parser($css, Settings::create()->beStrict()))->parse()->getContents();
115115

tests/CSSList/DocumentTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function setContentsReplacesContentsSetInPreviousCall(): void
8989
/**
9090
* @test
9191
*/
92-
public function insertContentBeforeInsertsContentBeforeSibbling(): void
92+
public function insertContentBeforeInsertsContentBeforeSibling(): void
9393
{
9494
$bogusOne = new DeclarationBlock();
9595
$bogusOne->setSelectors('.bogus-one');
@@ -115,7 +115,7 @@ public function insertContentBeforeInsertsContentBeforeSibbling(): void
115115
/**
116116
* @test
117117
*/
118-
public function insertContentBeforeAppendsIfSibblingNotFound(): void
118+
public function insertContentBeforeAppendsIfSiblingNotFound(): void
119119
{
120120
$bogusOne = new DeclarationBlock();
121121
$bogusOne->setSelectors('.bogus-one');

tests/ParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function files(): void
7171
}
7272
if (\strpos($sFileName, '-') === 0) {
7373
// Either a file which SHOULD fail (at least in strict mode)
74-
// or a future test of a as-of-now missing feature
74+
// or a future test of an as-of-now missing feature
7575
continue;
7676
}
7777
$oParser = new Parser(\file_get_contents($sDirectory . '/' . $sFileName));

0 commit comments

Comments
 (0)