Code Duplication    Length = 13-14 lines in 2 locations

app/core/classes/Config.php 2 locations

@@ 106-118 (lines=13) @@
103
	 *
104
	 * @param array $post_types Custom post types to be registered.
105
	 */
106
	private static function init_post_types( $post_types ) {
107
		if ( is_array( $post_types ) ) {
108
			foreach ( $post_types as $type => $options ) {
109
				self::add_post_type(
110
					$type,
111
					$options['config'],
112
					$options['singular'],
113
					$options['multiple']
114
				);
115
			}
116
		}
117
	}
118
119
	/**
120
	 * Wrapper for register_post_type().
121
	 *
@@ 153-166 (lines=14) @@
150
	 *
151
	 * @param array $taxonomies Taxonomies to be registered.
152
	 */
153
	private static function init_taxonomies( $taxonomies ) {
154
		if ( is_array( $taxonomies ) ) {
155
			foreach ( $taxonomies as $type => $options ) {
156
				self::add_taxonomy(
157
					$type,
158
					$options['for'],
159
					$options['config'],
160
					$options['singular'],
161
					$options['multiple']
162
				);
163
			}
164
		}
165
	}
166
167
	/**
168
	 * Wrapper for register_taxonomy().
169
	 *