Completed
Pull Request — master (#1677)
by Sun
02:38
created
src/Grid/Filter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     {
184 184
         $inputs = array_dot(Input::all());
185 185
 
186
-        $inputs = array_filter($inputs, function ($input) {
186
+        $inputs = array_filter($inputs, function($input) {
187 187
             return $input !== '' && !is_null($input);
188 188
         });
189 189
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     public function __call($method, $arguments)
264 264
     {
265 265
         if (in_array($method, $this->supports)) {
266
-            $className = '\\Encore\\Admin\\Grid\\Filter\\' . ucfirst($method);
266
+            $className = '\\Encore\\Admin\\Grid\\Filter\\'.ucfirst($method);
267 267
 
268 268
             return $this->addFilter(new $className(...$arguments));
269 269
         }
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         Admin::script($script);
307 307
 
308 308
         return view($this->view)->with([
309
-            'action'  => $this->action ? : $this->urlWithoutFilters(),
309
+            'action'  => $this->action ?: $this->urlWithoutFilters(),
310 310
             'filters' => $this->filters,
311 311
         ]);
312 312
     }
@@ -331,8 +331,8 @@  discard block
 block discarded – undo
331 331
         $query = $request->query();
332 332
         array_forget($query, $columns);
333 333
 
334
-        $question = $request->getBaseUrl() . $request->getPathInfo() == '/' ? '/?' : '?';
334
+        $question = $request->getBaseUrl().$request->getPathInfo() == '/' ? '/?' : '?';
335 335
 
336
-        return count($request->query()) > 0 ? $request->url() . $question . http_build_query($query) : $request->fullUrl();
336
+        return count($request->query()) > 0 ? $request->url().$question.http_build_query($query) : $request->fullUrl();
337 337
     }
338 338
 }
Please login to merge, or discard this patch.