Passed
Push — master ( 1f0f1a...6cc7a8 )
by MusikAnimal
01:56
created
src/Controller/DefaultController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
             return $this->render('default/splash.html.twig');
53 53
         }
54 54
         $query = $request->query->get('q');
55
-        $regex = (bool)$request->query->get('regex');
55
+        $regex = (bool) $request->query->get('regex');
56 56
         [$namespaces, $namespaceIds] = $this->parseNamespaces($request);
57
-        $purgeCache = (bool)$request->query->get('purge');
57
+        $purgeCache = (bool) $request->query->get('purge');
58 58
         $ret = [
59 59
             'q' => $query,
60 60
             'regex' => $regex,
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
             : $this->getParamsForPlainQuery($query);
125 125
 
126 126
         if (!empty($namespaceIds)) {
127
-            $params['query']['bool']['filter'][] = [ 'terms' => [
127
+            $params['query']['bool']['filter'][] = ['terms' => [
128 128
                 'namespace' => $namespaceIds,
129
-            ] ];
129
+            ]];
130 130
         }
131 131
 
132 132
         $res = $this->makeRequest($params);
@@ -265,9 +265,9 @@  discard block
 block discarded – undo
265 265
             'query' => [
266 266
                 'bool' => [
267 267
                     'filter' => [
268
-                        [ 'match' => [
268
+                        ['match' => [
269 269
                             'source_text.plain' => $query,
270
-                        ] ],
270
+                        ]],
271 271
                     ],
272 272
                 ],
273 273
             ],
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
             'query' => [
304 304
                 'bool' => [
305 305
                     'filter' => [
306
-                        [ 'source_regex' => [
306
+                        ['source_regex' => [
307 307
                             'regex' => $query,
308 308
                             'field' => 'source_text',
309 309
                             'ngram_field' => 'source_text.trigram',
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
                             'max_expand' => 10,
312 312
                             'case_sensitive' => true,
313 313
                             'locale' => 'en',
314
-                        ] ],
314
+                        ]],
315 315
                     ],
316 316
                 ],
317 317
             ],
Please login to merge, or discard this patch.