Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeFourkas authored and github-actions[bot] committed Apr 5, 2024
1 parent d9605a6 commit 6231b9d
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 138 deletions.
8 changes: 4 additions & 4 deletions src/AdminifyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class AdminifyServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
// $this->loadJsonTranslationsFrom(__DIR__ . '/../lang');
// $this->publishes([
// __DIR__ . '/../lang' => $this->app->langPath('vendor/adminify'),
// ], 'adminify');
// $this->loadJsonTranslationsFrom(__DIR__ . '/../lang');
// $this->publishes([
// __DIR__ . '/../lang' => $this->app->langPath('vendor/adminify'),
// ], 'adminify');

$package
->name('adminify')
Expand Down
8 changes: 4 additions & 4 deletions src/Commands/AdminifyLanguagePublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ class AdminifyLanguagePublishCommand extends Command
public function handle(): void
{
$lang = $this->argument('language');
if (file_exists(lang_path($lang) . 'adminify.php')) {
if (file_exists(lang_path($lang).'adminify.php')) {
return;
}

if (file_exists(__DIR__ . '/../../stubs/lang/' . $lang)) {
copy(__DIR__ . '/../../stubs/lang/' . $lang . '/adminify.php', lang_path($lang . '/adminify.php'));
if (file_exists(__DIR__.'/../../stubs/lang/'.$lang)) {
copy(__DIR__.'/../../stubs/lang/'.$lang.'/adminify.php', lang_path($lang.'/adminify.php'));
} else {
copy(__DIR__ . '/../../stubs/lang/en/adminify.php', lang_path($lang . '/adminify.php'));
copy(__DIR__.'/../../stubs/lang/en/adminify.php', lang_path($lang.'/adminify.php'));
}

}
Expand Down
Loading

0 comments on commit 6231b9d

Please sign in to comment.