Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Fix error when use list repo command
Browse files Browse the repository at this point in the history
  • Loading branch information
MintoD committed Nov 20, 2021
1 parent 771b9a2 commit 89bc24e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/thebigcrafter/APM/APM.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<mixed>
*/
public static array $repoCache = [];

/**
* Plugins information cache
*
*
* @var array<mixed>
*/
public static array $pluginCache = [];
Expand All @@ -73,14 +73,14 @@ class APM extends PluginBase

/**
* Language
*
*
* @var BaseLang
*/
private static BaseLang $language;

/**
* Get instance
*
*
* @return self
*/
public static function getInstance(): self
Expand Down Expand Up @@ -120,7 +120,7 @@ public function initConfig(): void

/**
* Cache repositories information
*
*
* @return void
*/
public function cacheRepo(): void
Expand Down Expand Up @@ -152,7 +152,7 @@ public function cacheRepo(): void

/**
* Cache plugins from repositories
*
*
* @return void
*/
public function cachePlugin(): void
Expand All @@ -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[] = [
Expand All @@ -186,7 +186,7 @@ public function cachePlugin(): void

/**
* Cache loaded plugins
*
*
* @return void
*/
public function cacheLoadedPlugin(): void
Expand Down

0 comments on commit 89bc24e

Please sign in to comment.