| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace App\Modules\V1\Core\Utl; |
||
| 30 | } |
||
| 31 | |||
| 32 | $base = base64_decode(preg_replace('#^data:image/\w+;base64,#i', '', $image)); |
||
| 33 | $image = \Image::make($base); |
||
| 34 | |||
| 35 | return $this->saveImage($image, $dir); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Delete the given image. |
||
| 40 | * |
||
| 41 | * @param object $path |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | public function deleteImage($path) |
||
| 45 | { |
||
| 46 | \Storage::delete($path); |
||
|
|
|||
| 47 | } |
||
| 65 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.