| @@ 111-126 (lines=16) @@ | ||
| 108 | * |
|
| 109 | * {@inheritdoc} |
|
| 110 | */ |
|
| 111 | protected function sanitizeDescription($string) |
|
| 112 | { |
|
| 113 | $description = parent::sanitizeDescription($string); |
|
| 114 | if (strpos($description, '/REMI/USTD//') !== false |
|
| 115 | && preg_match('#/REMI/USTD//(.*?)/#s', $description, $results) && !empty($results[1]) |
|
| 116 | ) { |
|
| 117 | return $results[1]; |
|
| 118 | } |
|
| 119 | if (strpos($description, '/REMI/STRD/CUR/') !== false |
|
| 120 | && preg_match('#/REMI/STRD/CUR/(.*?)/#s', $description, $results) && !empty($results[1]) |
|
| 121 | ) { |
|
| 122 | return $results[1]; |
|
| 123 | } |
|
| 124 | ||
| 125 | return $description; |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * Overloaded: Is applicable if first line has INGB. |
|
| @@ 125-140 (lines=16) @@ | ||
| 122 | * |
|
| 123 | * {@inheritdoc} |
|
| 124 | */ |
|
| 125 | protected function sanitizeDescription($string) |
|
| 126 | { |
|
| 127 | $description = parent::sanitizeDescription($string); |
|
| 128 | if (strpos($description, '/REMI/') !== false |
|
| 129 | && preg_match('#/REMI/(.*?)/(ISDT|CSID|RTRN)/#s', $description, $results) && !empty($results[1]) |
|
| 130 | ) { |
|
| 131 | return $results[1]; |
|
| 132 | } |
|
| 133 | if (strpos($description, '/EREF/') !== false |
|
| 134 | && preg_match('#/EREF/(.*?)/(ORDP)/#s', $description, $results) && !empty($results[1]) |
|
| 135 | ) { |
|
| 136 | return $results[1]; |
|
| 137 | } |
|
| 138 | ||
| 139 | return $description; |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * Overloaded: Is applicable if first line has :940:. |
|