@@ -372,7 +372,7 @@ |
||
372 | 372 | * @param array $args Arguments passed to the constructor or |
373 | 373 | * factory method. |
374 | 374 | * |
375 | - * @return object Object that implements the interface. |
|
375 | + * @return callable Object that implements the interface. |
|
376 | 376 | * @throws FailedToInstantiateObject If no valid object could be |
377 | 377 | * instantiated. |
378 | 378 | */ |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @var ShortcodeInterface[] |
64 | 64 | */ |
65 | - protected $shortcodes = []; |
|
65 | + protected $shortcodes = [ ]; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * DependencyManagerInterface implementation. |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @var ShortcodeUIInterface[] |
91 | 91 | */ |
92 | - protected $shortcode_uis = []; |
|
92 | + protected $shortcode_uis = [ ]; |
|
93 | 93 | |
94 | 94 | /** |
95 | 95 | * External injector to use. |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | [ 'config' => $this->config->getSubConfig( $tag ) ] |
175 | 175 | ); |
176 | 176 | |
177 | - $this->shortcodes[] = $this->instantiate( |
|
177 | + $this->shortcodes[ ] = $this->instantiate( |
|
178 | 178 | ShortcodeInterface::class, |
179 | 179 | $shortcode_class, |
180 | 180 | [ |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | protected function init_shortcode_ui( $tag ) { |
241 | 241 | $shortcode_ui_class = $this->get_shortcode_ui_class( $tag ); |
242 | 242 | |
243 | - $this->shortcode_uis[] = $this->instantiate( |
|
243 | + $this->shortcode_uis[ ] = $this->instantiate( |
|
244 | 244 | ShortcodeUIInterface::class, |
245 | 245 | $shortcode_ui_class, |
246 | 246 | [ |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | $this->init_shortcodes(); |
282 | 282 | |
283 | 283 | $context = $this->validate_context( $context ); |
284 | - $context['page_template'] = $this->get_page_template(); |
|
284 | + $context[ 'page_template' ] = $this->get_page_template(); |
|
285 | 285 | |
286 | 286 | array_walk( $this->shortcodes, |
287 | 287 | function ( ShortcodeInterface $shortcode ) use ( $context ) { |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | * |
357 | 357 | * @return string|false Rendered HTML. |
358 | 358 | */ |
359 | - public function do_tag( $tag, array $atts = [], $content = null ) { |
|
359 | + public function do_tag( $tag, array $atts = [ ], $content = null ) { |
|
360 | 360 | return \BrightNucleus\Shortcode\do_tag( $tag, $atts, $content ); |
361 | 361 | } |
362 | 362 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @since 0.2.3 |
81 | 81 | */ |
82 | - protected $context = []; |
|
82 | + protected $context = [ ]; |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Instantiate Basic Shortcode. |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * @return string The shortcode's HTML output. |
177 | 177 | */ |
178 | 178 | public function render( $atts, $content = null, $tag = null ) { |
179 | - $atts = $this->atts_parser->parse_atts( $atts, $this->get_tag() ); |
|
179 | + $atts = $this->atts_parser->parse_atts( $atts, $this->get_tag() ); |
|
180 | 180 | $this->enqueue_dependencies( $this->get_dependency_handles(), $atts ); |
181 | 181 | |
182 | 182 | return $this->render_view( |