@@ -28,13 +28,13 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { |
| 30 | 30 | $this->publishes([ |
| 31 | - dirname(__DIR__).'/config/markdown.php' => config_path('markdown.php'), |
|
| 31 | + dirname(__DIR__) . '/config/markdown.php' => config_path('markdown.php'), |
|
| 32 | 32 | ], 'laravel-html-config'); |
| 33 | 33 | } elseif ($this->app instanceof LumenApplication) { |
| 34 | 34 | $this->app->configure('markdown'); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - Blade::directive('parsehtml', function ($expression) { |
|
| 37 | + Blade::directive('parsehtml', function($expression) { |
|
| 38 | 38 | return "<?php echo parsehtml($expression); ?>"; |
| 39 | 39 | }); |
| 40 | 40 | } |
@@ -46,9 +46,9 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function register() |
| 48 | 48 | { |
| 49 | - $this->mergeConfigFrom(dirname(__DIR__).'/config/markdown.php', 'markdown'); |
|
| 49 | + $this->mergeConfigFrom(dirname(__DIR__) . '/config/markdown.php', 'markdown'); |
|
| 50 | 50 | |
| 51 | - $this->app->singleton(HtmlConverter::class, function ($app) { |
|
| 51 | + $this->app->singleton(HtmlConverter::class, function($app) { |
|
| 52 | 52 | return new HtmlConverter(config('markdown.parsehtml')); |
| 53 | 53 | }); |
| 54 | 54 | |
@@ -62,6 +62,6 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function provides() |
| 64 | 64 | { |
| 65 | - return [HtmlConverter::class, 'parsehtml']; |
|
| 65 | + return [ HtmlConverter::class, 'parsehtml' ]; |
|
| 66 | 66 | } |
| 67 | 67 | } |