Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91a96a7

Browse files
committed
Apply fixes from StyleCI
1 parent 0dd9f7c commit 91a96a7

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/AbstractTokenizer.php

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ abstract class AbstractTokenizer
4747
* @var SplStack Of active tokens.
4848
*
4949
* @psalm-var SplStack<SqlToken>
50+
*
5051
* @psalm-suppress PropertyNotSetInConstructor
5152
*/
5253
private SplStack $tokenStack;
@@ -55,6 +56,7 @@ abstract class AbstractTokenizer
5556
* @var array|SqlToken Active token. It's usually a top of the token stack.
5657
*
5758
* @psalm-var SqlToken|SqlToken[]
59+
*
5860
* @psalm-suppress PropertyNotSetInConstructor
5961
*/
6062
private array|SqlToken $currentToken;

src/CommandPDO.php

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ protected function queryInternal(int $queryMode): mixed
191191
* @return array|bool List of SQL statements or `false` if there's a single statement.
192192
*
193193
* @psalm-param array<string, string> $params
194+
*
194195
* @psalm-return false|list<array{0: string, 1: array}>
195196
*/
196197
private function splitStatements(string $sql, array $params): bool|array

src/Schema.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
* Implements the SQLite Server specific schema, supporting SQLite 3.3.0 or higher.
3535
*
3636
* @psalm-type Column = array<array-key, array{seqno:string, cid:string, name:string}>
37-
*
3837
* @psalm-type NormalizePragmaForeignKeyList = array<
3938
* string,
4039
* array<
@@ -51,7 +50,6 @@
5150
* }
5251
* >
5352
* >
54-
*
5553
* @psalm-type PragmaForeignKeyList = array<
5654
* string,
5755
* array{
@@ -65,14 +63,11 @@
6563
* on_delete:string
6664
* }
6765
* >
68-
*
6966
* @psalm-type PragmaIndexInfo = array<array-key, array{seqno:string, cid:string, name:string}>
70-
*
7167
* @psalm-type PragmaIndexList = array<
7268
* array-key,
7369
* array{seq:string, name:string, unique:string, origin:string, partial:string}
7470
* >
75-
*
7671
* @psalm-type PragmaTableInfo = array<
7772
* array-key,
7873
* array{cid:string, name:string, type:string, notnull:string, dflt_value:string|null, pk:string}
@@ -393,7 +388,7 @@ protected function findConstraints(TableSchemaInterface $table): void
393388
$fk = $table->getForeignKeys();
394389

395390
if (!isset($fk[$id])) {
396-
$table->foreignKey($id, ([$foreignKey['table'], $foreignKey['from'] => $foreignKey['to']]));
391+
$table->foreignKey($id, [$foreignKey['table'], $foreignKey['from'] => $foreignKey['to']]);
397392
} else {
398393
/** composite FK */
399394
$table->compositeFK($id, $foreignKey['from'], $foreignKey['to']);
@@ -622,7 +617,7 @@ private function createColumnSchema(): ColumnSchemaInterface
622617
private function getPragmaForeignKeyList(string $tableName): array
623618
{
624619
return $this->db->createCommand(
625-
'PRAGMA FOREIGN_KEY_LIST(' . $this->db->getQuoter()->quoteSimpleTableName(($tableName)) . ')'
620+
'PRAGMA FOREIGN_KEY_LIST(' . $this->db->getQuoter()->quoteSimpleTableName($tableName) . ')'
626621
)->queryAll();
627622
}
628623

0 commit comments

Comments
 (0)