File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,6 @@ parameters:
18
18
count : 1
19
19
path : ../src/CSSList/CSSList.php
20
20
21
- -
22
- message : ' #^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#'
23
- identifier : ternary.shortNotAllowed
24
- count : 1
25
- path : ../src/CSSList/CSSList.php
26
-
27
21
-
28
22
message : ' #^Parameters should have "string\|null" types as the only types passed to this method$#'
29
23
identifier : typePerfect.narrowPublicClassMethodParamType
Original file line number Diff line number Diff line change @@ -242,8 +242,11 @@ private static function parseAtRule(ParserState $parserState): ?CSSListItem
242
242
*/
243
243
private static function identifierIs (string $ identifier , string $ match ): bool
244
244
{
245
- return (\strcasecmp ($ identifier , $ match ) === 0 )
246
- ?: \preg_match ("/^(- \\w+-)? $ match$/i " , $ identifier ) === 1 ;
245
+ if (\strcasecmp ($ identifier , $ match ) === 0 ) {
246
+ return true ;
247
+ }
248
+
249
+ return \preg_match ("/^(- \\w+-)? $ match$/i " , $ identifier ) === 1 ;
247
250
}
248
251
249
252
/**
You can’t perform that action at this time.
0 commit comments