Skip to content

Commit 7eb17fa

Browse files
authored
Fixed typos. (#837)
* Fixed typos.
1 parent 895054b commit 7eb17fa

22 files changed

Lines changed: 47 additions & 74 deletions

psalm-baseline.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@
186186
<RedundantPropertyInitializationCheck>
187187
<code><![CDATA[isset($this->container)]]></code>
188188
</RedundantPropertyInitializationCheck>
189-
<ReferenceReusedFromConfusingScope>
190-
<code><![CDATA[$executedVersion]]></code>
191-
</ReferenceReusedFromConfusingScope>
192189
</file>
193190
<file src="src/Migration/ManagerFactory.php">
194191
<UndefinedConstant>

src/AbstractMigration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AbstractMigration extends BaseAbstractMigration
3232
/**
3333
* Hook method to decide if this migration should use transactions
3434
*
35-
* By default if your driver supports transactions, a transaction will be opened
35+
* By default, if your driver supports transactions, a transaction will be opened
3636
* before the migration begins, and commit when the migration completes.
3737
*
3838
* @return bool

src/BaseMigration.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function setMigratingUp(bool $isMigratingUp)
199199
/**
200200
* Hook method to decide if this migration should use transactions
201201
*
202-
* By default if your driver supports transactions, a transaction will be opened
202+
* By default, if your driver supports transactions, a transaction will be opened
203203
* before the migration begins, and commit when the migration completes.
204204
*
205205
* @return bool
@@ -253,7 +253,7 @@ public function query(string $sql, array $params = []): mixed
253253
* Returns a new Query object that can be used to build complex SELECT, UPDATE, INSERT or DELETE
254254
* queries and execute them against the current database.
255255
*
256-
* Queries executed through the query builder are always sent to the database, regardless of the
256+
* Queries executed through the query builder are always sent to the database, regardless of
257257
* the dry-run settings.
258258
*
259259
* @see https://api.cakephp.org/3.6/class-Cake.Database.Query.html
@@ -269,7 +269,7 @@ public function getQueryBuilder(string $type): Query
269269
* Returns a new SelectQuery object that can be used to build complex
270270
* SELECT queries and execute them against the current database.
271271
*
272-
* Queries executed through the query builder are always sent to the database, regardless of the
272+
* Queries executed through the query builder are always sent to the database, regardless of
273273
* the dry-run settings.
274274
*
275275
* @return \Cake\Database\Query\SelectQuery
@@ -283,7 +283,7 @@ public function getSelectBuilder(): SelectQuery
283283
* Returns a new InsertQuery object that can be used to build complex
284284
* INSERT queries and execute them against the current database.
285285
*
286-
* Queries executed through the query builder are always sent to the database, regardless of the
286+
* Queries executed through the query builder are always sent to the database, regardless of
287287
* the dry-run settings.
288288
*
289289
* @return \Cake\Database\Query\InsertQuery
@@ -297,7 +297,7 @@ public function getInsertBuilder(): InsertQuery
297297
* Returns a new UpdateQuery object that can be used to build complex
298298
* UPDATE queries and execute them against the current database.
299299
*
300-
* Queries executed through the query builder are always sent to the database, regardless of the
300+
* Queries executed through the query builder are always sent to the database, regardless of
301301
* the dry-run settings.
302302
*
303303
* @return \Cake\Database\Query\UpdateQuery
@@ -311,7 +311,7 @@ public function getUpdateBuilder(): UpdateQuery
311311
* Returns a new DeleteQuery object that can be used to build complex
312312
* DELETE queries and execute them against the current database.
313313
*
314-
* Queries executed through the query builder are always sent to the database, regardless of the
314+
* Queries executed through the query builder are always sent to the database, regardless of
315315
* the dry-run settings.
316316
*
317317
* @return \Cake\Database\Query\DeleteQuery
@@ -369,7 +369,7 @@ public function dropDatabase(string $name): void
369369
/**
370370
* Creates schema.
371371
*
372-
* This will thrown an error for adapters that do not support schemas.
372+
* This will throw an error for adapters that do not support schemas.
373373
*
374374
* @param string $name Schema name
375375
* @return void
@@ -383,7 +383,7 @@ public function createSchema(string $name): void
383383
/**
384384
* Drops schema.
385385
*
386-
* This will thrown an error for adapters that do not support schemas.
386+
* This will throw an error for adapters that do not support schemas.
387387
*
388388
* @param string $name Schema name
389389
* @return void

src/CakeAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public function getCakeConnection(): Connection
8181
/**
8282
* Returns a new Query object
8383
*
84-
* @param string $type The type of query to generate (one of the
85-
* `\Cake\Database\Query::TYPE_*` constants).
84+
* @param string $type The type of query to generate
85+
* (one of the `\Cake\Database\Query::TYPE_*` constants).
8686
* @return \Cake\Database\Query
8787
*/
8888
public function getQueryBuilder(string $type): Query

src/Command/BakeMigrationDiffCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function templateData(Arguments $arguments): array
203203
}
204204

205205
/**
206-
* This methods runs the various methods needed to calculate a diff between the current
206+
* This method runs the various methods needed to calculate a diff between the current
207207
* state of the database and the schema dump file.
208208
*
209209
* @return void

src/Command/Phinx/MarkMigrated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function configure(): void
9595
/**
9696
* Mark migrations as migrated
9797
*
98-
* `bin/cake migrations mark_migrated` mark every migrations as migrated
98+
* `bin/cake migrations mark_migrated` mark every migration as migrated
9999
* `bin/cake migrations mark_migrated all` DEPRECATED: the same effect as above
100100
* `bin/cake migrations mark_migrated --target=VERSION` mark migrations as migrated up to the VERSION param
101101
* `bin/cake migrations mark_migrated --target=20150417223600 --exclude` mark migrations as migrated up to

src/Command/SnapshotTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function createFile(string $path, string $contents, Arguments $args, C
4343

4444
/**
4545
* @internal
46-
* @return bool Whether or not the builtin backend is active.
46+
* @return bool Whether the builtin backend is active.
4747
*/
4848
protected function useBuiltinBackend(): bool
4949
{

src/ConfigurationTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ protected function getConnectionName(InputInterface $input): string
247247
* Translates driver specific connection flags (PDO attributes) to
248248
* Phinx compatible adapter options.
249249
*
250-
* Currently Phinx supports of the following flags:
250+
* Currently, Phinx supports of the following flags:
251251
*
252252
* - *Most* of `PDO::ATTR_*`
253253
* - `PDO::MYSQL_ATTR_*`

src/Db/Adapter/AbstractAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ public function dropIndex(string $tableName, string|array $columns): void
11571157
/**
11581158
* Returns the instructions to drop the specified index from a database table.
11591159
*
1160-
* @param string $tableName The name of of the table where the index is
1160+
* @param string $tableName The name of the table where the index is
11611161
* @param string|string[] $columns Column(s)
11621162
* @return \Migrations\Db\AlterInstructions
11631163
*/

src/Db/Plan/Plan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function (RenameColumn $a, ChangeColumn $b) {
208208
$this->tableUpdates = $tableUpdates;
209209

210210
// Dropping indexes used by foreign keys is a conflict, but one we can resolve
211-
// if the foreign key is also scheduled to be dropped. If we can find such a a case,
211+
// if the foreign key is also scheduled to be dropped. If we can find such a case,
212212
// we force the execution of the index drop after the foreign key is dropped.
213213
// Changing constraint properties sometimes require dropping it and then
214214
// creating it again with the new stuff. Unfortunately, we have already bundled

0 commit comments

Comments
 (0)