Skip to content

Commit 7c5de87

Browse files
authored
[CLEANUP] Avoid Hungarian notation for element (#918)
Part of #756
1 parent 7d75688 commit 7c5de87

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
@@ -68,7 +68,7 @@ public function getAllRuleSets(): array
6868
/**
6969
* Returns all `Value` objects found recursively in `Rule`s in the tree.
7070
*
71-
* @param CSSList|RuleSet|string $mElement
71+
* @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.
7474
* @param bool $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
@@ -77,18 +77,18 @@ public function getAllRuleSets(): array
7777
*
7878
* @see RuleSet->getRules()
7979
*/
80-
public function getAllValues($mElement = null, $bSearchInFunctionArguments = false): array
80+
public function getAllValues($element = null, $bSearchInFunctionArguments = false): array
8181
{
8282
$sSearchString = null;
83-
if ($mElement === null) {
84-
$mElement = $this;
85-
} elseif (\is_string($mElement)) {
86-
$sSearchString = $mElement;
87-
$mElement = $this;
83+
if ($element === null) {
84+
$element = $this;
85+
} elseif (\is_string($element)) {
86+
$sSearchString = $element;
87+
$element = $this;
8888
}
8989
/** @var array<int, Value> $aResult */
9090
$aResult = [];
91-
$this->allValues($mElement, $aResult, $sSearchString, $bSearchInFunctionArguments);
91+
$this->allValues($element, $aResult, $sSearchString, $bSearchInFunctionArguments);
9292
return $aResult;
9393
}
9494

0 commit comments

Comments
 (0)