Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 105-116 (lines=12) @@
102
	/**
103
	 * {@inheritdoc}
104
	 */
105
	public function getKeywords() : Utils\ArrayHash
106
	{
107
		$keywords = [];
108
109
		if (isset($this->composerData['keywords'])) {
110
			$keywords = $this->composerData['keywords'];
111
112
			$keywords = is_array($keywords) ? $keywords : array_map('trim', explode(',', $keywords));
113
		}
114
115
		return Utils\ArrayHash::from($keywords);
116
	}
117
118
	/**
119
	 * {@inheritdoc}
@@ 146-157 (lines=12) @@
143
	/**
144
	 * {@inheritdoc}
145
	 */
146
	public function getLicense() : Utils\ArrayHash
147
	{
148
		$licenses = [];
149
150
		if (isset($this->composerData['license'])) {
151
			$licenses = $this->composerData['license'];
152
153
			$licenses = is_array($licenses) ? $licenses : array_map('trim', explode(',', $licenses));
154
		}
155
156
		return Utils\ArrayHash::from($licenses);
157
	}
158
159
	/**
160
	 * {@inheritdoc}