Code Duplication    Length = 7-7 lines in 2 locations

Markdown.php 2 locations

@@ 184-190 (lines=7) @@
181
	 */
182
	protected function renderLink($block)
183
	{
184
		if (isset($block['refkey'])) {
185
			if (($ref = $this->lookupReference($block['refkey'])) !== false) {
186
				$block = array_merge($block, $ref);
187
			} else {
188
				return $block['orig'];
189
			}
190
		}
191
192
		$url = $block['url'];
193
		$text = $this->renderAbsy($block['text']);
@@ 211-217 (lines=7) @@
208
	 */
209
	protected function renderImage($block)
210
	{
211
		if (isset($block['refkey'])) {
212
			if (($ref = $this->lookupReference($block['refkey'])) !== false) {
213
				$block = array_merge($block, $ref);
214
			} else {
215
				return $block['orig'];
216
			}
217
		}
218
219
		// TODO create figure with caption with title
220
		$url = $this->escapeUrl($block['url']);