Code Duplication    Length = 7-7 lines in 2 locations

Markdown.php 2 locations

@@ 189-195 (lines=7) @@
186
	 */
187
	protected function renderLink($block)
188
	{
189
		if (isset($block['refkey'])) {
190
			if (($ref = $this->lookupReference($block['refkey'])) !== false) {
191
				$block = array_merge($block, $ref);
192
			} else {
193
				return $block['orig'];
194
			}
195
		}
196
197
		$url = $block['url'];
198
		$text = $this->renderAbsy($block['text']);
@@ 216-222 (lines=7) @@
213
	 */
214
	protected function renderImage($block)
215
	{
216
		if (isset($block['refkey'])) {
217
			if (($ref = $this->lookupReference($block['refkey'])) !== false) {
218
				$block = array_merge($block, $ref);
219
			} else {
220
				return $block['orig'];
221
			}
222
		}
223
224
		// TODO create figure with caption with title
225
		$url = $this->escapeUrl($block['url']);