@@ 254-260 (lines=7) @@ | ||
251 | } |
|
252 | ||
253 | private function parseParamForLabel($subjectParams, $params) { |
|
254 | if (array_key_exists('label', $subjectParams)) { |
|
255 | $params['label'] = [ |
|
256 | 'type' => 'highlight', |
|
257 | 'id' => $subjectParams['label']['id'], |
|
258 | 'name' => $subjectParams['label']['title'] |
|
259 | ]; |
|
260 | } |
|
261 | return $params; |
|
262 | } |
|
263 | ||
@@ 273-279 (lines=7) @@ | ||
270 | 'id' => $subjectParams['acl']['participant'], |
|
271 | 'name' => $user !== null ? $user->getDisplayName() : $subjectParams['acl']['participant'] |
|
272 | ]; |
|
273 | } else { |
|
274 | $params['acl'] = [ |
|
275 | 'type' => 'highlight', |
|
276 | 'id' => $subjectParams['acl']['participant'], |
|
277 | 'name' => $subjectParams['acl']['participant'] |
|
278 | ]; |
|
279 | } |
|
280 | } |
|
281 | return $params; |
|
282 | } |
|
@@ 333-339 (lines=7) @@ | ||
330 | $event->setParsedMessage('<pre class="visualdiff">' . $diff->render($subjectParams['before'], $subjectParams['after']) . '</pre>'); |
|
331 | return $params; |
|
332 | } |
|
333 | if (array_key_exists('before', $subjectParams)) { |
|
334 | $params['before'] = [ |
|
335 | 'type' => 'highlight', |
|
336 | 'id' => $subjectParams['before'], |
|
337 | 'name' => $subjectParams['before'] |
|
338 | ]; |
|
339 | } |
|
340 | if (array_key_exists('after', $subjectParams)) { |
|
341 | $params['after'] = [ |
|
342 | 'type' => 'highlight', |
|
@@ 340-346 (lines=7) @@ | ||
337 | 'name' => $subjectParams['before'] |
|
338 | ]; |
|
339 | } |
|
340 | if (array_key_exists('after', $subjectParams)) { |
|
341 | $params['after'] = [ |
|
342 | 'type' => 'highlight', |
|
343 | 'id' => $subjectParams['after'], |
|
344 | 'name' => $subjectParams['after'] |
|
345 | ]; |
|
346 | } |
|
347 | if (array_key_exists('card', $subjectParams) && $event->getSubject() === ActivityManager::SUBJECT_CARD_UPDATE_TITLE) { |
|
348 | $params['card'] = [ |
|
349 | 'type' => 'highlight', |
|
@@ 347-353 (lines=7) @@ | ||
344 | 'name' => $subjectParams['after'] |
|
345 | ]; |
|
346 | } |
|
347 | if (array_key_exists('card', $subjectParams) && $event->getSubject() === ActivityManager::SUBJECT_CARD_UPDATE_TITLE) { |
|
348 | $params['card'] = [ |
|
349 | 'type' => 'highlight', |
|
350 | 'id' => $subjectParams['after'], |
|
351 | 'name' => $subjectParams['after'] |
|
352 | ]; |
|
353 | } |
|
354 | return $params; |
|
355 | } |
|
356 |