@@ -25,13 +25,13 @@ |
||
25 | 25 | { |
26 | 26 | if (preg_match_all(static::$tagsPattern, mb_strtolower($text), $matches)) { |
27 | 27 | |
28 | - $tags = array_filter($matches['1'], function ($tag) use ($minLength) { |
|
28 | + $tags = array_filter($matches['1'], function($tag) use ($minLength) { |
|
29 | 29 | if ($minLength === false || is_int($minLength) && mb_strlen($tag) >= $minLength) { |
30 | 30 | return true; |
31 | 31 | } |
32 | 32 | }); |
33 | 33 | |
34 | - return array_values(array_unique($tags))?:null; |
|
34 | + return array_values(array_unique($tags)) ?: null; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | return null; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'query_hash' => $queryHash, |
51 | 51 | 'variables' => [ |
52 | 52 | 'tag_name' => $tagName, |
53 | - 'first' => $first?:rand(2, 11), |
|
53 | + 'first' => $first ?: rand(2, 11), |
|
54 | 54 | 'after' => $after, |
55 | 55 | ], |
56 | 56 | ]); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | preg_match_all('/{(.+?)}/', $endpoint, $matches); |
62 | 62 | $placeholders = array_combine($matches['0'], $matches['1']); |
63 | 63 | |
64 | - array_walk($params, function ($value, $key) use (&$params) { |
|
64 | + array_walk($params, function($value, $key) use (&$params) { |
|
65 | 65 | $params[$key] = is_array($value) ? json_encode($value) : $value; |
66 | 66 | }); |
67 | 67 |