@@ 126-136 (lines=11) @@ | ||
123 | ||
124 | } |
|
125 | ||
126 | protected function isOpeningIsolatedDiffTag($item, $currentIsolatedDiffTag = null) |
|
127 | { |
|
128 | $tagsToMatch = $currentIsolatedDiffTag !== null ? array($currentIsolatedDiffTag => $this->isolatedDiffTags[$currentIsolatedDiffTag]) : $this->isolatedDiffTags; |
|
129 | foreach ($tagsToMatch as $key => $value) { |
|
130 | if (preg_match("#<".$key."[^>]*>\\s*#iU", $item)) { |
|
131 | return $key; |
|
132 | } |
|
133 | } |
|
134 | ||
135 | return false; |
|
136 | } |
|
137 | ||
138 | protected function isClosingIsolatedDiffTag($item, $currentIsolatedDiffTag = null) |
|
139 | { |
|
@@ 138-148 (lines=11) @@ | ||
135 | return false; |
|
136 | } |
|
137 | ||
138 | protected function isClosingIsolatedDiffTag($item, $currentIsolatedDiffTag = null) |
|
139 | { |
|
140 | $tagsToMatch = $currentIsolatedDiffTag !== null ? array($currentIsolatedDiffTag => $this->isolatedDiffTags[$currentIsolatedDiffTag]) : $this->isolatedDiffTags; |
|
141 | foreach ($tagsToMatch as $key => $value) { |
|
142 | if (preg_match("#</".$key."[^>]*>\\s*#iU", $item)) { |
|
143 | return $key; |
|
144 | } |
|
145 | } |
|
146 | ||
147 | return false; |
|
148 | } |
|
149 | ||
150 | protected function performOperation($operation) |
|
151 | { |