Skip to content

Commit

Permalink
Added style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Jan 4, 2025
1 parent 9395f2b commit 9a5055f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function create(string $extension): WinterExtension;
*
* @throws ApplicationException If the installation fails
*/
public function install(ExtensionSource|WinterExtension|string $extension ): WinterExtension;
public function install(ExtensionSource|WinterExtension|string $extension): WinterExtension;

/**
* Validates if an extension is installed or not
Expand Down
1 change: 0 additions & 1 deletion modules/system/classes/extensions/ModuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public function update(WinterExtension|string|null $extension = null, bool $migr
$versions
? $this->renderComponent(Info::class, sprintf('Updated module %s (%s) from v%s => v%s', $module, $composerPackage, $versions[0], $versions[1]))
: $this->renderComponent(Error::class, sprintf('Failed to module %s (%s)', $module, $composerPackage));

} elseif (false /* Detect if market */) {
Preserver::instance()->store($extension);
// @TODO: Update files from market
Expand Down
4 changes: 1 addition & 3 deletions modules/system/classes/extensions/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,7 @@ public function update(WinterExtension|string|null $extension = null, bool $migr
'Failed to update plugin %s (%s)',
$pluginName,
$code
)
);

));
} elseif (false /* Detect if market */) {
Preserver::instance()->store($plugin);
// @TODO: Update files from market
Expand Down
3 changes: 2 additions & 1 deletion modules/system/classes/extensions/source/ExtensionSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ protected function guessCodeFromPath(string $path): ?string
str_starts_with($path, plugins_path())
? Str::after($path, basename(plugins_path()))
: $this->guessCodeFromPlugin($path),
'/')),
'/'
)),
static::TYPE_THEME, static::TYPE_MODULE => basename($path),
default => null,
};
Expand Down

0 comments on commit 9a5055f

Please sign in to comment.