@@ -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 | |