@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register(Container $pimple) |
20 | 20 | { |
21 | - $pimple['base_client'] = function ($app) { |
|
21 | + $pimple['base_client'] = function($app) { |
|
22 | 22 | return new BaseClient($app); |
23 | 23 | }; |
24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register(Container $pimple) |
20 | 20 | { |
21 | - $pimple['config'] = function ($app) { |
|
21 | + $pimple['config'] = function($app) { |
|
22 | 22 | return new Config($app->getConfig()); |
23 | 23 | }; |
24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register(Container $pimple) |
20 | 20 | { |
21 | - $pimple['request'] = function () { |
|
21 | + $pimple['request'] = function() { |
|
22 | 22 | return Request::createFromGlobals(); |
23 | 23 | }; |
24 | 24 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function register(Container $pimple) |
20 | 20 | { |
21 | - $pimple['logger'] = $pimple['log'] = function ($app) { |
|
21 | + $pimple['logger'] = $pimple['log'] = function($app) { |
|
22 | 22 | $config = $this->formatLogConfig($app); |
23 | 23 | |
24 | 24 | if (!empty($config)) { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | 'channels' => [ |
54 | 54 | 'single' => [ |
55 | 55 | 'driver' => 'single', |
56 | - 'path' => $app['config']->get('log.file') ?: \sys_get_temp_dir().'/logs/midas.log', |
|
56 | + 'path' => $app['config']->get('log.file') ?: \sys_get_temp_dir() . '/logs/midas.log', |
|
57 | 57 | 'level' => $app['config']->get('log.level', 'debug'), |
58 | 58 | ], |
59 | 59 | ], |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function register(Container $app) |
14 | 14 | { |
15 | - $app['custom'] = function ($app) { |
|
15 | + $app['custom'] = function($app) { |
|
16 | 16 | return new Client($app); |
17 | 17 | }; |
18 | 18 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function register(Container $app) |
14 | 14 | { |
15 | - $app['user'] = function ($app) { |
|
15 | + $app['user'] = function($app) { |
|
16 | 16 | return new Client($app); |
17 | 17 | }; |
18 | 18 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | __DIR__ . '/../config/mta-h5.php', 'services.mta-h5' |
18 | 18 | ); |
19 | 19 | |
20 | - $this->app->singleton('mta-h5', function ($app) { |
|
20 | + $this->app->singleton('mta-h5', function($app) { |
|
21 | 21 | return new Application( |
22 | 22 | $app['config']['services.mta-h5'] |
23 | 23 | ); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function register(Container $app) |
14 | 14 | { |
15 | - $app['source'] = function ($app) { |
|
15 | + $app['source'] = function($app) { |
|
16 | 16 | return new Client($app); |
17 | 17 | }; |
18 | 18 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function register(Container $app) |
14 | 14 | { |
15 | - $app['trend'] = function ($app) { |
|
15 | + $app['trend'] = function($app) { |
|
16 | 16 | return new Client($app); |
17 | 17 | }; |
18 | 18 | } |