Conditions | 4 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4.0218 |
Changes | 0 |
1 | <?php |
||
39 | public function getPhotos() |
||
40 | 1 | { |
|
41 | 1 | $all_photos = []; |
|
42 | |||
43 | if ($these_photos = $this->getProperty('photos')) { |
||
44 | foreach ($these_photos as $photos) { |
||
45 | 1 | $new_photos = []; |
|
46 | 1 | foreach ($photos as $photo) { |
|
47 | 1 | $new_photos[] = new PhotoSize($photo); |
|
48 | 1 | } |
|
49 | 1 | $all_photos[] = $new_photos; |
|
50 | } |
||
51 | } |
||
52 | 1 | ||
53 | return $all_photos; |
||
54 | } |
||
55 | } |
||
56 |