| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function execute(): CommandResponse |
||
| 18 | { |
||
| 19 | $playersInRoom = array_map( |
||
| 20 | function (User $user) { |
||
| 21 | return [ |
||
| 22 | 'name' => $user->getName(), |
||
| 23 | 'stance' => 'стоит тут.', |
||
| 24 | ]; |
||
| 25 | }, |
||
| 26 | $this->container->get('kingdom.user_service')->getOnlineHumansInRoom( |
||
| 27 | $this->user->getRoom(), |
||
| 28 | $this->user->getId() |
||
| 29 | ) |
||
| 30 | ); |
||
| 31 | |||
| 32 | $this->result->setData($playersInRoom); |
||
| 33 | |||
| 34 | return $this->result; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |