Completed
Pull Request — master (#49)
by Daniel
11:03 queued 08:46
created
lib/Column/PropertyColumn.php 1 patch
Spacing   +3 added lines, -3 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\Column;
6 6
 
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $options->setDefault('property', null);
38 38
         $options->setAllowedTypes('property', ['string', 'null']);
39
-        $options->setNormalizer('property', function (OptionsResolver $options, $value) {
39
+        $options->setNormalizer('property', function(OptionsResolver $options, $value) {
40 40
             if (null !== $value) {
41 41
                 return $value;
42 42
             }
43 43
 
44 44
             return $options['column_name'];
45 45
         });
46
-        $options->setNormalizer('sort_field', function (OptionsResolver $options, $value) {
46
+        $options->setNormalizer('sort_field', function(OptionsResolver $options, $value) {
47 47
             if (null !== $value) {
48 48
                 return $value;
49 49
             }
Please login to merge, or discard this patch.
lib/GridFactoryBuilder.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@  discard block
 block discarded – undo
69 69
         return $this;
70 70
     }
71 71
 
72
+    /**
73
+     * @param string $alias
74
+     */
72 75
     public function addAction(ActionInterface $action, $alias = null): self
73 76
     {
74 77
         $this->actions[$alias] = $action;
@@ -76,6 +79,9 @@  discard block
 block discarded – undo
76 79
         return $this;
77 80
     }
78 81
 
82
+    /**
83
+     * @param string $alias
84
+     */
79 85
     public function addFilter(FilterInterface $filter, $alias = null)
80 86
     {
81 87
         $this->filters[$alias] = $filter;
@@ -83,6 +89,9 @@  discard block
 block discarded – undo
83 89
         return $this;
84 90
     }
85 91
 
92
+    /**
93
+     * @param string $alias
94
+     */
86 95
     public function addColumn(ColumnInterface $column, $alias = null)
87 96
     {
88 97
         $this->columns[$alias] = $column;
Please login to merge, or discard this patch.