Skip to content

Commit 8f8fe75

Browse files
authored
[CLEANUP] Avoid Hungarian notation in Document (#929)
Part of #756
1 parent 15f7a93 commit 8f8fe75

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/CSSList/Document.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,24 @@ public function getAllRuleSets(): array
6363
* @param CSSList|RuleSet|string $element
6464
* the `CSSList` or `RuleSet` to start the search from (defaults to the whole document).
6565
* If a string is given, it is used as rule name filter.
66-
* @param bool $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
66+
* @param bool $searchInFunctionArguments whether to also return Value objects used as Function arguments.
6767
*
6868
* @return array<int, Value>
6969
*
7070
* @see RuleSet->getRules()
7171
*/
72-
public function getAllValues($element = null, $bSearchInFunctionArguments = false): array
72+
public function getAllValues($element = null, $searchInFunctionArguments = false): array
7373
{
74-
$sSearchString = null;
74+
$searchString = null;
7575
if ($element === null) {
7676
$element = $this;
7777
} elseif (\is_string($element)) {
78-
$sSearchString = $element;
78+
$searchString = $element;
7979
$element = $this;
8080
}
8181
/** @var array<int, Value> $result */
8282
$result = [];
83-
$this->allValues($element, $result, $sSearchString, $bSearchInFunctionArguments);
83+
$this->allValues($element, $result, $searchString, $searchInFunctionArguments);
8484
return $result;
8585
}
8686

@@ -90,18 +90,18 @@ public function getAllValues($element = null, $bSearchInFunctionArguments = fals
9090
* Note that this does not yield the full `DeclarationBlock` that the selector belongs to
9191
* (and, currently, there is no way to get to that).
9292
*
93-
* @param string|null $sSpecificitySearch
93+
* @param string|null $specificitySearch
9494
* An optional filter by specificity.
9595
* May contain a comparison operator and a number or just a number (defaults to "==").
9696
*
9797
* @return array<int, Selector>
9898
* @example `getSelectorsBySpecificity('>= 100')`
9999
*/
100-
public function getSelectorsBySpecificity($sSpecificitySearch = null): array
100+
public function getSelectorsBySpecificity($specificitySearch = null): array
101101
{
102102
/** @var array<int, Selector> $result */
103103
$result = [];
104-
$this->allSelectors($result, $sSpecificitySearch);
104+
$this->allSelectors($result, $specificitySearch);
105105
return $result;
106106
}
107107

0 commit comments

Comments
 (0)