Code Duplication    Length = 12-12 lines in 2 locations

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

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