@@ -25,7 +25,7 @@ |
||
25 | 25 | preg_match_all('/{(.+?)}/', $endpoint, $matches); |
26 | 26 | $placeholders = array_combine($matches['0'], $matches['1']); |
27 | 27 | |
28 | - array_walk($params, function ($value, $key) use (&$params) { |
|
28 | + array_walk($params, function($value, $key) use (&$params) { |
|
29 | 29 | $params[$key] = is_array($value) ? json_encode($value) : $value; |
30 | 30 | }); |
31 | 31 |
@@ -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; |