Test Failed
Push — master ( cff1bb...0513b2 )
by Alain
05:46
created
src/ShortcodeManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 *
64 64
 	 * @var ShortcodeInterface[]
65 65
 	 */
66
-	protected $shortcodes = [];
66
+	protected $shortcodes = [ ];
67 67
 
68 68
 	/**
69 69
 	 * DependencyManagerInterface implementation.
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 *
91 91
 	 * @var ShortcodeUIInterface[]
92 92
 	 */
93
-	protected $shortcode_uis = [];
93
+	protected $shortcode_uis = [ ];
94 94
 
95 95
 	/**
96 96
 	 * Instantiate a ShortcodeManager object.
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 			[ 'config' => $this->config->getSubConfig( $tag ) ]
155 155
 		);
156 156
 
157
-		$this->shortcodes[] = $this->instantiate(
157
+		$this->shortcodes[ ] = $this->instantiate(
158 158
 			ShortcodeInterface::class,
159 159
 			$shortcode_class,
160 160
 			[
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 	protected function init_shortcode_ui( $tag ) {
221 221
 		$shortcode_ui_class = $this->get_shortcode_ui_class( $tag );
222 222
 
223
-		$this->shortcode_uis[] = $this->instantiate(
223
+		$this->shortcode_uis[ ] = $this->instantiate(
224 224
 			ShortcodeUIInterface::class,
225 225
 			$shortcode_ui_class,
226 226
 			[
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 	 */
260 260
 	public function register( $context = null ) {
261 261
 		$context                  = $this->validate_context( $context );
262
-		$context['page_template'] = $this->get_page_template();
262
+		$context[ 'page_template' ] = $this->get_page_template();
263 263
 
264 264
 		array_walk( $this->shortcodes,
265 265
 			function ( ShortcodeInterface $shortcode ) use ( $context ) {
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 	 *
335 335
 	 * @return string|false Rendered HTML.
336 336
 	 */
337
-	public function do_tag( $tag, array $atts = [], $content = null ) {
337
+	public function do_tag( $tag, array $atts = [ ], $content = null ) {
338 338
 		return \BrightNucleus\Shortcode\do_tag( $tag, $atts, $content );
339 339
 	}
340 340
 
Please login to merge, or discard this patch.