Passed
Pull Request — master (#3120)
by
unknown
06:06
created
app/Http/Controllers/AutocompleteController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      *
224 224
      * @return array
225 225
      */
226
-    private function searchGazetteer($query, $limit=10)
226
+    private function searchGazetteer($query, $limit = 10)
227 227
     {
228 228
         $key          = Site::getPreference('opencage');
229 229
         $use_opencage = $key !== '';
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         $client = new Client();
256 256
         try {
257 257
             $json     = $client->get($url, self::GUZZLE_OPTIONS + ['query' => $query])->getBody()->__toString();
258
-            $results  = json_decode($json, false, 512,  JSON_THROW_ON_ERROR);
258
+            $results  = json_decode($json, false, 512, JSON_THROW_ON_ERROR);
259 259
             if ($use_opencage) {
260 260
                 $results = $results->results;
261 261
             }
Please login to merge, or discard this patch.