Skip to content

Commit 25c7c11

Browse files
committed
Code Style
1 parent bf3b432 commit 25c7c11

File tree

2 files changed

+61
-61
lines changed

2 files changed

+61
-61
lines changed

src/Filters/QueryMatchFilter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class QueryMatchFilter extends AbstractFilter
2121

2222
public function filter($collection): array
2323
{
24-
\preg_match('/^'.static::MATCH_QUERY_OPERATORS.'$/x', $this->token->value, $matches);
24+
\preg_match('/^' . static::MATCH_QUERY_OPERATORS . '$/x', $this->token->value, $matches);
2525

2626
if (!isset($matches[1])) {
2727
throw new RuntimeException('Malformed filter query');
@@ -63,7 +63,7 @@ public function filter($collection): array
6363
$value1 = null;
6464
if (AccessHelper::keyExists($value, $key, $this->magicIsAllowed)) {
6565
$value1 = AccessHelper::getValue($value, $key, $this->magicIsAllowed);
66-
} elseif (str_contains($key, '.')) {
66+
} elseif (\str_contains($key, '.')) {
6767
$value1 = (new JSONPath($value))->find($key)->getData()[0] ?? '';
6868
}
6969
if ($value1) {

0 commit comments

Comments
 (0)