@@ -130,7 +130,7 @@ |
||
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | 132 | * Get Compiled Attributes. |
| 133 | - * @return \Webwizo\Shortcodes\Shortcode |
|
| 133 | + * @return Shortcode |
|
| 134 | 134 | */ |
| 135 | 135 | protected function compileShortcode($matches) |
| 136 | 136 | { |
@@ -352,7 +352,7 @@ |
||
| 352 | 352 | . '\\[\\/\\2\\]' // Closing shortcode tag |
| 353 | 353 | . ')?' |
| 354 | 354 | . ')' |
| 355 | - . '(\\]?)'; // 6: Optional second closing brocket for escaping shortcodes: [[tag]] |
|
| 355 | + . '(\\]?)'; // 6: Optional second closing brocket for escaping shortcodes: [[tag]] |
|
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | /** |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | /** |
| 93 | 93 | * Get the services provided by the provider. |
| 94 | 94 | * |
| 95 | - * @return array |
|
| 95 | + * @return string[] |
|
| 96 | 96 | */ |
| 97 | 97 | public function provides() |
| 98 | 98 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function registerShortcodeCompiler() |
| 49 | 49 | { |
| 50 | - $this->app->singleton('shortcode.compiler', function ($app) { |
|
| 50 | + $this->app->singleton('shortcode.compiler', function($app) { |
|
| 51 | 51 | return new ShortcodeCompiler(); |
| 52 | 52 | }); |
| 53 | 53 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 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,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function registerView() |
| 69 | 69 | { |
| 70 | - $this->app->singleton('view', function ($app) { |
|
| 70 | + $this->app->singleton('view', function($app) { |
|
| 71 | 71 | // Next we need to grab the engine resolver instance that will be used by the |
| 72 | 72 | // environment. The resolver will be used by an environment to get each of |
| 73 | 73 | // the various engine implementations such as plain PHP or Blade engine. |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function testRegistrationAndCompileShortcode() |
| 25 | 25 | { |
| 26 | - $this->shortcode->register('b', function ($shortcode, $content) { |
|
| 26 | + $this->shortcode->register('b', function($shortcode, $content) { |
|
| 27 | 27 | return sprintf('<strong class="%s">%s</strong>', $shortcode->class, $content); |
| 28 | 28 | }); |
| 29 | 29 | |