Completed
Push — master ( 3e8f50...f3441e )
by Daniel
07:03 queued 04:22
created
lib/Metadata/ClassMetadata.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
 {
10 10
     private $grids;
11 11
 
12
+    /**
13
+     * @param string $name
14
+     */
12 15
     public function __construct($name, array $grids)
13 16
     {
14 17
         parent::__construct($name);
Please login to merge, or discard this 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\Metadata;
6 6
 
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
     {
18 18
         parent::__construct($name);
19 19
 
20
-        array_map(function (GridMetadata $grid) {
20
+        array_map(function(GridMetadata $grid) {
21 21
             $grid->attachClassMetadata($this);
22 22
         }, $grids);
23
-        array_map(function (QueryMetadata $query) {
23
+        array_map(function(QueryMetadata $query) {
24 24
         }, $queries);
25 25
 
26 26
         $this->grids = $grids;
Please login to merge, or discard this patch.
lib/Metadata/GridMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Cell;
6 6
 
Please login to merge, or discard this patch.
lib/Metadata/FilterMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Cell;
6 6
 
Please login to merge, or discard this patch.
lib/FilterRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Cell;
6 6
 
Please login to merge, or discard this patch.
lib/Filter/BooleanFilterData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Cell;
6 6
 
Please login to merge, or discard this patch.
lib/Filter/StringFilterData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Cell;
6 6
 
Please login to merge, or discard this patch.
lib/Filter/BooleanFilter.php 1 patch
Spacing   +2 added lines, -2 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\Filter;
6 6
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function configureOptions(OptionsResolver $options)
50 50
     {
51 51
         $options->setDefault('data_class', StringFilterData::class);
52
-        $options->setDefault('empty_data', function (FormInterface $form) {
52
+        $options->setDefault('empty_data', function(FormInterface $form) {
53 53
             return new BooleanFilterData(
54 54
                 $form->get('value')->getData()
55 55
             );
Please login to merge, or discard this patch.
lib/Filter/StringFilter.php 2 patches
Spacing   +8 added lines, -8 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\Filter;
6 6
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $options->setDefault('comparators', array_keys(self::$comparatorMap));
79 79
         $options->setDefault('data_class', StringFilterData::class);
80
-        $options->setDefault('empty_data', function (FormInterface $form) {
80
+        $options->setDefault('empty_data', function(FormInterface $form) {
81 81
             return new StringFilterData(
82 82
                 $form->get('comparator')->getData(),
83 83
                 $form->get('value')->getData()
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
 
88 88
     private function getChoices(array $supportedComparators, array $enabledComparators)
89 89
     {
90
-        $supported = array_keys(array_filter(self::$comparatorMap, function ($comparator) use ($supportedComparators) {
90
+        $supported = array_keys(array_filter(self::$comparatorMap, function($comparator) use ($supportedComparators) {
91 91
             return in_array($comparator, $supportedComparators);
92 92
         }));
93 93
 
94
-        $supported = array_filter($supported, function ($comparator) use ($enabledComparators) {
94
+        $supported = array_filter($supported, function($comparator) use ($enabledComparators) {
95 95
             return in_array($comparator, $enabledComparators);
96 96
         });
97 97
 
@@ -108,13 +108,13 @@  discard block
 block discarded – undo
108 108
             case self::TYPE_NOT_EMPTY:
109 109
                 return null;
110 110
             case self::TYPE_CONTAINS:
111
-                return '%' . $value . '%';
111
+                return '%'.$value.'%';
112 112
             case self::TYPE_NOT_CONTAINS:
113
-                return '%' . $value . '%';
113
+                return '%'.$value.'%';
114 114
             case self::TYPE_STARTS_WITH:
115
-                return $value . '%';
115
+                return $value.'%';
116 116
             case self::TYPE_ENDS_WITH:
117
-                return '%' . $value;
117
+                return '%'.$value;
118 118
             case self::TYPE_IN:
119 119
                 return array_map('trim', explode(',', $value));
120 120
             case self::TYPE_NOT_IN:
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
 use Psi\Component\Grid\FilterDataInterface;
8 8
 use Psi\Component\Grid\FilterInterface;
9
-use Psi\Component\ObjectAgent\Capabilities;
10 9
 use Psi\Component\ObjectAgent\Query\Comparison;
11 10
 use Psi\Component\ObjectAgent\Query\Expression;
12 11
 use Psi\Component\ObjectAgent\Query\Query;
Please login to merge, or discard this patch.
lib/Filter/NumberFilter.php 2 patches
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\Filter;
6 6
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $options->setDefault('comparators', self::$validComparators);
67 67
         $options->setDefault('data_class', StringFilterData::class);
68
-        $options->setDefault('empty_data', function (FormInterface $form) {
68
+        $options->setDefault('empty_data', function(FormInterface $form) {
69 69
             return new StringFilterData(
70 70
                 $form->get('comparator')->getData(),
71 71
                 $form->get('value')->getData()
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
 
76 76
     private function getChoices(array $supportedComparators, array $enabledComparators)
77 77
     {
78
-        $supported = array_filter(self::$validComparators, function ($comparator) use ($supportedComparators) {
78
+        $supported = array_filter(self::$validComparators, function($comparator) use ($supportedComparators) {
79 79
             return in_array($comparator, $supportedComparators);
80 80
         });
81 81
 
82
-        $supported = array_filter($supported, function ($comparator) use ($enabledComparators) {
82
+        $supported = array_filter($supported, function($comparator) use ($enabledComparators) {
83 83
             return in_array($comparator, $enabledComparators);
84 84
         });
85 85
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
 use Psi\Component\Grid\FilterDataInterface;
8 8
 use Psi\Component\Grid\FilterInterface;
9
-use Psi\Component\ObjectAgent\Capabilities;
10 9
 use Psi\Component\ObjectAgent\Query\Comparison;
11 10
 use Psi\Component\ObjectAgent\Query\Expression;
12 11
 use Psi\Component\ObjectAgent\Query\Query;
Please login to merge, or discard this patch.