| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function execute(int $pageId, string $type = 'follow'):array |
||
| 20 | { |
||
| 21 | $stats = $this->reportingCharacteristicsRepository->getStatsByDepartment($pageId, $type); |
||
| 22 | $farming = $this->reportingCharacteristicsRepository->getCharacteristicsByUserPage($pageId, $type, Characteristic::FARMING_TYPE); |
||
| 23 | $cropping = $this->reportingCharacteristicsRepository->getCharacteristicsByUserPage($pageId, $type, Characteristic::CROPPING_SYSTEM); |
||
| 24 | return [ |
||
| 25 | 'department' => $stats, |
||
| 26 | 'characteristics' => [ |
||
| 27 | Characteristic::FARMING_TYPE => $farming, |
||
| 28 | Characteristic::CROPPING_SYSTEM => $cropping |
||
| 29 | ] |
||
| 33 |