@@ -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 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $this->publishConfig('tag', 'permissions'); |
42 | 42 | $this->publishConfig('tag', 'config'); |
43 | 43 | $this->registerBladeTags(); |
44 | - $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); |
|
44 | + $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -56,17 +56,17 @@ discard block |
||
56 | 56 | |
57 | 57 | private function registerBindings() |
58 | 58 | { |
59 | - $this->app->bind(TagRepository::class, function () { |
|
59 | + $this->app->bind(TagRepository::class, function() { |
|
60 | 60 | $repository = new EloquentTagRepository(new Tag()); |
61 | 61 | |
62 | - if (! config('app.cache')) { |
|
62 | + if (!config('app.cache')) { |
|
63 | 63 | return $repository; |
64 | 64 | } |
65 | 65 | |
66 | 66 | return new CacheTagDecorator($repository); |
67 | 67 | }); |
68 | 68 | |
69 | - $this->app->singleton(TagManager::class, function () { |
|
69 | + $this->app->singleton(TagManager::class, function() { |
|
70 | 70 | return new TagManagerRepository(); |
71 | 71 | }); |
72 | 72 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | if (app()->environment() === 'testing') { |
77 | 77 | return; |
78 | 78 | } |
79 | - $this->app['blade.compiler']->directive('tags', function ($value) { |
|
79 | + $this->app['blade.compiler']->directive('tags', function($value) { |
|
80 | 80 | return "<?php echo TagWidget::show([$value]); ?>"; |
81 | 81 | }); |
82 | 82 | } |