From 89bc24ec22cf23c08040e95475c3d0a189e61a9d Mon Sep 17 00:00:00 2001 From: MintoD Date: Sat, 20 Nov 2021 20:28:44 +0700 Subject: [PATCH] Fix error when use list repo command --- src/thebigcrafter/APM/APM.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/thebigcrafter/APM/APM.php b/src/thebigcrafter/APM/APM.php index 11436d7..0e48016 100644 --- a/src/thebigcrafter/APM/APM.php +++ b/src/thebigcrafter/APM/APM.php @@ -31,35 +31,35 @@ class APM extends PluginBase /** * APM's prefix - * + * * @var string */ public static string $PREFIX = "§a[§bAPM§a]§r "; /** * Repositories list - * + * * @var Config */ public Config $repos; /** * Plugin's config - * + * * @var Config */ public Config $config; /** * Repositories information cache - * + * * @var array */ public static array $repoCache = []; /** * Plugins information cache - * + * * @var array */ public static array $pluginCache = []; @@ -73,14 +73,14 @@ class APM extends PluginBase /** * Language - * + * * @var BaseLang */ private static BaseLang $language; /** * Get instance - * + * * @return self */ public static function getInstance(): self @@ -120,7 +120,7 @@ public function initConfig(): void /** * Cache repositories information - * + * * @return void */ public function cacheRepo(): void @@ -152,7 +152,7 @@ public function cacheRepo(): void /** * Cache plugins from repositories - * + * * @return void */ public function cachePlugin(): void @@ -166,7 +166,7 @@ public function cachePlugin(): void $plugins = json_decode($cache, true); - self::$repoCache[] = [$cache]; + self::$pluginCache[] = [$cache]; foreach ($plugins as $plugin) { self::$pluginCache[] = [ @@ -186,7 +186,7 @@ public function cachePlugin(): void /** * Cache loaded plugins - * + * * @return void */ public function cacheLoadedPlugin(): void