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
7979 return [2 , 0 ];
8080 case 'n ' === $ joined :
8181 return [1 , 0 ];
82- case false === strpos ($ joined , 'n ' ):
82+ case ! str_contains ($ joined , 'n ' ):
8383 return [0 , $ int ($ joined )];
8484 }
8585
Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ public function __construct(ParserInterface $parser = null)
6363
6464 public static function getXpathLiteral (string $ element ): string
6565 {
66- if (false === strpos ($ element , "' " )) {
66+ if (! str_contains ($ element , "' " )) {
6767 return "' " .$ element ."' " ;
6868 }
6969
70- if (false === strpos ($ element , '" ' )) {
70+ if (! str_contains ($ element , '" ' )) {
7171 return '" ' .$ element .'" ' ;
7272 }
7373
You can’t perform that action at this time.
0 commit comments