Completed
Push — master ( 92a43d...5ab22d )
by Matthew
04:11
created
src/Fyuze/Http/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      */
95 95
     protected function getParams()
96 96
     {
97
-        return function (ReflectionParameter $param) {
97
+        return function(ReflectionParameter $param) {
98 98
             return $param->getClass();
99 99
         };
100 100
     }
Please login to merge, or discard this patch.
src/Fyuze/Kernel/Application/Web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
         $kernel = new Kernel($this->getContainer(), new Router($routes));
21 21
 
22
-        $this->container->add('request', function () {
22
+        $this->container->add('request', function() {
23 23
             return Request::create();
24 24
         });
25 25
 
Please login to merge, or discard this patch.
src/Fyuze/Kernel/Fyuze.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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
 
Please login to merge, or discard this patch.
src/Fyuze/Kernel/Registry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function locate($key, $member)
126 126
     {
127
-        $aliases = array_filter($this->members, function (&$n) use ($member) {
127
+        $aliases = array_filter($this->members, function(&$n) use ($member) {
128 128
             if ($n instanceof Closure) {
129 129
                 return $n($this) instanceof $member;
130 130
             }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     protected function getParams()
149 149
     {
150
-        return function (ReflectionParameter $param) {
150
+        return function(ReflectionParameter $param) {
151 151
             return $param->getClass();
152 152
         };
153 153
     }
Please login to merge, or discard this patch.
src/Fyuze/Kernel/Services/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function services()
14 14
     {
15
-        $this->registry->add('db', function () {
15
+        $this->registry->add('db', function() {
16 16
 
17 17
             $config = $this->registry->make('config')->get('database');
18 18
 
Please login to merge, or discard this patch.
src/Fyuze/Kernel/Services/Debug.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function services()
26 26
     {
27
-        $this->registry->add('toolbar', function ($app) {
27
+        $this->registry->add('toolbar', function($app) {
28 28
 
29 29
             $toolbar = new Toolbar();
30 30
             $collectors = [];
Please login to merge, or discard this patch.
src/Fyuze/Kernel/Services/Event.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function services()
13 13
     {
14
-        $this->registry->add('emitter', function ($app) {
14
+        $this->registry->add('emitter', function($app) {
15 15
 
16 16
             return (new Emitter())
17 17
                 ->setLogger($app->make('logger'));
Please login to merge, or discard this patch.
src/Fyuze/Kernel/Services/Logger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
         if ($config['log_errors'] === true) {
17 17
 
18
-            $this->registry->add('logger', function () use ($config) {
18
+            $this->registry->add('logger', function() use ($config) {
19 19
                 return new BaseLogger($config['log_prefix']);
20 20
             });
21 21
         }
Please login to merge, or discard this patch.
src/Fyuze/Routing/Matcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
         $route = preg_replace('/{([a-z0-9_-]+)}/i', '(?P<$1>[^/]+)', $route);
65 65
 
66
-        if(substr($route, -1) === '/') {
66
+        if (substr($route, -1) === '/') {
67 67
             $route .= '?';
68 68
         }
69 69
 
Please login to merge, or discard this patch.