| @@ 239-245 (lines=7) @@ | ||
| 236 | } |
|
| 237 | ||
| 238 | private function parseParamForLabel($subjectParams, $params) { |
|
| 239 | if (array_key_exists('label', $subjectParams)) { |
|
| 240 | $params['label'] = [ |
|
| 241 | 'type' => 'highlight', |
|
| 242 | 'id' => $subjectParams['label']['id'], |
|
| 243 | 'name' => $subjectParams['label']['title'] |
|
| 244 | ]; |
|
| 245 | } |
|
| 246 | return $params; |
|
| 247 | } |
|
| 248 | ||
| @@ 258-264 (lines=7) @@ | ||
| 255 | 'id' => $subjectParams['acl']['participant'], |
|
| 256 | 'name' => $user !== null ? $user->getDisplayName() : $subjectParams['acl']['participant'] |
|
| 257 | ]; |
|
| 258 | } else { |
|
| 259 | $params['acl'] = [ |
|
| 260 | 'type' => 'highlight', |
|
| 261 | 'id' => $subjectParams['acl']['participant'], |
|
| 262 | 'name' => $subjectParams['acl']['participant'] |
|
| 263 | ]; |
|
| 264 | } |
|
| 265 | } |
|
| 266 | return $params; |
|
| 267 | } |
|
| @@ 298-304 (lines=7) @@ | ||
| 295 | $event->setParsedMessage('<pre class="visualdiff">' . $diff->render($subjectParams['before'], $subjectParams['after']) . '</pre>'); |
|
| 296 | return $params; |
|
| 297 | } |
|
| 298 | if (array_key_exists('before', $subjectParams)) { |
|
| 299 | $params['before'] = [ |
|
| 300 | 'type' => 'highlight', |
|
| 301 | 'id' => $subjectParams['before'], |
|
| 302 | 'name' => $subjectParams['before'] |
|
| 303 | ]; |
|
| 304 | } |
|
| 305 | if (array_key_exists('after', $subjectParams)) { |
|
| 306 | $params['after'] = [ |
|
| 307 | 'type' => 'highlight', |
|
| @@ 305-311 (lines=7) @@ | ||
| 302 | 'name' => $subjectParams['before'] |
|
| 303 | ]; |
|
| 304 | } |
|
| 305 | if (array_key_exists('after', $subjectParams)) { |
|
| 306 | $params['after'] = [ |
|
| 307 | 'type' => 'highlight', |
|
| 308 | 'id' => $subjectParams['after'], |
|
| 309 | 'name' => $subjectParams['after'] |
|
| 310 | ]; |
|
| 311 | } |
|
| 312 | return $params; |
|
| 313 | } |
|
| 314 | ||