Code Duplication    Length = 5-5 lines in 2 locations

src/IPub/Widgets/Widgets/Widget.php 2 locations

@@ 149-153 (lines=5) @@
146
		}
147
148
		// Set badge if exists
149
		if ($badge = $this->data->getBadge()) {
150
			$badge = Utils\Html::el('span')
151
				->addAttributes(['class' => 'badge badge-' . $badge])
152
				->render();
153
		}
154
155
		// Set icon if exists
156
		if ($icon = $this->data->getIcon()) {
@@ 156-160 (lines=5) @@
153
		}
154
155
		// Set icon if exists
156
		if ($icon = $this->data->getIcon()) {
157
			$icon = Utils\Html::el('span')
158
				->addAttributes(['class' => 'icon icon-' . $icon])
159
				->render();
160
		}
161
162
		// Assign basic widget data to template
163
		$this->template->add('badge', $badge);