Code Duplication    Length = 14-14 lines in 2 locations

src/IPub/Packages/Entities/Package.php 2 locations

@@ 183-196 (lines=14) @@
180
	/**
181
	 * {@inheritdoc}
182
	 */
183
	public function getRequire() : array
184
	{
185
		$ret = [];
186
187
		if (isset($this->composerData['require'])) {
188
			foreach ($this->composerData['require'] as $name => $require) {
189
				if (strpos($name, '/') !== FALSE) {
190
					$ret[] = $name;
191
				}
192
			}
193
		}
194
195
		return $ret;
196
	}
197
198
	/**
199
	 * {@inheritdoc}
@@ 201-214 (lines=14) @@
198
	/**
199
	 * {@inheritdoc}
200
	 */
201
	public function getRequireDev() : array
202
	{
203
		$ret = [];
204
205
		if (isset($this->composerData['require-dev'])) {
206
			foreach ($this->composerData['require-dev'] as $name => $require) {
207
				if (strpos($name, '/') !== FALSE) {
208
					$ret[] = $name;
209
				}
210
			}
211
		}
212
213
		return $ret;
214
	}
215
216
	/**
217
	 * {@inheritdoc}