Skip to content

Commit b5b3492

Browse files
committed
[CLEANUP] Avoid Hungarian notation in Document
Part of #756
1 parent 6cb27fa commit b5b3492

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
@@ -71,24 +71,24 @@ public function getAllRuleSets(): array
7171
* @param CSSList|RuleSet|string $element
7272
* the `CSSList` or `RuleSet` to start the search from (defaults to the whole document).
7373
* If a string is given, it is used as rule name filter.
74-
* @param bool $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
74+
* @param bool $searchInFunctionArguments whether to also return Value objects used as Function arguments.
7575
*
7676
* @return array<int, Value>
7777
*
7878
* @see RuleSet->getRules()
7979
*/
80-
public function getAllValues($element = null, $bSearchInFunctionArguments = false): array
80+
public function getAllValues($element = null, $searchInFunctionArguments = false): array
8181
{
82-
$sSearchString = null;
82+
$searchString = null;
8383
if ($element === null) {
8484
$element = $this;
8585
} elseif (\is_string($element)) {
86-
$sSearchString = $element;
86+
$searchString = $element;
8787
$element = $this;
8888
}
8989
/** @var array<int, Value> $result */
9090
$result = [];
91-
$this->allValues($element, $result, $sSearchString, $bSearchInFunctionArguments);
91+
$this->allValues($element, $result, $searchString, $searchInFunctionArguments);
9292
return $result;
9393
}
9494

@@ -98,18 +98,18 @@ public function getAllValues($element = null, $bSearchInFunctionArguments = fals
9898
* Note that this does not yield the full `DeclarationBlock` that the selector belongs to
9999
* (and, currently, there is no way to get to that).
100100
*
101-
* @param string|null $sSpecificitySearch
101+
* @param string|null $specificitySearch
102102
* An optional filter by specificity.
103103
* May contain a comparison operator and a number or just a number (defaults to "==").
104104
*
105105
* @return array<int, Selector>
106106
* @example `getSelectorsBySpecificity('>= 100')`
107107
*/
108-
public function getSelectorsBySpecificity($sSpecificitySearch = null): array
108+
public function getSelectorsBySpecificity($specificitySearch = null): array
109109
{
110110
/** @var array<int, Selector> $result */
111111
$result = [];
112-
$this->allSelectors($result, $sSpecificitySearch);
112+
$this->allSelectors($result, $specificitySearch);
113113
return $result;
114114
}
115115

0 commit comments

Comments
 (0)