| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | private function toDiffArray( StatementList $statementList ): array { |
||
| 44 | $statementArray = []; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var Statement $statement |
||
| 48 | */ |
||
| 49 | foreach ( $statementList as $statement ) { |
||
| 50 | $guid = $statement->getGuid(); |
||
| 51 | if ( $guid === null ) { |
||
| 52 | $statementArray[] = $statement; |
||
| 53 | } else { |
||
| 54 | $statementArray[$guid] = $statement; |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | return $statementArray; |
||
| 59 | } |
||
| 62 |