Code Duplication    Length = 14-15 lines in 2 locations

src/MetaBox/MetaBox.php 1 location

@@ 112-126 (lines=15) @@
109
	/**
110
	 * {@inheritdoc}
111
	 */
112
	protected function normalize()
113
	{
114
		foreach( $this->app->config['meta_boxes'] as $id => $metabox ) {
115
			$defaults = [
116
				'condition' => [],
117
				'fields' => [],
118
				'id' => $id,
119
				'post_types' => [],
120
				'slug' => $id,
121
			];
122
			$this->metaboxes[] = $this->setDependencies(
123
				$this->normalizeThis( $metabox, $defaults, $id )
124
			);
125
		}
126
	}
127
128
	/**
129
	 * @param string $depends

src/Settings/Settings.php 1 location

@@ 259-272 (lines=14) @@
256
	/**
257
	 * {@inheritdoc}
258
	 */
259
	protected function normalize()
260
	{
261
		foreach( $this->app->config['settings'] as $id => $metabox ) {
262
			$defaults = [
263
				'condition' => [],
264
				'fields' => [],
265
				'id' => $id,
266
				'slug' => $id,
267
			];
268
			$this->metaboxes[] = $this->setDependencies(
269
				$this->normalizeThis( $metabox, $defaults, $id )
270
			);
271
		}
272
	}
273
274
	/**
275
	 * @param string $name