Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
40 | $feeds = $this->feedService->findAllFromAllUsers(); |
||
41 | $result = ['feeds' => []]; |
||
42 | |||
43 | foreach ($feeds as $feed) { |
||
44 | $result['feeds'][] = [ |
||
45 | 'id' => $feed->getId(), |
||
46 | 'userId' => $feed->getUserId() |
||
47 | ]; |
||
48 | } |
||
49 | |||
50 | print(json_encode($result)); |
||
51 | } |
||
52 | |||
54 |