Completed
Push — master ( 818423...899d9a )
by Mathieu
02:02
created
src/Charcoal/App/Route/TemplateRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $response->getBody()->write($templateContent);
102 102
 
103 103
         if (!empty($config['headers'])) {
104
-            foreach($config['headers'] as $name => $val) {
104
+            foreach ($config['headers'] as $name => $val) {
105 105
                 $response = $response->withHeader($name, $val);
106 106
             }
107 107
         }
Please login to merge, or discard this patch.
src/Charcoal/App/Route/ActionRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
         // Set headers if necessary.
82 82
         if (!empty($config['headers'])) {
83
-            foreach($config['headers'] as $name => $val) {
83
+            foreach ($config['headers'] as $name => $val) {
84 84
                 $response = $response->withHeader($name, $val);
85 85
             }
86 86
         }
Please login to merge, or discard this patch.
src/Charcoal/App/Route/RouteConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @var string[]
33 33
      */
34
-    private $methods = [ 'GET' ];
34
+    private $methods = ['GET'];
35 35
 
36 36
     /**
37 37
      * Response controller classname
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     public function setHeaders(array $headers)
187 187
     {
188 188
         $this->headers = [];
189
-        foreach($headers as $name => $val) {
189
+        foreach ($headers as $name => $val) {
190 190
             $this->addHeader($name, $val);
191 191
         }
192 192
         return $this;
Please login to merge, or discard this patch.