Completed
Pull Request — master (#14)
by Daniel
02:08
created
lib/GridOptions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Component\Grid;
6 6
 
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
         }
27 27
 
28 28
         $options = array_merge($defaults, $options);
29
-        $options['orderings'] = array_map(function ($order) {
29
+        $options['orderings'] = array_map(function($order) {
30 30
             $order = strtolower($order);
31 31
 
32
-            if (false === in_array($order, [ 'asc', 'desc' ])) {
32
+            if (false === in_array($order, ['asc', 'desc'])) {
33 33
                 throw new \InvalidArgumentException(sprintf(
34 34
                     'Order must be either "asc" or "desc" got "%s"',
35 35
                     $order
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     public function getFilterActionOptions(): array
76 76
     {
77
-        return array_filter($this->options, function ($key) {
77
+        return array_filter($this->options, function($key) {
78 78
             return $key !== 'filter';
79 79
         }, ARRAY_FILTER_USE_KEY);
80 80
     }
Please login to merge, or discard this patch.