| Total Complexity | 1 | 
| Total Lines | 18 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 8 | class ReplaceAsset  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * Remove the asset and attaches a new one.  | 
            ||
| 12 | *  | 
            ||
| 13 | * @param $replace  | 
            ||
| 14 | * @param $with  | 
            ||
| 15 | * @throws \Spatie\MediaLibrary\Exceptions\FileCannotBeAdded  | 
            ||
| 16 | * @throws \Thinktomorrow\AssetLibrary\Exceptions\AssetUploadException  | 
            ||
| 17 | */  | 
            ||
| 18 | 2 | public function handle(HasAsset $model, $replace, $with)  | 
            |
| 28 |