Skip to content
Snippets Groups Projects
Verified Commit 65c115af authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

refactor: styling improvements


Signed-off-by: default avatarBart Jaskulski <bjaskulski@protonmail.com>
parent a2549f07
No related branches found
No related tags found
No related merge requests found
......@@ -21,5 +21,4 @@ abstract class AbstractMigration {
abstract public function up(): bool;
public function down(): void {}
}
......@@ -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;
}
......@@ -25,5 +25,4 @@ class AvailableMigration {
public function get_migration(): AbstractMigration {
return $this->migration;
}
}
......@@ -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;
}
......@@ -6,5 +6,4 @@ namespace WPDesk\Migrations;
interface Migrator {
public function migrate(): void;
}
......@@ -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;
}
......@@ -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;
}
......@@ -15,5 +15,4 @@ final class Version {
public function __toString(): string {
return $this->version;
}
}
......@@ -30,5 +30,4 @@ class WpdbMigrationFactory implements MigrationFactory {
$this->logger
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment