Code Duplication    Length = 5-6 lines in 2 locations

src/PostType/PostType.php 1 location

@@ 75-80 (lines=6) @@
72
	 */
73
	protected function normalize()
74
	{
75
		foreach( $this->app->config['post_types'] as $type => $args ) {
76
			$this->types[$type] = apply_filters( 'pollux/post_type/args',
77
				$this->normalizeThis( $args, static::POST_TYPE_DEFAULTS, $type ),
78
				$type
79
			);
80
		}
81
	}
82
83
	/**

src/Taxonomy/Taxonomy.php 1 location

@@ 103-107 (lines=5) @@
100
	 */
101
	protected function normalize()
102
	{
103
		foreach( $this->app->config['taxonomies'] as $taxonomy => $args ) {
104
			$this->taxonomies[$taxonomy] = apply_filters( 'pollux/taxonomy/args',
105
				$this->normalizeThis( $args, static::TAXONOMY_DEFAULTS, $taxonomy )
106
			);
107
		}
108
		$this->taxonomies = array_diff_key(
109
			$this->taxonomies,
110
			get_taxonomies( ['_builtin' => true] )