@@ 110-120 (lines=11) @@ | ||
107 | ||
108 | } |
|
109 | ||
110 | protected function isOpeningIsolatedDiffTag($item, $currentIsolatedDiffTag = null) |
|
111 | { |
|
112 | $tagsToMatch = $currentIsolatedDiffTag !== null ? array($currentIsolatedDiffTag => $this->isolatedDiffTags[$currentIsolatedDiffTag]) : $this->isolatedDiffTags; |
|
113 | foreach ($tagsToMatch as $key => $value) { |
|
114 | if (preg_match("#<".$key."[^>]*>\\s*#iU", $item)) { |
|
115 | return $key; |
|
116 | } |
|
117 | } |
|
118 | ||
119 | return false; |
|
120 | } |
|
121 | ||
122 | protected function isClosingIsolatedDiffTag($item, $currentIsolatedDiffTag = null) |
|
123 | { |
|
@@ 122-132 (lines=11) @@ | ||
119 | return false; |
|
120 | } |
|
121 | ||
122 | protected function isClosingIsolatedDiffTag($item, $currentIsolatedDiffTag = null) |
|
123 | { |
|
124 | $tagsToMatch = $currentIsolatedDiffTag !== null ? array($currentIsolatedDiffTag => $this->isolatedDiffTags[$currentIsolatedDiffTag]) : $this->isolatedDiffTags; |
|
125 | foreach ($tagsToMatch as $key => $value) { |
|
126 | if (preg_match("#</".$key."[^>]*>\\s*#iU", $item)) { |
|
127 | return $key; |
|
128 | } |
|
129 | } |
|
130 | ||
131 | return false; |
|
132 | } |
|
133 | ||
134 | protected function performOperation($operation) |
|
135 | { |