From 65c115afa2e7f34d9e4ebdfb569f96ea694f6577 Mon Sep 17 00:00:00 2001
From: Bart Jaskulski <bjaskulski@protonmail.com>
Date: Fri, 6 Oct 2023 13:11:48 +0200
Subject: [PATCH] refactor: styling improvements

Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com>
---
 src/AbstractMigration.php            | 1 -
 src/AbstractMigrationsRepository.php | 3 +--
 src/AvailableMigration.php           | 1 -
 src/Finder/MigrationFinder.php       | 3 +--
 src/Migrator.php                     | 1 -
 src/Version/Comparator.php           | 3 +--
 src/Version/MigrationFactory.php     | 2 +-
 src/Version/Version.php              | 1 -
 src/Version/WpdbMigrationFactory.php | 1 -
 9 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/AbstractMigration.php b/src/AbstractMigration.php
index 2cf7d25..7a82702 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 5f1c81b..d4eb634 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 c1872ab..d574f49 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 bd3abb2..76553f4 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 bec80d5..36e7633 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 ae2e6b9..f3c5130 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 fd5ac68..5c08279 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 e87542b..63a2914 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 91b63aa..1bd9a0e 100644
--- a/src/Version/WpdbMigrationFactory.php
+++ b/src/Version/WpdbMigrationFactory.php
@@ -30,5 +30,4 @@ class WpdbMigrationFactory implements MigrationFactory {
 			$this->logger
 		);
 	}
-
 }
-- 
GitLab