File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public static function parseSeries(array $tokens): array
79
79
return [2 , 0 ];
80
80
case 'n ' === $ joined :
81
81
return [1 , 0 ];
82
- case false === strpos ($ joined , 'n ' ):
82
+ case ! str_contains ($ joined , 'n ' ):
83
83
return [0 , $ int ($ joined )];
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ public function __construct(ParserInterface $parser = null)
63
63
64
64
public static function getXpathLiteral (string $ element ): string
65
65
{
66
- if (false === strpos ($ element , "' " )) {
66
+ if (! str_contains ($ element , "' " )) {
67
67
return "' " .$ element ."' " ;
68
68
}
69
69
70
- if (false === strpos ($ element , '" ' )) {
70
+ if (! str_contains ($ element , '" ' )) {
71
71
return '" ' .$ element .'" ' ;
72
72
}
73
73
You can’t perform that action at this time.
0 commit comments