@@ -50,7 +50,7 @@ |
||
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 | } |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -111,7 +111,7 @@ discard block |
||
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 |
||
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']) |
@@ -125,7 +125,7 @@ discard block |
||
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 |
||
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 | } |
@@ -27,7 +27,6 @@ |
||
27 | 27 | { |
28 | 28 | // ... |
29 | 29 | } |
30 | - |
|
31 | 30 | */ |
32 | 31 | interface ICanFill |
33 | 32 | { |
@@ -48,7 +48,7 @@ |
||
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 { |