Skip to content

Commit 18e364b

Browse files
Merge pull request #160 from studiomado/feature/improve_code_filter_class
improved code into filter class
2 parents 675d8cc + 4ee4bef commit 18e364b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Mado/QueryBundle/Objects/Filter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class Filter
1010

1111
private $operator;
1212

13+
private $path;
14+
1315
public static function box(array $params)
1416
{
1517
$rawIds = $params['ids'];
@@ -94,9 +96,7 @@ public function getField()
9496
{
9597
$explodedPath = explode('|', $this->getFieldAndOperator());
9698

97-
$field = $explodedPath[0];
98-
99-
return $field;
99+
return $explodedPath[0];
100100
}
101101

102102
public static function fromQueryStringFilter(array $params)

0 commit comments

Comments
 (0)