@@ -19,7 +19,7 @@ |
||
| 19 | 19 | throw new ConnectException('Value must be an array of two values with keys 0 and 1.'); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - $this->getSource()->setArray(array_filter($this->getSource()->getArray(), function (IRow $item) use ($colName, $value) { |
|
| 22 | + $this->getSource()->setArray(array_filter($this->getSource()->getArray(), function(IRow $item) use ($colName, $value) { |
|
| 23 | 23 | $itemValue = $item->getValue($colName); |
| 24 | 24 | return $itemValue > $value[0] && $itemValue < $value[1]; |
| 25 | 25 | })); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | public function setFiltering(string $colName, $value) |
| 16 | 16 | { |
| 17 | - $this->getSource()->setArray(array_filter($this->getSource()->getArray(), function (IRow $item) use ($colName, $value) { |
|
| 17 | + $this->getSource()->setArray(array_filter($this->getSource()->getArray(), function(IRow $item) use ($colName, $value) { |
|
| 18 | 18 | return $item->getValue($colName) <= $value; |
| 19 | 19 | })); |
| 20 | 20 | return $this; |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | public function setFiltering(string $colName, $value) |
| 16 | 16 | { |
| 17 | - $this->getSource()->setArray(array_filter($this->getSource()->getArray(), function (IRow $item) use ($colName, $value) { |
|
| 17 | + $this->getSource()->setArray(array_filter($this->getSource()->getArray(), function(IRow $item) use ($colName, $value) { |
|
| 18 | 18 | return $item->getValue($colName) < $value; |
| 19 | 19 | })); |
| 20 | 20 | return $this; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | { |
| 33 | 33 | if ($this->filterFactory && ($this->filterFactory instanceof IFilterFactory)) { |
| 34 | 34 | foreach ($value as list($filterType, $expected)) { |
| 35 | - $subFilter = $this->filterFactory->getFilter($filterType);; |
|
| 35 | + $subFilter = $this->filterFactory->getFilter($filterType); ; |
|
| 36 | 36 | if ($subFilter instanceof IFilterSubs) { |
| 37 | 37 | $subFilter->addFilterFactory($this->filterFactory); |
| 38 | 38 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | public function fetchData(): void |
| 69 | 69 | { |
| 70 | 70 | foreach (array_reverse($this->sorters) as list($colName, $direction)) { |
| 71 | - $dir = IOrder::ORDER_ASC == $direction ? 'asc' : 'desc' ; |
|
| 71 | + $dir = IOrder::ORDER_ASC == $direction ? 'asc' : 'desc'; |
|
| 72 | 72 | $this->queryBuilder->orderBy($colName, $dir); |
| 73 | 73 | } |
| 74 | 74 | $this->rawData = $this->queryBuilder->offset($this->offset)->limit($this->limit)->get(); |