@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | $this->app->share(Application::class, $this->app); |
78 | 78 | $this->app->share('app', $this->app); |
79 | - $this->app->share(ConsoleApp::class, function () { |
|
79 | + $this->app->share(ConsoleApp::class, function() { |
|
80 | 80 | return new ConsoleApp('PLATINE CONSOLE', '1.0.0'); |
81 | 81 | }); |
82 | 82 | $this->app->share(ContainerInterface::class, $this->app); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $this->app->bind(RouteCollectionInterface::class, RouteCollection::class); |
85 | 85 | $this->app->share(Router::class); |
86 | 86 | $this->app->bind(MiddlewareResolverInterface::class, MiddlewareResolver::class); |
87 | - $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) { |
|
87 | + $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) { |
|
88 | 88 | return new ResponseEmitter( |
89 | 89 | $app->get(Config::class)->get('app.response_chunck_size', null) |
90 | 90 | ); |
@@ -66,8 +66,7 @@ |
||
66 | 66 | * @class BaseServiceProvider |
67 | 67 | * @package Platine\Framework\Service\Provider |
68 | 68 | */ |
69 | -class BaseServiceProvider extends ServiceProvider |
|
70 | -{ |
|
69 | +class BaseServiceProvider extends ServiceProvider { |
|
71 | 70 | |
72 | 71 | /** |
73 | 72 | * {@inheritdoc} |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class CommandServiceProvider |
58 | 58 | * @package Platine\Framework\Service\Provider |
59 | 59 | */ |
60 | -class CommandServiceProvider extends ServiceProvider |
|
61 | -{ |
|
60 | +class CommandServiceProvider extends ServiceProvider { |
|
62 | 61 | |
63 | 62 | /** |
64 | 63 | * {@inheritdoc} |
@@ -64,8 +64,7 @@ |
||
64 | 64 | * @class AuthServiceProvider |
65 | 65 | * @package Platine\Framework\Service\Provider |
66 | 66 | */ |
67 | -class AuthServiceProvider extends ServiceProvider |
|
68 | -{ |
|
67 | +class AuthServiceProvider extends ServiceProvider { |
|
69 | 68 | |
70 | 69 | /** |
71 | 70 | * {@inheritdoc} |
@@ -60,8 +60,7 @@ |
||
60 | 60 | * @class MigrationServiceProvider |
61 | 61 | * @package Platine\Framework\Service\Provider |
62 | 62 | */ |
63 | -class MigrationServiceProvider extends ServiceProvider |
|
64 | -{ |
|
63 | +class MigrationServiceProvider extends ServiceProvider { |
|
65 | 64 | |
66 | 65 | /** |
67 | 66 | * {@inheritdoc} |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class RoutingServiceProvider |
57 | 57 | * @package Platine\Framework\Service\Provider |
58 | 58 | */ |
59 | -class RoutingServiceProvider extends ServiceProvider |
|
60 | -{ |
|
59 | +class RoutingServiceProvider extends ServiceProvider { |
|
61 | 60 | |
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
@@ -75,7 +75,7 @@ |
||
75 | 75 | |
76 | 76 | $this->app->bind(DatabaseConfigRepository::class); |
77 | 77 | |
78 | - $this->app->bind(DbConfig::class, function (ContainerInterface $app) { |
|
78 | + $this->app->bind(DbConfig::class, function(ContainerInterface $app) { |
|
79 | 79 | $env = $app->get(Config::class)->get('app.env', ''); |
80 | 80 | return new DbConfig($app->get(DatabaseConfigLoaderInterface::class), $env); |
81 | 81 | }); |
@@ -60,8 +60,7 @@ |
||
60 | 60 | * @class DatabaseConfigServiceProvider |
61 | 61 | * @package Platine\Framework\Service\Provider |
62 | 62 | */ |
63 | -class DatabaseConfigServiceProvider extends ServiceProvider |
|
64 | -{ |
|
63 | +class DatabaseConfigServiceProvider extends ServiceProvider { |
|
65 | 64 | |
66 | 65 | /** |
67 | 66 | * {@inheritdoc} |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class CookieServiceProvider |
57 | 57 | * @package Platine\Framework\Service\Provider |
58 | 58 | */ |
59 | -class CookieServiceProvider extends ServiceProvider |
|
60 | -{ |
|
59 | +class CookieServiceProvider extends ServiceProvider { |
|
61 | 60 | |
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class EventServiceProvider |
58 | 58 | * @package Platine\Framework\Service\Provider |
59 | 59 | */ |
60 | -class EventServiceProvider extends ServiceProvider |
|
61 | -{ |
|
60 | +class EventServiceProvider extends ServiceProvider { |
|
62 | 61 | |
63 | 62 | /** |
64 | 63 | * {@inheritdoc} |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class ServiceProvider |
55 | 55 | * @package Platine\Framework\Service |
56 | 56 | */ |
57 | -class ServiceProvider |
|
58 | -{ |
|
57 | +class ServiceProvider { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * The Application instance |
@@ -73,8 +72,7 @@ discard block |
||
73 | 72 | * Create new instance |
74 | 73 | * @param Application $app |
75 | 74 | */ |
76 | - public function __construct(Application $app) |
|
77 | - { |
|
75 | + public function __construct(Application $app) { |
|
78 | 76 | $this->app = $app; |
79 | 77 | } |
80 | 78 |