@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | public function apply(Injector $injector) |
21 | 21 | { |
22 | - $injector->prepare(FormattedResponder::class, function (FormattedResponder $responder) { |
|
22 | + $injector->prepare(FormattedResponder::class, function(FormattedResponder $responder) { |
|
23 | 23 | return $responder->withValue(TwigFormatter::class, 1.0); |
24 | 24 | }); |
25 | 25 | |
26 | - $injector->prepare(PayloadInterface::class, function () { |
|
26 | + $injector->prepare(PayloadInterface::class, function() { |
|
27 | 27 | return new TemplatePayload(); |
28 | 28 | }); |
29 | 29 |
@@ -39,14 +39,14 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | if (null !== $uri->getPort()) { |
42 | - $host .= ':'.$uri->getPort(); |
|
42 | + $host .= ':' . $uri->getPort(); |
|
43 | 43 | } |
44 | 44 | |
45 | - if (! $this->hasLeadingSlash($path)) { |
|
46 | - $path = rtrim($uri->getPath(), '/').'/'.$path; |
|
45 | + if (!$this->hasLeadingSlash($path)) { |
|
46 | + $path = rtrim($uri->getPath(), '/') . '/' . $path; |
|
47 | 47 | } |
48 | 48 | |
49 | - return $uri->getScheme().'://'.$host.$path; |
|
49 | + return $uri->getScheme() . '://' . $host . $path; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |