Completed
Push — master ( 214110...89b398 )
by Matthew
01:34
created
src/Fyuze/Kernel/Fyuze.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function getConfigPath()
103 103
     {
104
-        return $this->getPath() . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'config';
104
+        return $this->getPath().DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'config';
105 105
     }
106 106
 
107 107
     /**
@@ -130,13 +130,13 @@  discard block
 block discarded – undo
130 130
         $container->add('app', $this);
131 131
         $container->add('registry', $container);
132 132
 
133
-        $container->add('config', function () {
133
+        $container->add('config', function() {
134 134
             return new Config($this->getConfigPath(), 'prod');
135 135
         });
136 136
 
137 137
         $this->config = $container->make('config');
138 138
 
139
-        $container->add('routes', function () {
139
+        $container->add('routes', function() {
140 140
             return new Collection();
141 141
         });
142 142
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     protected function registerServices()
167 167
     {
168
-        $services = array_filter($this->config->get('app.services'), function ($service) {
168
+        $services = array_filter($this->config->get('app.services'), function($service) {
169 169
             return class_exists($service);
170 170
         });
171 171
 
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     protected function loadRoutes()
198 198
     {
199 199
         $router = $this->container->make('routes');
200
-        $routes = realpath($this->getPath() . '/app/routes.php');
200
+        $routes = realpath($this->getPath().'/app/routes.php');
201 201
 
202 202
         if (file_exists($routes)) {
203 203
             require $routes;
Please login to merge, or discard this patch.
src/Fyuze/Http/Response.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
     public function send()
74 74
     {
75 75
         foreach ($this->headers as $key => $value) {
76
-            header("$key: " . implode(',', $value));
76
+            header("$key: ".implode(',', $value));
77 77
         }
78 78
 
79
-        if($this->hasHeader('Content-Type') === false) {
79
+        if ($this->hasHeader('Content-Type') === false) {
80 80
             header(vsprintf(
81 81
                 'Content-Type: %s',
82 82
                 $this->hasHeader('Content-Type') ? $this->getHeader('Content-Type') : [$this->contentType]
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             if ($this->compression) {
90 90
                 ob_start('ob_gzhandler');
91 91
             }
92
-            echo (string)$this->getBody();
92
+            echo (string) $this->getBody();
93 93
         }
94 94
 
95 95
         ob_end_flush();
@@ -100,6 +100,6 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function __toString()
102 102
     {
103
-        return (string)$this->getBody();
103
+        return (string) $this->getBody();
104 104
     }
105 105
 }
Please login to merge, or discard this patch.