Passed
Push — master ( 203fba...eb9b99 )
by MusikAnimal
02:12
created
src/Controller/DefaultController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
             return $this->render('jumbotron.html.twig');
57 57
         }
58 58
         $query = $request->query->get('q');
59
-        $regex = (bool)$request->query->get('regex');
59
+        $regex = (bool) $request->query->get('regex');
60 60
         [$namespaces, $namespaceIds] = $this->parseNamespaces($request);
61
-        $purgeCache = (bool)$request->query->get('purge');
61
+        $purgeCache = (bool) $request->query->get('purge');
62 62
         $ret = [
63 63
             'q' => $query,
64 64
             'regex' => $regex,
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
             : $this->getParamsForPlainQuery($query);
129 129
 
130 130
         if (!empty($namespaceIds)) {
131
-            $params['query']['bool']['filter'][] = [ 'terms' => [
131
+            $params['query']['bool']['filter'][] = ['terms' => [
132 132
                 'namespace' => $namespaceIds,
133
-            ] ];
133
+            ]];
134 134
         }
135 135
 
136 136
         $res = $this->makeRequest($params);
@@ -260,9 +260,9 @@  discard block
 block discarded – undo
260 260
             'query' => [
261 261
                 'bool' => [
262 262
                     'filter' => [
263
-                        [ 'match' => [
263
+                        ['match' => [
264 264
                             'source_text.plain' => $query,
265
-                        ] ],
265
+                        ]],
266 266
                     ],
267 267
                 ],
268 268
             ],
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
             'query' => [
299 299
                 'bool' => [
300 300
                     'filter' => [
301
-                        [ 'source_regex' => [
301
+                        ['source_regex' => [
302 302
                             'regex' => $query,
303 303
                             'field' => 'source_text',
304 304
                             'ngram_field' => 'source_text.trigram',
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
                             'max_expand' => 10,
307 307
                             'case_sensitive' => true,
308 308
                             'locale' => 'en',
309
-                        ] ],
309
+                        ]],
310 310
                     ],
311 311
                 ],
312 312
             ],
Please login to merge, or discard this patch.