Skip to content

Commit ee9a90c

Browse files
committed
Remove unused variables
1 parent 5c9a3dc commit ee9a90c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/XPathFilter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static function filterXPathFunction(string $xpathExpression, array $allow
7373
* All functions must match a string on a list of allowed function names
7474
*/
7575
$matches = [];
76-
$res = preg_match_all(
76+
preg_match_all(
7777
/**
7878
* Function names are lower-case alpha (i.e. [a-z]) and can contain one or more hyphens,
7979
* but cannot start or end with a hyphen. To match this, we start with matching one or more
@@ -126,7 +126,7 @@ public static function filterXPathAxis(string $xpathExpression, array $allowedAx
126126
* All axes must match a string on a list of allowed axis names
127127
*/
128128
$matches = [];
129-
$res = preg_match_all(
129+
preg_match_all(
130130
/**
131131
* We use the same rules for matching Axis names as we do for function names.
132132
* The only difference is that we match the '::' instead of the '('

0 commit comments

Comments
 (0)