@@ -25,8 +25,9 @@ public function enableCompiler()
25
25
$ state = $ this ->app ['config ' ]->get ('laravel-shortcodes::enabled ' , false );
26
26
27
27
// enable when needed
28
- if ($ state )
28
+ if ($ state ) {
29
29
$ this ->app ['shortcode.compiler ' ]->enable ();
30
+ }
30
31
}
31
32
32
33
/**
@@ -46,8 +47,7 @@ public function register()
46
47
*/
47
48
public function registerShortcodeCompiler ()
48
49
{
49
- $ this ->app ->singleton ('shortcode.compiler ' , function ($ app )
50
- {
50
+ $ this ->app ->singleton ('shortcode.compiler ' , function ($ app ) {
51
51
return new ShortcodeCompiler ();
52
52
});
53
53
}
@@ -57,7 +57,7 @@ public function registerShortcodeCompiler()
57
57
*/
58
58
public function registerShortcode ()
59
59
{
60
- $ this ->app ->singleton ('shortcode ' , function ($ app ) {
60
+ $ this ->app ->singleton ('shortcode ' , function ($ app ) {
61
61
return new Shortcode ($ app ['shortcode.compiler ' ]);
62
62
});
63
63
}
@@ -67,8 +67,7 @@ public function registerShortcode()
67
67
*/
68
68
public function registerView ()
69
69
{
70
- $ this ->app ->singleton ('view ' , function ($ app )
71
- {
70
+ $ this ->app ->singleton ('view ' , function ($ app ) {
72
71
// Next we need to grab the engine resolver instance that will be used by the
73
72
// environment. The resolver will be used by an environment to get each of
74
73
// the various engine implementations such as plain PHP or Blade engine.
@@ -102,4 +101,4 @@ public function provides()
102
101
'view '
103
102
);
104
103
}
105
- }
104
+ }
0 commit comments