Passed
Push — master ( 5a7268...3e6b84 )
by MusikAnimal
02:02
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
 
63 63
         $ret = [
64 64
             'q' => $query,
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
             : $this->getParamsForPlainQuery($query);
143 143
 
144 144
         if (!empty($namespaceIds)) {
145
-            $params['query']['bool']['filter'][] = [ 'terms' => [
145
+            $params['query']['bool']['filter'][] = ['terms' => [
146 146
                 'namespace' => $namespaceIds,
147
-            ] ];
147
+            ]];
148 148
         }
149 149
 
150 150
         $res = $this->makeRequest($params);
@@ -270,9 +270,9 @@  discard block
 block discarded – undo
270 270
             'query' => [
271 271
                 'bool' => [
272 272
                     'filter' => [
273
-                        [ 'match' => [
273
+                        ['match' => [
274 274
                             'source_text.plain' => $query,
275
-                        ] ],
275
+                        ]],
276 276
                     ],
277 277
                 ],
278 278
             ],
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
             'query' => [
309 309
                 'bool' => [
310 310
                     'filter' => [
311
-                        [ 'source_regex' => [
311
+                        ['source_regex' => [
312 312
                             'regex' => $query,
313 313
                             'field' => 'source_text',
314 314
                             'ngram_field' => 'source_text.trigram',
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
                             'max_expand' => 10,
317 317
                             'case_sensitive' => true,
318 318
                             'locale' => 'en',
319
-                        ] ],
319
+                        ]],
320 320
                     ],
321 321
                 ],
322 322
             ],
Please login to merge, or discard this patch.