Completed
Push — master ( 34bb8b...f23d5e )
by
unknown
01:02 queued 20s
created
classes/helpers/FrmShortcodeHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 		$contextual_shortcodes = self::get_contextual_shortcodes();
75 75
 		$result                = array();
76 76
 		foreach ( $contextual_shortcodes as $type => $shortcodes ) {
77
-			$result[ $type ] = array_keys( $shortcodes );
77
+			$result[$type] = array_keys( $shortcodes );
78 78
 		}
79 79
 		return $result;
80 80
 	}
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
 		}
114 114
 
115 115
 		$with_tags = $args['conditional_check'] ? 3 : 2;
116
-		if ( ! empty( $shortcodes[ $with_tags ][ $short_key ] ) ) {
117
-			$tag  = str_replace( '[' . $prefix, '', $shortcodes[0][ $short_key ] );
116
+		if ( ! empty( $shortcodes[$with_tags][$short_key] ) ) {
117
+			$tag  = str_replace( '[' . $prefix, '', $shortcodes[0][$short_key] );
118 118
 			$tag  = str_replace( ']', '', $tag );
119 119
 			$tag  = str_replace( chr( 194 ) . chr( 160 ), ' ', $tag );
120 120
 			$tags = preg_split( '/\s+/', $tag, 2 );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 				$tag = $tags[0];
123 123
 			}
124 124
 		} else {
125
-			$tag = $shortcodes[ $with_tags - 1 ][ $short_key ];
125
+			$tag = $shortcodes[$with_tags - 1][$short_key];
126 126
 		}
127 127
 
128 128
 		return $tag;
Please login to merge, or discard this patch.