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

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