@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * |
| 62 | 62 | * @var ShortcodeInterface[] |
| 63 | 63 | */ |
| 64 | - protected $shortcodes = []; |
|
| 64 | + protected $shortcodes = [ ]; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * DependencyManagerInterface implementation. |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * |
| 80 | 80 | * @var ShortcodeUIInterface[] |
| 81 | 81 | */ |
| 82 | - protected $shortcode_uis = []; |
|
| 82 | + protected $shortcode_uis = [ ]; |
|
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * Instantiate a ShortcodeManager object. |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | [ 'config' => $this->config->getSubConfig( $tag ) ] |
| 137 | 137 | ); |
| 138 | 138 | |
| 139 | - $this->shortcodes[] = $this->instantiate( |
|
| 139 | + $this->shortcodes[ ] = $this->instantiate( |
|
| 140 | 140 | ShortcodeInterface::class, |
| 141 | 141 | $shortcode_class, |
| 142 | 142 | [ |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | protected function init_shortcode_ui( $tag ) { |
| 202 | 202 | $shortcode_ui_class = $this->get_shortcode_ui_class( $tag ); |
| 203 | 203 | |
| 204 | - $this->shortcode_uis[] = $this->instantiate( |
|
| 204 | + $this->shortcode_uis[ ] = $this->instantiate( |
|
| 205 | 205 | ShortcodeUIInterface::class, |
| 206 | 206 | $shortcode_ui_class, |
| 207 | 207 | [ |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | */ |
| 241 | 241 | public function register( $context = null ) { |
| 242 | 242 | $context = $this->validate_context( $context ); |
| 243 | - $context['page_template'] = $this->get_page_template(); |
|
| 243 | + $context[ 'page_template' ] = $this->get_page_template(); |
|
| 244 | 244 | |
| 245 | 245 | array_walk( $this->shortcodes, |
| 246 | 246 | function ( ShortcodeInterface $shortcode ) use ( $context ) { |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | * |
| 316 | 316 | * @return string|false Rendered HTML. |
| 317 | 317 | */ |
| 318 | - public function do_tag( $tag, array $atts = [], $content = null ) { |
|
| 318 | + public function do_tag( $tag, array $atts = [ ], $content = null ) { |
|
| 319 | 319 | \BrightNucleus\Shortcode\do_tag( $tag, $atts, $content ); |
| 320 | 320 | } |
| 321 | 321 | |