Passed
Push — master ( 8afd38...851c8d )
by Petr
02:47
created
php-tests/KwTests/AKwTests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
 
120 120
     public function getName(): string
121 121
     {
122
-        return (string)$this->offsetGet('name');
122
+        return (string) $this->offsetGet('name');
123 123
     }
124 124
 }
125 125
 
Please login to merge, or discard this patch.
php-tests/KwTests/ConnectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
     public function testConnectorSearch()
42 42
     {
43 43
         $lib = new search\Connector(new \kalanis\kw_mapper\Search\Search(new XTestRecord()));
44
-        $lib->setFiltering('target', arrays\Filters\Factory::ACTION_MULTIPLE, [ // value
45
-            [ // row with another filter -> filter type, value to compare
46
-                arrays\Filters\Factory::ACTION_MULTIPLE, [ // another multiple with its inner filters as array in value
44
+        $lib->setFiltering('target', arrays\Filters\Factory::ACTION_MULTIPLE, [// value
45
+            [// row with another filter -> filter type, value to compare
46
+                arrays\Filters\Factory::ACTION_MULTIPLE, [// another multiple with its inner filters as array in value
47 47
                     [arrays\Filters\Factory::ACTION_EXACT, 'any'], // inner filters in multiple filter -> filter type, value to compare
48 48
                 ]
49 49
             ],
Please login to merge, or discard this patch.
php-tests/ArraysTests/ConnectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@
 block discarded – undo
62 62
     public function testConnector2()
63 63
     {
64 64
         $lib = new arrays\Connector($this->sourceRows(), 'abc'); // with PK
65
-        $lib->setFiltering('pqr', arrays\Filters\Factory::ACTION_MULTIPLE, [ // value
66
-            [ // row with another filter -> filter type, value to compare
67
-                arrays\Filters\Factory::ACTION_MULTIPLE, [ // another multiple with its inner filters as array in value
65
+        $lib->setFiltering('pqr', arrays\Filters\Factory::ACTION_MULTIPLE, [// value
66
+            [// row with another filter -> filter type, value to compare
67
+                arrays\Filters\Factory::ACTION_MULTIPLE, [// another multiple with its inner filters as array in value
68 68
                     [arrays\Filters\Factory::ACTION_EXACT, false], // inner filters in multiple filter -> filter type, value to compare
69 69
                 ]
70 70
             ],
Please login to merge, or discard this patch.
php-src/doctrine_dbal/Connector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,14 +62,14 @@
 block discarded – undo
62 62
 
63 63
     public function getTotalCount(): int
64 64
     {
65
-        $this->queryBuilder->select('count(' . $this->primaryKey. ')');
65
+        $this->queryBuilder->select('count(' . $this->primaryKey . ')');
66 66
         return intval($this->queryBuilder->fetchOne());
67 67
     }
68 68
 
69 69
     public function fetchData(): void
70 70
     {
71 71
         foreach ($this->ordering as list($colName, $direction)) {
72
-            $dir = IOrder::ORDER_ASC == $direction ? 'ASC' : 'DESC' ;
72
+            $dir = IOrder::ORDER_ASC == $direction ? 'ASC' : 'DESC';
73 73
             $this->queryBuilder->orderBy(strval($colName), strval($dir));
74 74
         }
75 75
         if (!is_null($this->offset)) {
Please login to merge, or discard this patch.
php-src/core/AConnector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
      */
30 30
     public function getByKey($key): ?IRow
31 31
     {
32
-        return $this->offsetExists($key) ? $this->translatedData[$key] : null ;
32
+        return $this->offsetExists($key) ? $this->translatedData[$key] : null;
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
php-src/core/AIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     #[\ReturnTypeWillChange]
36 36
     public function offsetGet($offset)
37 37
     {
38
-        return $this->offsetExists($offset) ? $this->{$this->getIterableName()}[$offset] : null ;
38
+        return $this->offsetExists($offset) ? $this->{$this->getIterableName()}[$offset] : null;
39 39
     }
40 40
 
41 41
     public function offsetSet($offset, $value): void
Please login to merge, or discard this patch.
php-src/arrays/FilteringArrays.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     #[\ReturnTypeWillChange]
68 68
     public function offsetGet($offset)
69 69
     {
70
-        return $this->offsetExists($offset) ? $this->array[$offset] : null ;
70
+        return $this->offsetExists($offset) ? $this->array[$offset] : null;
71 71
     }
72 72
 
73 73
     /**
Please login to merge, or discard this patch.
php-src/arrays/Filters/To.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/Contains.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 preg_match('#' . preg_quote(strval($value), '#') . '#', $item->getValue($colName));
24 24
         }));
25 25
         return $this;
Please login to merge, or discard this patch.