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

BadProxyUrlException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromEnvUrl() 0 3 1
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