| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 21 | protected function processParts(array $parts) : array |
|
| 43 | { |
||
| 44 | 21 | $strValue = ''; |
|
| 45 | 21 | foreach ($parts as $part) { |
|
| 46 | 21 | $strValue .= $part->getValue(); |
|
| 47 | } |
||
| 48 | 21 | $comments = \array_values(\array_filter($parts, function ($part) { |
|
| 49 | 21 | return ($part instanceof CommentPart); |
|
| 50 | 21 | })); |
|
| 51 | 21 | return \array_merge([$this->partFactory->newDatePart($strValue)], $comments); |
|
| 52 | } |
||
| 54 |