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