@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $this->publishConfig('blog', 'config'); |
| 44 | 44 | $this->publishConfig('blog', 'permissions'); |
| 45 | 45 | $this->publishConfig('blog', 'settings'); |
| 46 | - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); |
|
| 46 | + $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); |
|
| 47 | 47 | |
| 48 | 48 | $this->registerThumbnails(); |
| 49 | 49 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | private function registerBindings() |
| 62 | 62 | { |
| 63 | - $this->app->bind(PostRepository::class, function () { |
|
| 63 | + $this->app->bind(PostRepository::class, function() { |
|
| 64 | 64 | $repository = new EloquentPostRepository(new Post()); |
| 65 | 65 | |
| 66 | 66 | if (config('app.cache') === false) { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | return new CachePostDecorator($repository); |
| 71 | 71 | }); |
| 72 | 72 | |
| 73 | - $this->app->bind(CategoryRepository::class, function () { |
|
| 73 | + $this->app->bind(CategoryRepository::class, function() { |
|
| 74 | 74 | $repository = new EloquentCategoryRepository(new Category()); |
| 75 | 75 | |
| 76 | 76 | if (config('app.cache') === false) { |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | return new CacheCategoryDecorator($repository); |
| 81 | 81 | }); |
| 82 | 82 | |
| 83 | - $this->app->bind(TagRepository::class, function () { |
|
| 83 | + $this->app->bind(TagRepository::class, function() { |
|
| 84 | 84 | $repository = new EloquentTagRepository(new Tag()); |
| 85 | 85 | |
| 86 | 86 | if (config('app.cache') === false) { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | 'fit' => [ |
| 98 | 98 | 'width' => '150', |
| 99 | 99 | 'height' => '150', |
| 100 | - 'callback' => function ($constraint) { |
|
| 100 | + 'callback' => function($constraint) { |
|
| 101 | 101 | $constraint->upsize(); |
| 102 | 102 | }, |
| 103 | 103 | ], |
@@ -3,15 +3,15 @@ |
||
| 3 | 3 | use Illuminate\Routing\Router; |
| 4 | 4 | |
| 5 | 5 | /** @var Router $router */ |
| 6 | -$router->group(['prefix' => 'blog'], function (Router $router) { |
|
| 6 | +$router->group(['prefix' => 'blog'], function(Router $router) { |
|
| 7 | 7 | $locale = LaravelLocalization::setLocale() ?: App::getLocale(); |
| 8 | 8 | $router->get('posts', [ |
| 9 | - 'as' => $locale . '.blog', |
|
| 9 | + 'as' => $locale.'.blog', |
|
| 10 | 10 | 'uses' => 'PublicController@index', |
| 11 | 11 | 'middleware' => config('asgard.blog.config.middleware'), |
| 12 | 12 | ]); |
| 13 | 13 | $router->get('posts/{slug}', [ |
| 14 | - 'as' => $locale . '.blog.slug', |
|
| 14 | + 'as' => $locale.'.blog.slug', |
|
| 15 | 15 | 'uses' => 'PublicController@show', |
| 16 | 16 | 'middleware' => config('asgard.blog.config.middleware'), |
| 17 | 17 | ]); |