Completed
Push — master ( b6bf7e...f5a121 )
by Marko
17:00
created

BadProxyUrlException::fromEnvUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the FOSCKEditor Bundle.
5
 *
6
 * (c) 2018 - present  Friends of Symfony
7
 * (c) 2009 - 2017     Eric GELOEN <[email protected]>
8
 *
9
 * For the full copyright and license information, please read the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace FOS\CKEditorBundle\Exception;
14
15
use RuntimeException;
16
17
/**
18
 * @author Marko Kunic <[email protected]>
19
 */
20
final class BadProxyUrlException extends RuntimeException implements FOSCKEditorException
21
{
22
    public static function fromEnvUrl(string $url): self
23
    {
24
        return new static(sprintf('Unable to parse provided proxy url "%s".', $url));
25
    }
26
}
27