Passed
Push — master ( 8afd38...851c8d )
by Petr
02:47
created
php-src/arrays/Filters/Range.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
             throw new ConnectException('Value must be an array of two values with keys 0 and 1.');
20 20
         }
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
             $itemValue = $item->getValue($colName);
24 24
             return $itemValue > $value[0] && $itemValue < $value[1];
25 25
         }));
Please login to merge, or discard this patch.
php-src/arrays/Filters/Exact.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
php-src/arrays/Filters/ToWith.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
php-src/arrays/Filters/From.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
php-src/dibi/Connector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
php-src/nette/Connector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.