@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function setFiltering($colName, $value) |
| 21 | 21 | { |
| 22 | - $this->dataSource->setArray(array_filter($this->dataSource->getArray(), function (IRow $item) use ($colName, $value) { |
|
| 22 | + $this->dataSource->setArray(array_filter($this->dataSource->getArray(), function(IRow $item) use ($colName, $value) { |
|
| 23 | 23 | return $item->getValue($colName) == $value; |
| 24 | 24 | })); |
| 25 | 25 | return $this; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function setFiltering($colName, $value) |
| 21 | 21 | { |
| 22 | - $this->dataSource->setArray(array_filter($this->dataSource->getArray(), function (IRow $item) use ($colName, $value) { |
|
| 22 | + $this->dataSource->setArray(array_filter($this->dataSource->getArray(), function(IRow $item) use ($colName, $value) { |
|
| 23 | 23 | return $item->getValue($colName) <= $value; |
| 24 | 24 | })); |
| 25 | 25 | return $this; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function setFiltering($colName, $value) |
| 21 | 21 | { |
| 22 | - $this->dataSource->setArray(array_filter($this->dataSource->getArray(), function (IRow $item) use ($colName, $value) { |
|
| 22 | + $this->dataSource->setArray(array_filter($this->dataSource->getArray(), function(IRow $item) use ($colName, $value) { |
|
| 23 | 23 | return $item->getValue($colName) > $value; |
| 24 | 24 | })); |
| 25 | 25 | return $this; |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | public function fetchData(): void |
| 73 | 73 | { |
| 74 | 74 | foreach (array_reverse($this->sorters) as list($colName, $direction)) { |
| 75 | - $dir = IOrder::ORDER_ASC == $direction ? 'ASC' : 'DESC' ; |
|
| 75 | + $dir = IOrder::ORDER_ASC == $direction ? 'ASC' : 'DESC'; |
|
| 76 | 76 | $this->dibiFluent->orderBy($colName, $dir); |
| 77 | 77 | } |
| 78 | 78 | $this->rawData = $this->dibiFluent->fetchAll($this->offset, $this->limit); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | public function fetchData(): void |
| 69 | 69 | { |
| 70 | 70 | foreach ($this->ordering as list($colName, $direction)) { |
| 71 | - $dir = IOrder::ORDER_ASC == $direction ? 'ASC' : 'DESC' ; |
|
| 71 | + $dir = IOrder::ORDER_ASC == $direction ? 'ASC' : 'DESC'; |
|
| 72 | 72 | $this->netteTable->order(strval($colName), $dir); |
| 73 | 73 | } |
| 74 | 74 | $this->netteTable->limit($this->limit, $this->offset); |