Code Duplication    Length = 7-7 lines in 3 locations

src/ShortcodeManager.php 3 locations

@@ 155-161 (lines=7) @@
152
	 * @param string $tag Shortcode tag to get the class for.
153
	 * @return string Class name of the Shortcode.
154
	 */
155
	protected function get_shortcode_class( $tag ) {
156
		$key             = [ self::KEY_TAGS, $tag, self::KEY_CUSTOM_CLASS ];
157
		$shortcode_class = $this->hasConfigKey( $key )
158
			? $this->getConfigKey( $key )
159
			: self::DEFAULT_SHORTCODE;
160
		return $shortcode_class;
161
	}
162
163
	/**
164
	 * Get the class name of an implementation of the
@@ 172-178 (lines=7) @@
169
	 * @param string $tag Shortcode tag to get the class for.
170
	 * @return string Class name of the ShortcodeAttsParser.
171
	 */
172
	protected function get_shortcode_atts_parser_class( $tag ) {
173
		$key         = [ self::KEY_TAGS, $tag, self::KEY_CUSTOM_ATTS_PARSER ];
174
		$atts_parser = $this->hasConfigKey( $key )
175
			? $this->getConfigKey( $key )
176
			: self::DEFAULT_SHORTCODE_ATTS_PARSER;
177
		return $atts_parser;
178
	}
179
180
	/**
181
	 * Initialize the Shortcode UI for a single shortcode.
@@ 205-211 (lines=7) @@
202
	 * @param string $tag Configuration settings.
203
	 * @return string Class name of the ShortcodeUI.
204
	 */
205
	protected function get_shortcode_ui_class( $tag ) {
206
		$key      = [ self::KEY_TAGS, $tag, self::KEY_CUSTOM_UI ];
207
		$ui_class = $this->hasConfigKey( $key )
208
			? $this->getConfigKey( $key )
209
			: self::DEFAULT_SHORTCODE_UI;
210
		return $ui_class;
211
	}
212
213
	/**
214
	 * Register all of the shortcode handlers.