Code Duplication    Length = 14-14 lines in 2 locations

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

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