@@ -37,6 +37,6 @@ |
||
37 | 37 | */ |
38 | 38 | public static function hasElement(array $array, $element):bool |
39 | 39 | { |
40 | - return isset($array[$element]) && strlen($array[$element]) > 0; |
|
40 | + return isset($array[$element]) && strlen($array[$element]) > 0; |
|
41 | 41 | } |
42 | 42 | } |
@@ -29,10 +29,10 @@ |
||
29 | 29 | { |
30 | 30 | $parts = parse_url($url); |
31 | 31 | |
32 | - if (! Arrays::hasElement($parts, 'host') ) { |
|
32 | + if (!Arrays::hasElement($parts, 'host')) { |
|
33 | 33 | throw new InvalidUrlException('This URL does not contain a host part'); |
34 | 34 | } |
35 | - if (! Arrays::hasElement($parts, 'scheme') ) { |
|
35 | + if (!Arrays::hasElement($parts, 'scheme')) { |
|
36 | 36 | throw new InvalidUrlException('This URL does not contain a scheme part'); |
37 | 37 | } |
38 | 38 |