Completed
Branch master (8d585f)
by Alex
02:13
created
src/TwigFormatter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     protected $environment;
16 16
 
17 17
     /**
18
-     * @param Twig_Environment $environment
18
+     * @param \Twig_Environment $environment
19 19
      * @param Httpstatus       $httpStatus
20 20
      */
21 21
     public function __construct(\Twig_Environment $environment, Httpstatus $httpStatus)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Asmaster\EquipTwig;
4 4
 
5
-use Equip\Payload;
6 5
 use Equip\Adr\PayloadInterface;
7 6
 use Equip\Formatter\HtmlFormatter;
8 7
 use Lukasoppermann\Httpstatus\Httpstatus;
Please login to merge, or discard this patch.
src/Extension/RequestExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
             $host .= ':' . $uri->getPort();
44 44
         }
45 45
 
46
-        if (! $this->hasLeadingSlash($path)) {
46
+        if (!$this->hasLeadingSlash($path)) {
47 47
             $path = rtrim($uri->getPath(), '/') . '/' . $path;
48 48
         }
49 49
 
50
-        return $uri->getScheme() . '://' . $host.$path;
50
+        return $uri->getScheme() . '://' . $host . $path;
51 51
     }
52 52
 
53 53
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public function generateRelativeUrl($path)
58 58
     {
59 59
         if ($this->isNetworkPath($path)
60
-            || ! $this->hasLeadingSlash($path)
60
+            || !$this->hasLeadingSlash($path)
61 61
         ) {
62 62
             return $path;
63 63
         }
Please login to merge, or discard this patch.
src/Configuration/TwigConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.