Code Duplication    Length = 13-14 lines in 2 locations

app/classes/config.php 2 locations

@@ 97-109 (lines=13) @@
94
	 *
95
	 * @param  array $post_types
96
	 */
97
	private static function init_post_types( $post_types ) {
98
99
		if ( is_array( $post_types ) ) {
100
101
			foreach ( $post_types as $type => $options ) {
102
103
				self::add_post_type( $type, $options['config'], $options['singular'], $options['multiple'] );
104
105
			}
106
		}
107
108
	}
109
110
111
	/**
112
	 * Register Post Type Wrapper
@@ 149-162 (lines=14) @@
146
	 *
147
	 * @param  array $taxonomies
148
	 */
149
	private static function init_taxonomies( $taxonomies ) {
150
151
		if ( is_array( $taxonomies ) ) {
152
153
			foreach ( $taxonomies as $type => $options ) {
154
155
				self::add_taxonomy( $type, $options['for'], $options['config'], $options['singular'], $options['multiple'] );
156
157
			}
158
		}
159
160
	}
161
162
	/**
163
	 * Register taxonomy wrapper
164
	 *
165
	 * @param string $name