Test Failed
Push — master ( 0513b2...9d7f3f )
by Alain
01:48
created
src/ShortcodeAttsParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 		$atts_config = $this->getConfigKey( 'atts' );
79 79
 		array_walk( $atts_config,
80 80
 			function ( $att_properties, $att_label ) use ( &$atts ) {
81
-				$atts[ $att_label ] = $att_properties['default'];
81
+				$atts[ $att_label ] = $att_properties[ 'default' ];
82 82
 			}
83 83
 		);
84 84
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 		array_walk( $atts_config,
105 105
 			function ( $att_properties, $att_label ) use ( &$atts ) {
106 106
 				if ( array_key_exists( $att_label, $atts ) ) {
107
-					$validate_function  = $att_properties['validate'];
107
+					$validate_function  = $att_properties[ 'validate' ];
108 108
 					$atts[ $att_label ] = $validate_function( $atts[ $att_label ] );
109 109
 				}
110 110
 			}
Please login to merge, or discard this patch.
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.