Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 1 | protected function generateGroupBody(array $revisions, $source_url) |
|
36 | { |
||
37 | 1 | $merged_messages = array(); |
|
38 | 1 | $revision_log = $this->revisionLogFactory->getRevisionLog($source_url); |
|
39 | 1 | $revisions_data = $revision_log->getRevisionsData('summary', $revisions); |
|
40 | |||
41 | 1 | foreach ( $revisions as $revision ) { |
|
42 | 1 | $merged_messages[] = ' * r' . $revision . ': ' . $revisions_data[$revision]['msg']; |
|
43 | } |
||
44 | |||
45 | 1 | $merged_messages = array_unique(array_map('trim', $merged_messages)); |
|
46 | |||
47 | 1 | return implode(PHP_EOL, $merged_messages); |
|
48 | } |
||
49 | |||
51 |