1 | <?php |
||
18 | class ConsoleDiff extends FirstDiff |
||
19 | { |
||
20 | const UNCLOSED_TAGS = '/<(?P<tag>[a-z;=]+)>(?!.*?<\/(?:(?P=tag)|)>)/i'; |
||
21 | |||
22 | /** @var FirstDiff */ |
||
23 | private $diff; |
||
24 | |||
25 | /** |
||
26 | * ConsoleDiff constructor. |
||
27 | * |
||
28 | * @param FirstDiff|null $differ |
||
29 | */ |
||
30 | public function __construct($differ = null) |
||
34 | |||
35 | /** |
||
36 | * @param string[] $old |
||
37 | * @param string[] $new |
||
38 | * @param int $options |
||
39 | * |
||
40 | * @return string[] |
||
41 | */ |
||
42 | public function lines(array $old, array $new, $options = OutputInterface::OUTPUT_NORMAL) |
||
62 | |||
63 | /** |
||
64 | * Find a list of unclosed tags |
||
65 | * |
||
66 | * @param string $string |
||
67 | * |
||
68 | * @return string[] |
||
69 | */ |
||
70 | private function getUnclosedTags($string) |
||
77 | } |
||
78 |