Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.7085 |
Changes | 0 |
1 | <?php |
||
27 | 1 | public function getReferences() { |
|
28 | 1 | $references = []; |
|
29 | 1 | if ( !isset( $this->claim['references'] ) ) { |
|
30 | 1 | return $references; |
|
31 | } |
||
32 | foreach ( $this->claim['references'] as $ref ) { |
||
|
|||
33 | $references[] = new Reference( $ref, $this->lang, $this->cache ); |
||
34 | } |
||
35 | return $references; |
||
36 | } |
||
38 |