Passed
Branch master (891229)
by Alain
02:50
created
src/Shortcode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
 		Assert\that( $view )->string()->notEmpty()->file();
180 180
 
181 181
 		ob_start();
182
-		include( $this->config['view'] );
182
+		include( $this->config[ 'view' ] );
183 183
 
184 184
 		return ob_get_clean();
185 185
 	}
Please login to merge, or discard this patch.
src/ShortcodeManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.