Skip to content

Drop incorrect parenthesis around PHPDoc type annotations #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Sabberworm/CSS/CSSList/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public function getAllRuleSets()

/**
* Returns all Value objects found recursively in the tree.
* @param (object|string) $mElement
* @param object|string $mElement
* the CSSList or RuleSet to start the search from (defaults to the whole document).
* If a string is given, it is used as rule name filter (@see{RuleSet->getRules()}).
* @param (bool) $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
* If a string is given, it is used as rule name filter (@see RuleSet->getRules()).
* @param bool $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
*/
public function getAllValues($mElement = null, $bSearchInFunctionArguments = false)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Sabberworm/CSS/RuleSet/RuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function setRules(array $aRules)
* like { background-color: green; background-color; rgba(0, 127, 0, 0.7); } will only yield an associative array
* containing the rgba-valued rule while @link{getRules()} would yield an indexed array containing both.
*
* @param (string) $mRule
* @param string $mRule
* pattern to search for. If null, returns all rules. if the pattern ends with a dash,
* all rules starting with the pattern are returned as well as one matching the pattern with the dash
* excluded. passing a Rule behaves like calling getRules($mRule->getRule()).
Expand All @@ -184,7 +184,7 @@ public function getRulesAssoc($mRule = null)
* Note: this is different from pre-v.2.0 behaviour of PHP-CSS-Parser, where passing a Rule instance would
* remove all rules with the same name. To get the old behvaiour, use removeRule($oRule->getRule()).
*
* @param (null|string|Rule) $mRule
* @param null|string|Rule $mRule
* pattern to remove. If $mRule is null, all rules are removed. If the pattern ends in a dash,
* all rules starting with the pattern are removed as well as one matching the pattern with the dash
* excluded. Passing a Rule behaves matches by identity.
Expand Down