|
@@ 654-665 (lines=12) @@
|
| 651 |
|
$countMatches = preg_match_all(self::REGEX_DELIMITER . '\d' . self::REGEX_DELIMITER, $pattern, |
| 652 |
|
$matches); |
| 653 |
|
|
| 654 |
|
if (!$countMatches) { |
| 655 |
|
$tmpPatterns[$pattern] = $i; |
| 656 |
|
} else { |
| 657 |
|
$compressedPattern = preg_replace(self::REGEX_DELIMITER . '\d' . self::REGEX_DELIMITER, '(\d)', |
| 658 |
|
$pattern); |
| 659 |
|
|
| 660 |
|
if (!isset($tmpPatterns[$compressedPattern])) { |
| 661 |
|
$tmpPatterns[$compressedPattern] = array('first' => $pattern); |
| 662 |
|
} |
| 663 |
|
|
| 664 |
|
$tmpPatterns[$compressedPattern][$i] = $matches[0]; |
| 665 |
|
} |
| 666 |
|
} |
| 667 |
|
|
| 668 |
|
if (!empty($properties['Parent'])) { |
|
@@ 757-768 (lines=12) @@
|
| 754 |
|
$countMatches = preg_match_all(self::REGEX_DELIMITER . '\d' . self::REGEX_DELIMITER, $pattern, |
| 755 |
|
$matches); |
| 756 |
|
|
| 757 |
|
if (!$countMatches) { |
| 758 |
|
$tmpPatterns[$pattern] = $i; |
| 759 |
|
} else { |
| 760 |
|
$compressedPattern = preg_replace(self::REGEX_DELIMITER . '\d' . self::REGEX_DELIMITER, '(\d)', |
| 761 |
|
$pattern); |
| 762 |
|
|
| 763 |
|
if (!isset($tmpPatterns[$compressedPattern])) { |
| 764 |
|
$tmpPatterns[$compressedPattern] = array('first' => $pattern); |
| 765 |
|
} |
| 766 |
|
|
| 767 |
|
$tmpPatterns[$compressedPattern][$i] = $matches[0]; |
| 768 |
|
} |
| 769 |
|
} |
| 770 |
|
|
| 771 |
|
if (!empty($properties['Parent'])) { |