Completed
Pull Request — master (#10)
by ARCANEDEV
08:32
created

InvalidImageUrlException::make()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 1
1
<?php namespace Arcanedev\Gravatar\Exceptions;
2
3
use InvalidArgumentException;
4
5
/**
6
 * Class     InvalidImageUrlException
7
 *
8
 * @package  Arcanedev\Gravatar\Exceptions
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class InvalidImageUrlException extends InvalidArgumentException
12
{
13 4
    public static function make()
14
    {
15 4
        return new static(
16 4
            'The default image specified is not a recognized gravatar "default" and is not a valid URL'
17
        );
18
    }
19
}
20