@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Check Need Trait. |
|
| 4 | - * |
|
| 5 | - * @package BrightNucleus\Shortcode |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * Check Need Trait. |
|
| 4 | + * |
|
| 5 | + * @package BrightNucleus\Shortcode |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\Shortcode; |
| 13 | 13 | |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Shortcode Base Implementation. |
|
| 4 | - * |
|
| 5 | - * @package BrightNucleus\Shortcode |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * Shortcode Base Implementation. |
|
| 4 | + * |
|
| 5 | + * @package BrightNucleus\Shortcode |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\Shortcode; |
| 13 | 13 | |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Shortcode Attributes Parser Interface. |
|
| 4 | - * |
|
| 5 | - * @package BrightNucleus\Shortcode |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * Shortcode Attributes Parser Interface. |
|
| 4 | + * |
|
| 5 | + * @package BrightNucleus\Shortcode |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\Shortcode; |
| 13 | 13 | |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Shortcode Interface. |
|
| 4 | - * |
|
| 5 | - * @package BrightNucleus\Shortcode |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * Shortcode Interface. |
|
| 4 | + * |
|
| 5 | + * @package BrightNucleus\Shortcode |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\Shortcode; |
| 13 | 13 | |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Shortcode Manager. |
|
| 4 | - * |
|
| 5 | - * @package BrightNucleus\Shortcode |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * Shortcode Manager. |
|
| 4 | + * |
|
| 5 | + * @package BrightNucleus\Shortcode |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\Shortcode; |
| 13 | 13 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $atts_parser = new $shortcode_atts_parser( |
| 124 | 124 | $this->config->getSubConfig( $tag ) |
| 125 | 125 | ); |
| 126 | - $this->shortcodes[] = new $shortcode_class( |
|
| 126 | + $this->shortcodes[ ] = new $shortcode_class( |
|
| 127 | 127 | $tag, |
| 128 | 128 | $this->config->getSubConfig( $tag ), |
| 129 | 129 | $atts_parser, |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | protected function init_shortcode_ui( $tag ) { |
| 177 | 177 | $shortcode_ui_class = $this->get_shortcode_ui_class( $tag ); |
| 178 | 178 | |
| 179 | - $this->shortcode_uis[] = new $shortcode_ui_class( |
|
| 179 | + $this->shortcode_uis[ ] = new $shortcode_ui_class( |
|
| 180 | 180 | $tag, |
| 181 | 181 | $this->config->getSubConfig( $tag, self::KEY_UI ), |
| 182 | 182 | $this->dependencies |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | public function register( $context = null ) { |
| 210 | 210 | $context = $this->validate_context( $context ); |
| 211 | - $context['page_template'] = $this->get_page_template(); |
|
| 211 | + $context[ 'page_template' ] = $this->get_page_template(); |
|
| 212 | 212 | |
| 213 | 213 | array_walk( $this->shortcodes, |
| 214 | 214 | function ( $shortcode ) use ( $context ) { |