Skip to content

Commit 444361c

Browse files
authored
Merge pull request MyIntervals#235 from oliverklee/cleanup/types-parenthesis
Drop incorrect parenthesis around PHPDoc type annotations
2 parents c01ca4b + 21f4d2e commit 444361c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/Sabberworm/CSS/CSSList/Document.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public function getAllRuleSets()
6363

6464
/**
6565
* Returns all Value objects found recursively in the tree.
66-
* @param (object|string) $mElement
66+
* @param object|string $mElement
6767
* the CSSList or RuleSet to start the search from (defaults to the whole document).
68-
* If a string is given, it is used as rule name filter (@see{RuleSet->getRules()}).
69-
* @param (bool) $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
68+
* If a string is given, it is used as rule name filter (@see RuleSet->getRules()).
69+
* @param bool $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
7070
*/
7171
public function getAllValues($mElement = null, $bSearchInFunctionArguments = false)
7272
{

lib/Sabberworm/CSS/RuleSet/RuleSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function setRules(array $aRules)
161161
* like { background-color: green; background-color; rgba(0, 127, 0, 0.7); } will only yield an associative array
162162
* containing the rgba-valued rule while @link{getRules()} would yield an indexed array containing both.
163163
*
164-
* @param (string) $mRule
164+
* @param string $mRule
165165
* pattern to search for. If null, returns all rules. if the pattern ends with a dash,
166166
* all rules starting with the pattern are returned as well as one matching the pattern with the dash
167167
* excluded. passing a Rule behaves like calling getRules($mRule->getRule()).
@@ -184,7 +184,7 @@ public function getRulesAssoc($mRule = null)
184184
* Note: this is different from pre-v.2.0 behaviour of PHP-CSS-Parser, where passing a Rule instance would
185185
* remove all rules with the same name. To get the old behvaiour, use removeRule($oRule->getRule()).
186186
*
187-
* @param (null|string|Rule) $mRule
187+
* @param null|string|Rule $mRule
188188
* pattern to remove. If $mRule is null, all rules are removed. If the pattern ends in a dash,
189189
* all rules starting with the pattern are removed as well as one matching the pattern with the dash
190190
* excluded. Passing a Rule behaves matches by identity.

0 commit comments

Comments
 (0)