Skip to content

Commit

Permalink
Fixes to version management for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Aug 24, 2024
1 parent fb4e2e1 commit 2ad43d2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .idea/codeception.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/leantime-oss.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/phpspec.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion app/Core/Exceptions/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use Throwable;
use Whoops\Handler\HandlerInterface;
use Whoops\Run as Whoops;
use Symfony\Component\Console\Application as ConsoleApplication;

class ExceptionHandler implements ExceptionHandlerContract
{
Expand Down Expand Up @@ -583,7 +584,7 @@ protected function convertExceptionToArray(Throwable $e)
*/
public function renderForConsole($output, Throwable $e)
{
app()->renderThrowable($e, $output);
(new ConsoleApplication())->renderThrowable($e, $output);
}

/**
Expand Down
1 change: 1 addition & 0 deletions app/Domain/Plugins/Models/MarketplacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class MarketplacePlugin implements PluginDisplayStrategy
public array $reviews;
public string $marketplaceId;
public array $compatibility;
public string $version;

public function getCardDesc(): string
{
Expand Down
1 change: 1 addition & 0 deletions app/Domain/Plugins/Services/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ public function getMarketplacePlugins(int $page, string $query = ''): array
->set('vendorEmail', $plugin['vendor_email'] ?? '')
->set('startingPrice', '$' . ($plugin['price'] ?? '') . (! empty($plugin['sub_interval']) ? '/' . $plugin['sub_interval'] : ''))
->set('rating', $plugin['rating'] ?? '')
->set('version', $plugin['version'] ?? '')
->get();
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/Plugins

0 comments on commit 2ad43d2

Please sign in to comment.