@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | { |
| 32 | 32 | $this->registerBindings(); |
| 33 | 33 | |
| 34 | - $this->app->singleton('tag.widget.directive', function ($app) { |
|
| 34 | + $this->app->singleton('tag.widget.directive', function($app) { |
|
| 35 | 35 | return new TagWidget($app[TagRepository::class]); |
| 36 | 36 | }); |
| 37 | 37 | } |
@@ -55,17 +55,17 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | private function registerBindings() |
| 57 | 57 | { |
| 58 | - $this->app->bind(TagRepository::class, function () { |
|
| 58 | + $this->app->bind(TagRepository::class, function() { |
|
| 59 | 59 | $repository = new EloquentTagRepository(new Tag()); |
| 60 | 60 | |
| 61 | - if (! config('app.cache')) { |
|
| 61 | + if (!config('app.cache')) { |
|
| 62 | 62 | return $repository; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | return new CacheTagDecorator($repository); |
| 66 | 66 | }); |
| 67 | 67 | |
| 68 | - $this->app->singleton(TagManager::class, function () { |
|
| 68 | + $this->app->singleton(TagManager::class, function() { |
|
| 69 | 69 | return new TagManagerRepository(); |
| 70 | 70 | }); |
| 71 | 71 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | if (app()->environment() === 'testing') { |
| 76 | 76 | return; |
| 77 | 77 | } |
| 78 | - $this->app['blade.compiler']->directive('tags', function ($value) { |
|
| 78 | + $this->app['blade.compiler']->directive('tags', function($value) { |
|
| 79 | 79 | return "<?php echo TagWidget::show(array$value); ?>"; |
| 80 | 80 | }); |
| 81 | 81 | } |