Completed
Push — master ( 7f96cd...27908d )
by Freek
09:27
created

UrlCannotBeDetermined::mediaNotPubliclyAvailable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 1 Features 1
Metric Value
c 4
b 1
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace Spatie\MediaLibrary\Exceptions;
4
5
use Exception;
6
7
class UrlCannotBeDetermined extends Exception
8
{
9
    public static function mediaNotPubliclyAvailable(string $storagePath, string $publicPath)
10
    {
11
        return new static("Storagepath `{$storagePath}` is not part of public path `{$publicPath}`");
12
    }
13
}
14