From 29f37830ae00bbec104d49ca50992b346bfeb873 Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 17:47:28 -0600 Subject: [PATCH 01/10] feat(loader): add support for Purpur, Folia and more --- .../src/Enums/MinecraftLoader.php | 57 ++++++++----------- 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 1a7db42e..1c75f16f 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -12,8 +12,14 @@ enum MinecraftLoader: string implements HasLabel case Fabric = 'fabric'; case Quilt = 'quilt'; case Paper = 'paper'; + case Purpur = 'purpur'; + case Folia = 'folia'; + case Pufferfish = 'pufferfish'; + case Spigot = 'spigot'; + case Bukkit = 'bukkit'; case Velocity = 'velocity'; case Bungeecord = 'bungeecord'; + case Waterfall = 'waterfall'; public function getLabel(): string { @@ -23,45 +29,32 @@ public function getLabel(): string public static function fromServer(Server $server): ?MinecraftLoader { $server->loadMissing('egg'); - $tags = $server->egg->tags ?? []; - return self::fromTags($tags); } - /** @param string[] $tags */ public static function fromTags(array $tags): ?MinecraftLoader { - if (in_array('minecraft', $tags)) { - if (in_array('neoforge', $tags) || in_array('neoforged', $tags)) { - return self::NeoForge; - } - - if (in_array('forge', $tags)) { - return self::Forge; - } - - if (in_array('fabric', $tags)) { - return self::Fabric; - } - - if (in_array('quilt', $tags)) { - return self::Quilt; - } - - if (in_array('bukkit', $tags) || in_array('spigot', $tags) || in_array('paper', $tags)) { - return self::Paper; - } - - if (in_array('velocity', $tags)) { - return self::Velocity; - } - - if (in_array('waterfall', $tags) || in_array('bungeecord', $tags)) { - return self::Bungeecord; - } + if (!in_array('minecraft', $tags)) { + return null; } - return null; + return match (true) { + in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, + in_array('forge', $tags) => self::Forge, + in_array('fabric', $tags) => self::Fabric, + in_array('quilt', $tags) => self::Quilt, + in_array('folia', $tags) => self::Folia, + in_array('purpur', $tags) => self::Purpur, + in_array('pufferfish', $tags) => self::Pufferfish, + in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, + in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, + in_array('bukkit', $tags) => self::Bukkit, + in_array('velocity', $tags) => self::Velocity, + in_array('waterfall', $tags) => self::Waterfall, + in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, + + default => null, + }; } } From 818283f29ce53810e63ffa6d82d79429b85fa36f Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 17:56:21 -0600 Subject: [PATCH 02/10] fix: code style and phpstan errors Removed enum cases and the getLabel method from MinecraftLoader. --- .../src/Enums/MinecraftLoader.php | 36 +++++-------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 1c75f16f..079d24a9 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -1,55 +1,35 @@ -name)->title(); - } - public static function fromServer(Server $server): ?MinecraftLoader { $server->loadMissing('egg'); $tags = $server->egg->tags ?? []; + return self::fromTags($tags); } + /** @param string[] $tags */ public static function fromTags(array $tags): ?MinecraftLoader { if (!in_array('minecraft', $tags)) { return null; } + // Mapeo de Tags a Enums return match (true) { + // Mods in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, in_array('forge', $tags) => self::Forge, in_array('fabric', $tags) => self::Fabric, in_array('quilt', $tags) => self::Quilt, + + // Plugins (Forks de Paper/Spigot) in_array('folia', $tags) => self::Folia, in_array('purpur', $tags) => self::Purpur, in_array('pufferfish', $tags) => self::Pufferfish, in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, in_array('bukkit', $tags) => self::Bukkit, + + // Proxies in_array('velocity', $tags) => self::Velocity, in_array('waterfall', $tags) => self::Waterfall, in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, From e10db3e9f1dccfa92aa9cf6ab09a64c1e73782da Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:01:17 -0600 Subject: [PATCH 03/10] Refactor MinecraftLoader enum and methods Refactor MinecraftLoader enum to implement HasLabel interface and update methods. --- .../src/Enums/MinecraftLoader.php | 54 ++++++++++++++++--- 1 file changed, 47 insertions(+), 7 deletions(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 079d24a9..4a82f32a 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -1,27 +1,67 @@ - public static function fromServer(Server $server): ?MinecraftLoader +name); + } + + /** + * Get the loader instance from a server. + */ + public static function fromServer(Server $server): ?self { $server->loadMissing('egg'); + + /** @var string[] $tags */ $tags = $server->egg->tags ?? []; return self::fromTags($tags); } - /** @param string[] $tags */ - public static function fromTags(array $tags): ?MinecraftLoader + /** + * Get the loader instance from an array of tags. + * + * @param string[] $tags + */ + public static function fromTags(array $tags): ?self { if (!in_array('minecraft', $tags)) { return null; } - // Mapeo de Tags a Enums return match (true) { - // Mods + // Mod Loaders in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, in_array('forge', $tags) => self::Forge, in_array('fabric', $tags) => self::Fabric, in_array('quilt', $tags) => self::Quilt, - // Plugins (Forks de Paper/Spigot) + // Server Software (Forks) in_array('folia', $tags) => self::Folia, in_array('purpur', $tags) => self::Purpur, in_array('pufferfish', $tags) => self::Pufferfish, @@ -29,7 +69,7 @@ public static function fromTags(array $tags): ?MinecraftLoader in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, in_array('bukkit', $tags) => self::Bukkit, - // Proxies + // Proxy Software in_array('velocity', $tags) => self::Velocity, in_array('waterfall', $tags) => self::Waterfall, in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, From 6936781f1081a0e8943c68f9fcd2b500c8719322 Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:09:15 -0600 Subject: [PATCH 04/10] Refactor MinecraftLoader enum formatting and comments --- .../src/Enums/MinecraftLoader.php | 51 ++++++++++--------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 4a82f32a..3175778f 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -8,19 +8,19 @@ enum MinecraftLoader: string implements HasLabel { - case NeoForge = 'neoforge'; - case Forge = 'forge'; - case Fabric = 'fabric'; - case Quilt = 'quilt'; - case Paper = 'paper'; - case Purpur = 'purpur'; - case Folia = 'folia'; + case NeoForge = 'neoforge'; + case Forge = 'forge'; + case Fabric = 'fabric'; + case Quilt = 'quilt'; + case Paper = 'paper'; + case Purpur = 'purpur'; + case Folia = 'folia'; case Pufferfish = 'pufferfish'; - case Spigot = 'spigot'; - case Bukkit = 'bukkit'; - case Velocity = 'velocity'; + case Spigot = 'spigot'; + case Bukkit = 'bukkit'; + case Velocity = 'velocity'; case Bungeecord = 'bungeecord'; - case Waterfall = 'waterfall'; + case Waterfall = 'waterfall'; /** * Get the label for the loader. @@ -37,7 +37,7 @@ public static function fromServer(Server $server): ?self { $server->loadMissing('egg'); - /** @var string[] $tags */ + /** @var string[] $tags */ $tags = $server->egg->tags ?? []; return self::fromTags($tags); @@ -46,32 +46,33 @@ public static function fromServer(Server $server): ?self /** * Get the loader instance from an array of tags. * - * @param string[] $tags + * @param string[] $tags + * @return self|null */ public static function fromTags(array $tags): ?self { - if (!in_array('minecraft', $tags)) { + if (! in_array('minecraft', $tags)) { return null; } return match (true) { // Mod Loaders in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, - in_array('forge', $tags) => self::Forge, - in_array('fabric', $tags) => self::Fabric, - in_array('quilt', $tags) => self::Quilt, + in_array('forge', $tags) => self::Forge, + in_array('fabric', $tags) => self::Fabric, + in_array('quilt', $tags) => self::Quilt, // Server Software (Forks) - in_array('folia', $tags) => self::Folia, - in_array('purpur', $tags) => self::Purpur, - in_array('pufferfish', $tags) => self::Pufferfish, - in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, - in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, - in_array('bukkit', $tags) => self::Bukkit, + in_array('folia', $tags) => self::Folia, + in_array('purpur', $tags) => self::Purpur, + in_array('pufferfish', $tags) => self::Pufferfish, + in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, + in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, + in_array('bukkit', $tags) => self::Bukkit, // Proxy Software - in_array('velocity', $tags) => self::Velocity, - in_array('waterfall', $tags) => self::Waterfall, + in_array('velocity', $tags) => self::Velocity, + in_array('waterfall', $tags) => self::Waterfall, in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, default => null, From b5be9993fe09bae301708707b2968f601b5dc030 Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:12:41 -0600 Subject: [PATCH 05/10] Refactor fromTags method for better readability --- .../src/Enums/MinecraftLoader.php | 51 ++++++++++--------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 3175778f..acd88771 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -49,33 +49,34 @@ public static function fromServer(Server $server): ?self * @param string[] $tags * @return self|null */ - public static function fromTags(array $tags): ?self - { - if (! in_array('minecraft', $tags)) { - return null; - } + public static function fromTags(array $tags): ?self +{ + if (! in_array('minecraft', $tags)) { + return null; + } - return match (true) { - // Mod Loaders - in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, - in_array('forge', $tags) => self::Forge, - in_array('fabric', $tags) => self::Fabric, - in_array('quilt', $tags) => self::Quilt, + return match (true) { + // Mod Loaders + in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, + in_array('forge', $tags) => self::Forge, + in_array('fabric', $tags) => self::Fabric, + in_array('quilt', $tags) => self::Quilt, - // Server Software (Forks) - in_array('folia', $tags) => self::Folia, - in_array('purpur', $tags) => self::Purpur, - in_array('pufferfish', $tags) => self::Pufferfish, - in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, - in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, - in_array('bukkit', $tags) => self::Bukkit, + // Server Software (Forks) + in_array('folia', $tags) => self::Folia, + in_array('purpur', $tags) => self::Purpur, + in_array('pufferfish', $tags) => self::Pufferfish, + in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, + in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, + in_array('bukkit', $tags) => self::Bukkit, - // Proxy Software - in_array('velocity', $tags) => self::Velocity, - in_array('waterfall', $tags) => self::Waterfall, - in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, + // Proxy Software + in_array('velocity', $tags) => self::Velocity, + in_array('waterfall', $tags) => self::Waterfall, + in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, + + default => null, + }; +} - default => null, - }; - } } From 65561c92d3f3b449a8294a9fd6a0e03a7699ccf3 Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:16:29 -0600 Subject: [PATCH 06/10] Refactor MinecraftLoader enum and fromTags method --- .../src/Enums/MinecraftLoader.php | 79 +++++++++---------- 1 file changed, 36 insertions(+), 43 deletions(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index acd88771..262f3c44 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -8,19 +8,19 @@ enum MinecraftLoader: string implements HasLabel { - case NeoForge = 'neoforge'; - case Forge = 'forge'; - case Fabric = 'fabric'; - case Quilt = 'quilt'; - case Paper = 'paper'; - case Purpur = 'purpur'; - case Folia = 'folia'; + case NeoForge = 'neoforge'; + case Forge = 'forge'; + case Fabric = 'fabric'; + case Quilt = 'quilt'; + case Paper = 'paper'; + case Purpur = 'purpur'; + case Folia = 'folia'; case Pufferfish = 'pufferfish'; - case Spigot = 'spigot'; - case Bukkit = 'bukkit'; - case Velocity = 'velocity'; + case Spigot = 'spigot'; + case Bukkit = 'bukkit'; + case Velocity = 'velocity'; case Bungeecord = 'bungeecord'; - case Waterfall = 'waterfall'; + case Waterfall = 'waterfall'; /** * Get the label for the loader. @@ -43,40 +43,33 @@ public static function fromServer(Server $server): ?self return self::fromTags($tags); } - /** - * Get the loader instance from an array of tags. - * - * @param string[] $tags - * @return self|null - */ - public static function fromTags(array $tags): ?self -{ - if (! in_array('minecraft', $tags)) { - return null; - } - - return match (true) { - // Mod Loaders - in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, - in_array('forge', $tags) => self::Forge, - in_array('fabric', $tags) => self::Fabric, - in_array('quilt', $tags) => self::Quilt, + public static function fromTags(array $tags): ?self + { + if (! in_array('minecraft', $tags)) { + return null; + } - // Server Software (Forks) - in_array('folia', $tags) => self::Folia, - in_array('purpur', $tags) => self::Purpur, - in_array('pufferfish', $tags) => self::Pufferfish, - in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, - in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, - in_array('bukkit', $tags) => self::Bukkit, + return match (true) { + // Mod Loaders + in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, + in_array('forge', $tags) => self::Forge, + in_array('fabric', $tags) => self::Fabric, + in_array('quilt', $tags) => self::Quilt, - // Proxy Software - in_array('velocity', $tags) => self::Velocity, - in_array('waterfall', $tags) => self::Waterfall, - in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, + // Server Software (Forks) + in_array('folia', $tags) => self::Folia, + in_array('purpur', $tags) => self::Purpur, + in_array('pufferfish', $tags) => self::Pufferfish, + in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, + in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, + in_array('bukkit', $tags) => self::Bukkit, - default => null, - }; -} + // Proxy Software + in_array('velocity', $tags) => self::Velocity, + in_array('waterfall', $tags) => self::Waterfall, + in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, + default => null, + }; + } } From 98a888f7e5a3cca14c825018add689e76908d202 Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:22:41 -0600 Subject: [PATCH 07/10] Refactor MinecraftLoader.php for clarity Removed unnecessary comments and improved formatting. --- minecraft-modrinth/src/Enums/MinecraftLoader.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 262f3c44..5c9ef543 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -22,17 +22,11 @@ enum MinecraftLoader: string implements HasLabel case Bungeecord = 'bungeecord'; case Waterfall = 'waterfall'; - /** - * Get the label for the loader. - */ public function getLabel(): string { return Str::title($this->name); } - /** - * Get the loader instance from a server. - */ public static function fromServer(Server $server): ?self { $server->loadMissing('egg'); @@ -43,20 +37,21 @@ public static function fromServer(Server $server): ?self return self::fromTags($tags); } + /** + * @param string[] $tags + */ public static function fromTags(array $tags): ?self { - if (! in_array('minecraft', $tags)) { + if (!in_array('minecraft', $tags)) { return null; } return match (true) { - // Mod Loaders in_array('neoforge', $tags) || in_array('neoforged', $tags) => self::NeoForge, in_array('forge', $tags) => self::Forge, in_array('fabric', $tags) => self::Fabric, in_array('quilt', $tags) => self::Quilt, - // Server Software (Forks) in_array('folia', $tags) => self::Folia, in_array('purpur', $tags) => self::Purpur, in_array('pufferfish', $tags) => self::Pufferfish, @@ -64,7 +59,6 @@ public static function fromTags(array $tags): ?self in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, in_array('bukkit', $tags) => self::Bukkit, - // Proxy Software in_array('velocity', $tags) => self::Velocity, in_array('waterfall', $tags) => self::Waterfall, in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, From 51631018bfa11802428831c3ddebc9dc2cee1164 Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:28:37 -0600 Subject: [PATCH 08/10] Improve PHPDoc for tags variable in fromServer method Updated PHPDoc for tags variable to improve clarity. --- minecraft-modrinth/src/Enums/MinecraftLoader.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 5c9ef543..5ac5dc7e 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -31,9 +31,12 @@ public static function fromServer(Server $server): ?self { $server->loadMissing('egg'); - /** @var string[] $tags */ + /** + * @var string[] $tags + */ $tags = $server->egg->tags ?? []; + return self::fromTags($tags); } From fc5906a754b4df92870a04282e8329e6f60ac7a2 Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:33:32 -0600 Subject: [PATCH 09/10] Refactor MinecraftLoader methods for clarity --- minecraft-modrinth/src/Enums/MinecraftLoader.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 5ac5dc7e..10d505d2 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -31,12 +31,9 @@ public static function fromServer(Server $server): ?self { $server->loadMissing('egg'); - /** - * @var string[] $tags - */ + /** @var string[] $tags */ $tags = $server->egg->tags ?? []; - return self::fromTags($tags); } @@ -45,7 +42,7 @@ public static function fromServer(Server $server): ?self */ public static function fromTags(array $tags): ?self { - if (!in_array('minecraft', $tags)) { + if (! in_array('minecraft', $tags)) { return null; } @@ -54,18 +51,15 @@ public static function fromTags(array $tags): ?self in_array('forge', $tags) => self::Forge, in_array('fabric', $tags) => self::Fabric, in_array('quilt', $tags) => self::Quilt, - in_array('folia', $tags) => self::Folia, in_array('purpur', $tags) => self::Purpur, in_array('pufferfish', $tags) => self::Pufferfish, in_array('paper', $tags) || in_array('papermc', $tags) => self::Paper, in_array('spigot', $tags) || in_array('spigotmc', $tags) => self::Spigot, in_array('bukkit', $tags) => self::Bukkit, - in_array('velocity', $tags) => self::Velocity, in_array('waterfall', $tags) => self::Waterfall, in_array('bungeecord', $tags) || in_array('bungee', $tags) => self::Bungeecord, - default => null, }; } From 5a46b921463cf142fd0425ff9848b09996ea2333 Mon Sep 17 00:00:00 2001 From: Kingly Shade <150642678+KinglyShade@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:35:13 -0600 Subject: [PATCH 10/10] Remove space in in_array check for tags --- minecraft-modrinth/src/Enums/MinecraftLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft-modrinth/src/Enums/MinecraftLoader.php b/minecraft-modrinth/src/Enums/MinecraftLoader.php index 10d505d2..984c83c6 100644 --- a/minecraft-modrinth/src/Enums/MinecraftLoader.php +++ b/minecraft-modrinth/src/Enums/MinecraftLoader.php @@ -42,7 +42,7 @@ public static function fromServer(Server $server): ?self */ public static function fromTags(array $tags): ?self { - if (! in_array('minecraft', $tags)) { + if (!in_array('minecraft', $tags)) { return null; }