Passed
Push — master ( 38aca6...759f4d )
by Petr
03:02
created
php-src/Mappers/Shared/TWriteFileTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             $entry = $record->getEntry($primaryKey);
51 51
             if (in_array($entry->getType(), [IEntryType::TYPE_INTEGER, IEntryType::TYPE_FLOAT])) {
52 52
                 if (empty($entry->getData())) {
53
-                    $data = empty($records) ? 1 : intval(max(array_column($records, $primaryKey))) + 1 ;
53
+                    $data = empty($records) ? 1 : intval(max(array_column($records, $primaryKey))) + 1;
54 54
                     $entry->setData($data);
55 55
                 }
56 56
             }
Please login to merge, or discard this patch.
php-src/Storage/Database/Odbc/AOdbc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $this->connect();
52 52
 
53
-        list($updQuery, $binds, ) = $this->bindFromNamedToQuestions($query, $params);
53
+        list($updQuery, $binds,) = $this->bindFromNamedToQuestions($query, $params);
54 54
         $statement = odbc_prepare($this->getConnection(), $updQuery); // @phpstan-ignore-line
55 55
 
56 56
         if ((false !== $statement) && odbc_execute($statement, $binds)) { // @phpstan-ignore-line
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             }
62 62
 
63 63
             $numFields = odbc_num_fields($statement);
64
-            for ($i=1; $i<=$numFields; $i++) {
64
+            for ($i = 1; $i <= $numFields; $i++) {
65 65
                 // odbc starts its indexes at 1 but since I am
66 66
                 // trying to emulate the functionality of *_fetch_array
67 67
                 // for other dbs (ie mysql) I'm going to decrement my
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         $this->connect();
92 92
 
93
-        list($updQuery, $binds, ) = $this->bindFromNamedToQuestions($query, $params);
93
+        list($updQuery, $binds,) = $this->bindFromNamedToQuestions($query, $params);
94 94
         $statement = odbc_prepare($this->getConnection(), strval($updQuery));
95 95
         if (false !== $statement) {
96 96
             $result = odbc_execute($statement, $binds); // @phpstan-ignore-line
Please login to merge, or discard this patch.
php-src/Mappers/Database/TReadDatabase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         foreach ($relations as $localAlias => $remoteColumn) {
112 112
             $this->readQueryBuilder->addColumn($record->getMapper()->getAlias(), $remoteColumn, $localAlias);
113 113
         }
114
-        $this->readQueryBuilder->setLimits(0,1);
114
+        $this->readQueryBuilder->setLimits(0, 1);
115 115
 
116 116
         // query itself
117 117
         $lines = $this->readDatabase->query(
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         }
173 173
 
174 174
         // query itself
175
-        $this->readQueryBuilder->setLimits(0,1);
175
+        $this->readQueryBuilder->setLimits(0, 1);
176 176
         $lines = $this->readDatabase->query(
177 177
             strval($this->readDialect->select($this->readQueryBuilder)),
178 178
             array_filter($this->readQueryBuilder->getParams(), [$this, 'filterNullValues'])
Please login to merge, or discard this patch.
php-src/Search/Connector/Records.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         // paging
126 126
         return $limited
127 127
             ? array_slice($results, intval($this->queryBuilder->getOffset()), $this->queryBuilder->getLimit())
128
-            : $results ;
128
+            : $results;
129 129
     }
130 130
 
131 131
     /**
@@ -305,6 +305,6 @@  discard block
 block discarded – undo
305 305
         $a = $resultA->offsetGet($this->sortingOrder->getColumnName());
306 306
         $b = $resultB->offsetGet($this->sortingOrder->getColumnName());
307 307
 
308
-        return (IQueryBuilder::ORDER_ASC == $sortingDirection) ? $a <=> $b : $b <=> $a ;
308
+        return (IQueryBuilder::ORDER_ASC == $sortingDirection) ? $a <=> $b : $b <=> $a;
309 309
     }
310 310
 }
Please login to merge, or discard this patch.
php-src/Interfaces/ICanFill.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
 {
28 28
     // ...
29 29
 }
30
-
31 30
  */
32 31
 interface ICanFill
33 32
 {
Please login to merge, or discard this patch.
php-src/Search/Connector/Database/TRecordsInJoins.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         }
49 49
         foreach ($this->recordsInJoin as $record) {
50 50
             $foreignKeys = $record->getRecord()->getMapper()->getForeignKeys();
51
-            $fk = empty($knownAs) ? $storeKey : $knownAs ;
51
+            $fk = empty($knownAs) ? $storeKey : $knownAs;
52 52
             if (isset($foreignKeys[$fk])) {
53 53
                 $recordClassName = $foreignKeys[$fk]->getRemoteRecord();
54 54
                 try {
Please login to merge, or discard this patch.