diff --git a/src/AbstractMigration.php b/src/AbstractMigration.php index 2cf7d252287fa0f46be7f6e956020cc3c46ca7df..7a827027b656318e3b28e7148df98d3c90f33c7a 100644 --- a/src/AbstractMigration.php +++ b/src/AbstractMigration.php @@ -21,5 +21,4 @@ abstract class AbstractMigration { abstract public function up(): bool; public function down(): void {} - } diff --git a/src/AbstractMigrationsRepository.php b/src/AbstractMigrationsRepository.php index 5f1c81b6ba3ce38b2db9ec8c2cda849f79ae0e3f..d4eb634b74c54ccd681668cdd215867ea90106aa 100644 --- a/src/AbstractMigrationsRepository.php +++ b/src/AbstractMigrationsRepository.php @@ -48,7 +48,7 @@ abstract class AbstractMigrationsRepository implements MigrationsRepository { $migrations = $this->migrations; usort( $migrations, - function( AvailableMigration $a, AvailableMigration $b ): int { + function ( AvailableMigration $a, AvailableMigration $b ): int { return $this->comparator->compare( $a->get_version(), $b->get_version() ); } ); @@ -57,5 +57,4 @@ abstract class AbstractMigrationsRepository implements MigrationsRepository { } abstract protected function load_migrations(): void; - } diff --git a/src/AvailableMigration.php b/src/AvailableMigration.php index c1872abcdeaeefe84954aa9714479a571cd1965a..d574f49254968462d1b8496f49edc559dc2923c5 100644 --- a/src/AvailableMigration.php +++ b/src/AvailableMigration.php @@ -25,5 +25,4 @@ class AvailableMigration { public function get_migration(): AbstractMigration { return $this->migration; } - } diff --git a/src/Finder/MigrationFinder.php b/src/Finder/MigrationFinder.php index bd3abb2e769d0b47771d05873b5c8fafbc1392e1..76553f4304108707473f938dbbac44fa628ace94 100644 --- a/src/Finder/MigrationFinder.php +++ b/src/Finder/MigrationFinder.php @@ -11,6 +11,5 @@ interface MigrationFinder { * @param string $directory * @return class-string<AbstractMigration>[] */ - public function find_migrations( string $directory): array; - + public function find_migrations( string $directory ): array; } diff --git a/src/Migrator.php b/src/Migrator.php index bec80d585e684b27bef6ebfa853007c3f1f4c686..36e76335baf199b7300331ce15184b68745efdc8 100644 --- a/src/Migrator.php +++ b/src/Migrator.php @@ -6,5 +6,4 @@ namespace WPDesk\Migrations; interface Migrator { public function migrate(): void; - } diff --git a/src/Version/Comparator.php b/src/Version/Comparator.php index ae2e6b9de3e334803c872d09ae287eb0e3bad762..f3c5130708bf22e037593be04fe1c64763f8d87d 100644 --- a/src/Version/Comparator.php +++ b/src/Version/Comparator.php @@ -5,6 +5,5 @@ namespace WPDesk\Migrations\Version; interface Comparator { - public function compare( Version $a, Version $b): int; - + public function compare( Version $a, Version $b ): int; } diff --git a/src/Version/MigrationFactory.php b/src/Version/MigrationFactory.php index fd5ac68bb622d2ff9f0e49d2817816844e86707f..5c0827922f2b0572573d4d55ab5b53fa2984c1c9 100644 --- a/src/Version/MigrationFactory.php +++ b/src/Version/MigrationFactory.php @@ -6,5 +6,5 @@ use WPDesk\Migrations\AbstractMigration; interface MigrationFactory { - public function create_version( string $migration_class): AbstractMigration; + public function create_version( string $migration_class ): AbstractMigration; } diff --git a/src/Version/Version.php b/src/Version/Version.php index e87542b46fcabdfbc87bf31cb7efccc21f2393cc..63a2914f10295c2d40b225ab543e5706af4300b4 100644 --- a/src/Version/Version.php +++ b/src/Version/Version.php @@ -15,5 +15,4 @@ final class Version { public function __toString(): string { return $this->version; } - } diff --git a/src/Version/WpdbMigrationFactory.php b/src/Version/WpdbMigrationFactory.php index 91b63aa7a05fc84da5087da8dbc6166fe3d5af67..1bd9a0e596c7d2973619fc6d4c18f59431ff15eb 100644 --- a/src/Version/WpdbMigrationFactory.php +++ b/src/Version/WpdbMigrationFactory.php @@ -30,5 +30,4 @@ class WpdbMigrationFactory implements MigrationFactory { $this->logger ); } - }