diff --git a/src/Command/BakeMigrationDiffCommand.php b/src/Command/BakeMigrationDiffCommand.php index 3cef914a..05fd53b6 100644 --- a/src/Command/BakeMigrationDiffCommand.php +++ b/src/Command/BakeMigrationDiffCommand.php @@ -337,8 +337,8 @@ protected function getColumns(): void } /** - * Calculate the diff between contraints in existing tables. - * This will look for contraints addition, contraints removal and changes in contraints metadata + * Calculate the diff between constraints in existing tables. + * This will look for constraints addition, constraints removal and changes in constraints metadata * such as change of referenced columns if the old constraints and the new one have the same name. * * The method directly sets the diff in a property of the class. diff --git a/src/Command/DumpCommand.php b/src/Command/DumpCommand.php index ba672f89..f4265e5b 100644 --- a/src/Command/DumpCommand.php +++ b/src/Command/DumpCommand.php @@ -77,7 +77,7 @@ public static function extractArgs(Arguments $args): array public function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionParser { $parser->setDescription([ - 'Dumps the current scheam of the database to be used while baking a diff', + 'Dumps the current schema of the database to be used while baking a diff', '', 'migrations dump -c secondary', ])->addOption('plugin', [ diff --git a/src/Config/ConfigInterface.php b/src/Config/ConfigInterface.php index 790f4c15..40699338 100644 --- a/src/Config/ConfigInterface.php +++ b/src/Config/ConfigInterface.php @@ -45,7 +45,7 @@ public function getMigrationPath(): string; public function getSeedPath(): string; /** - * Get the connection namee + * Get the connection name * * @return string|false */ diff --git a/src/Db/Adapter/MysqlAdapter.php b/src/Db/Adapter/MysqlAdapter.php index 359ec179..4d260e20 100644 --- a/src/Db/Adapter/MysqlAdapter.php +++ b/src/Db/Adapter/MysqlAdapter.php @@ -971,7 +971,7 @@ public function getSqlType(Literal|string $type, ?int $limit = null): array return ['name' => 'varbinary', 'limit' => $limit]; case static::PHINX_TYPE_BLOB: if ($limit !== null) { - // Rework this part as the choosen types were always UNDER the required length + // Rework this part as the chosen types were always UNDER the required length $sizes = [ 'tinyblob' => static::BLOB_SMALL, 'blob' => static::BLOB_REGULAR, diff --git a/src/Db/Adapter/PhinxAdapter.php b/src/Db/Adapter/PhinxAdapter.php index 492ca369..3b417ed5 100644 --- a/src/Db/Adapter/PhinxAdapter.php +++ b/src/Db/Adapter/PhinxAdapter.php @@ -198,7 +198,7 @@ protected function convertIndex(PhinxIndex $phinxIndex): Index */ protected function convertForeignKey(PhinxForeignKey $phinxKey): ForeignKey { - $foreignkey = new ForeignKey(); + $foreignKey = new ForeignKey(); $attrs = [ 'columns', 'referencedColumns', 'onDelete', 'onUpdate', 'constraint', ]; @@ -212,7 +212,7 @@ protected function convertForeignKey(PhinxForeignKey $phinxKey): ForeignKey $value = null; } if ($value !== null) { - $foreignkey->{$set}($value); + $foreignKey->{$set}($value); } } @@ -222,10 +222,10 @@ protected function convertForeignKey(PhinxForeignKey $phinxKey): ForeignKey $referenced = null; } if ($referenced) { - $foreignkey->setReferencedTable($this->convertTable($referenced)); + $foreignKey->setReferencedTable($this->convertTable($referenced)); } - return $foreignkey; + return $foreignKey; } /** diff --git a/src/Db/Adapter/SqlserverAdapter.php b/src/Db/Adapter/SqlserverAdapter.php index 0e3b43c0..62ccd879 100644 --- a/src/Db/Adapter/SqlserverAdapter.php +++ b/src/Db/Adapter/SqlserverAdapter.php @@ -252,7 +252,7 @@ protected function getChangeCommentInstructions(Table $table, ?string $newCommen } /** - * Gets the SqlServer Column Comment Defininition for a column object. + * Gets the SqlServer column comment definition for a column object. * * @param \Migrations\Db\Table\Column $column Column * @param ?string $tableName Table name @@ -625,7 +625,7 @@ protected function getDefaultConstraint(string $tableName, string $columnName): * @param string $indexId Index ID * @return array */ - protected function getIndexColums(string $tableId, string $indexId): array + protected function getIndexColumns(string $tableId, string $indexId): array { $sql = "SELECT AC.[name] AS [column_name] FROM sys.[index_columns] IC @@ -659,7 +659,7 @@ public function getIndexes(string $tableName): array $rows = $this->fetchAll($sql); foreach ($rows as $row) { - $columns = $this->getIndexColums($row['table_id'], $row['index_id']); + $columns = $this->getIndexColumns($row['table_id'], $row['index_id']); $indexes[$row['index_name']] = ['columns' => $columns]; } diff --git a/src/Db/Plan/Solver/ActionSplitter.php b/src/Db/Plan/Solver/ActionSplitter.php index 2cc52d27..48dd92a3 100644 --- a/src/Db/Plan/Solver/ActionSplitter.php +++ b/src/Db/Plan/Solver/ActionSplitter.php @@ -46,7 +46,7 @@ class ActionSplitter protected $conflictFilter; /** - * Comstructor + * Constructor * * @param string $conflictClass The fully qualified class name of the Action class to match for conflicts * @param string $conflictClassDual The fully qualified class name of the Action class to match for conflicts, @@ -61,7 +61,7 @@ public function __construct(string $conflictClass, string $conflictClassDual, ca } /** - * Returs a sequence of AlterTable instructions that are non conflicting + * Returns a sequence of AlterTable instructions that are non conflicting * based on the constructor parameters. * * @param \Migrations\Db\Plan\AlterTable $alter The collection of actions to inspect diff --git a/src/MigrationsDispatcher.php b/src/MigrationsDispatcher.php index c3ca2e35..e3ce61e6 100644 --- a/src/MigrationsDispatcher.php +++ b/src/MigrationsDispatcher.php @@ -20,7 +20,7 @@ * Used to register all supported subcommand in order to make * them executable by the Symfony Console component * - * @deprecated 4.2.0 Will be removed alongsize phinx + * @deprecated 4.2.0 Will be removed alongside phinx */ class MigrationsDispatcher extends Application {