@@ -31,7 +31,7 @@ |
||
| 31 | 31 | ) : \Psr\Http\Message\ResponseInterface { |
| 32 | 32 | $middlewares[] = Caller::class; |
| 33 | 33 | |
| 34 | - $relayBuilder = new RelayBuilder(function ($instance) use ($class, $method, $vars) { |
|
| 34 | + $relayBuilder = new RelayBuilder(function($instance) use ($class, $method, $vars) { |
|
| 35 | 35 | if ($instance == Caller::class) { |
| 36 | 36 | return new $instance($class, $method, $vars); |
| 37 | 37 | } |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
| 118 | 118 | |
| 119 | 119 | $dispatcher = \FastRoute\cachedDispatcher( |
| 120 | - function (\FastRoute\RouteCollector $r) use ($routes) { |
|
| 120 | + function(\FastRoute\RouteCollector $r) use ($routes) { |
|
| 121 | 121 | foreach ($routes as $route) { |
| 122 | 122 | $r->addRoute($route['methods'], $route['endpoint'], $route['call']); |
| 123 | 123 | } |
@@ -150,8 +150,7 @@ |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | return isset($this->i18n[$lang][$file][$key]) ? |
| 153 | - $this->i18n[$lang][$file][$key] : |
|
| 154 | - $fileKey |
|
| 153 | + $this->i18n[$lang][$file][$key] : $fileKey |
|
| 155 | 154 | ; |
| 156 | 155 | } |
| 157 | 156 | |