Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function handle(Saved $event) |
||
31 | { |
||
32 | if ($event->getGuest()->image()->exists()) { |
||
33 | $ogImage = storage_path('app/public/events/original/').$event->getGuest()->image->name; |
||
|
|||
34 | $thumb100 = storage_path('app/public/events/50-50/').$event->getGuest()->image->name; |
||
35 | |||
36 | $this->imageManager->make($ogImage)->fit(50, 50, function ($constraint) { |
||
37 | $constraint->upsize(); |
||
38 | $constraint->aspectRatio(); |
||
39 | }, 'center')->save($thumb100); |
||
40 | } |
||
43 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.