Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Apr 9, 2024
1 parent a7e17e5 commit 76ad178
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions config/rapidez/compare.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return [
'route' => '/compare'
];
'route' => '/compare',
];
8 changes: 4 additions & 4 deletions resources/lang/en/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'compare' => [
'add' => 'Added to the compare list.',
'already' => 'This product already is in the compare list.'
]
];
'add' => 'Added to the compare list.',
'already' => 'This product already is in the compare list.',
],
];
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

Route::view(config('rapidez.compare.route'), 'rapidez-compare::compare')->name('rapidez-compare::compare');
Route::view(config('rapidez.compare.route'), 'rapidez-compare::compare')->name('rapidez-compare::compare');
4 changes: 2 additions & 2 deletions src/Http/ViewComposers/ConfigComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Rapidez\Compare\Http\ViewComposers;

use Illuminate\View\View;
use Illuminate\Support\Facades\Config;
use Illuminate\View\View;

class ConfigComposer
{
Expand All @@ -12,4 +12,4 @@ public function compose(View $view)
Config::set('frontend.queries.compare', view('rapidez-compare::product.queries.compare')->renderOneliner());
Config::set('frontend.translations.compare', __('rapidez-compare::frontend.compare'));
}
}
}
11 changes: 5 additions & 6 deletions src/RapidezCompareServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Support\ServiceProvider;
use Rapidez\Compare\Http\ViewComposers\ConfigComposer;


class RapidezCompareServiceProvider extends ServiceProvider
{
public function register(): void
Expand All @@ -31,29 +30,29 @@ protected function bootComposers(): static

protected function bootTranslations(): static
{
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'rapidez-compare');
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'rapidez-compare');

return $this;
}

protected function registerConfig(): static
{
$this->mergeConfigFrom(__DIR__ . '/../config/rapidez/compare.php', 'rapidez.compare');
$this->mergeConfigFrom(__DIR__.'/../config/rapidez/compare.php', 'rapidez.compare');

return $this;
}

protected function bootRoutes(): static
{
$this->loadRoutesFrom(__DIR__ . '/../routes/web.php');
$this->loadRoutesFrom(__DIR__.'/../routes/web.php');

return $this;
}

protected function bootViews(): static
{
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'rapidez-compare');
$this->loadViewsFrom(__DIR__.'/../resources/views', 'rapidez-compare');

return $this;
}
}
}

0 comments on commit 76ad178

Please sign in to comment.