Conditions | 4 |
Paths | 5 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | private function getDataFromRegistry(array $input, AlbumInterface $item): array |
||
44 | { |
||
45 | $dataArray = []; |
||
46 | |||
47 | foreach ($input as $value) { |
||
48 | if ($value === "author") { |
||
49 | $dataArray["author"] = $item->getAuthor(); |
||
50 | } |
||
51 | |||
52 | if ($value === "album") { |
||
53 | $dataArray["album"] = $item->getAlbum(); |
||
54 | } |
||
55 | } |
||
56 | |||
57 | return $dataArray; |
||
58 | } |
||
60 |