Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function handle(ImageManager $imageManager) |
||
52 | { |
||
53 | if ($this->image) { |
||
54 | if ($this->user->image()->exists()) { |
||
55 | $fileName = $this->user->image->name; |
||
56 | $this->uploadImages($this->user, [$this->image], $imageManager, $fileName); |
||
57 | } else { |
||
58 | $this->uploadImages($this->user, [$this->image], $imageManager); |
||
59 | } |
||
63 |