| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function execute(): CommandResponse |
||
| 20 | { |
||
| 21 | if ($this->parameters) { |
||
| 22 | $this->user->setAvatar($this->parameters); |
||
| 23 | |||
| 24 | $this->result->setData(['avatar' => $this->user->getAvatar()]); |
||
| 25 | $this->container->get('doctrine.orm.entity_manager')->flush($this->user); |
||
| 26 | } |
||
| 27 | |||
| 28 | return $this->result; |
||
| 29 | } |
||
| 30 | } |
||
| 31 |