Code Duplication    Length = 9-9 lines in 2 locations

MarkdownExtra.php 1 location

@@ 86-94 (lines=9) @@
83
			$this->references[$label] = [
84
				'url' => $this->replaceEscape($matches[2]),
85
			];
86
			if (isset($matches[3])) {
87
				$this->references[$label]['title'] = $matches[3];
88
			} else {
89
				// title may be on the next line
90
				if (isset($lines[$current + 1]) && preg_match('/^\s+[\(\'"](.+?)[\)\'"]\s*$/', $lines[$current + 1], $matches)) {
91
					$this->references[$label]['title'] = $matches[1];
92
					$current++;
93
				}
94
			}
95
			if (isset($matches[5])) {
96
				$this->references[$label]['attributes'] = $matches[5];
97
			}

inline/LinkTrait.php 1 location

@@ 268-276 (lines=9) @@
265
			$this->references[$label] = [
266
				'url' => $this->replaceEscape($matches[2]),
267
			];
268
			if (isset($matches[3])) {
269
				$this->references[$label]['title'] = $matches[3];
270
			} else {
271
				// title may be on the next line
272
				if (isset($lines[$current + 1]) && preg_match('/^\s+[\(\'"](.+?)[\)\'"]\s*$/', $lines[$current + 1], $matches)) {
273
					$this->references[$label]['title'] = $matches[1];
274
					$current++;
275
				}
276
			}
277
			$current++;
278
		}
279
		return [false, --$current];