@@ -28,11 +28,11 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | public function register() |
| 30 | 30 | { |
| 31 | - $this->app->singleton(Client::class, function (Container $app) { |
|
| 31 | + $this->app->singleton(Client::class, function(Container $app) { |
|
| 32 | 32 | return new Client($app['config']->get('gitter.token')); |
| 33 | 33 | }); |
| 34 | 34 | |
| 35 | - $this->app->singleton('bot', function (Container $app) { |
|
| 35 | + $this->app->singleton('bot', function(Container $app) { |
|
| 36 | 36 | /** @var Client $client */ |
| 37 | 37 | $client = $app->make(Client::class); |
| 38 | 38 | return $client->http->getCurrentUser()->wait(); |
@@ -41,11 +41,11 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | public function boot() |
| 43 | 43 | { |
| 44 | - $this->app->singleton('bot.manager', function (Container $app) { |
|
| 44 | + $this->app->singleton('bot.manager', function(Container $app) { |
|
| 45 | 45 | return new BotManager($app); |
| 46 | 46 | }); |
| 47 | 47 | |
| 48 | - $this->app->singleton('room.manager', function (Container $app) { |
|
| 48 | + $this->app->singleton('room.manager', function(Container $app) { |
|
| 49 | 49 | $manager = new RoomManager(); |
| 50 | 50 | |
| 51 | 51 | $this->registerGitterRooms($manager); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | protected function registerGitterRooms(RoomManager $manager) |
| 59 | 59 | { |
| 60 | - foreach ((array) $this->app['config']->get('gitter.rooms') as $room => $groups) { |
|
| 60 | + foreach ((array)$this->app['config']->get('gitter.rooms') as $room => $groups) { |
|
| 61 | 61 | $manager->register( |
| 62 | 62 | new StandartGitterRoom($room, $groups, \Config::get('gitter.middlewares')) |
| 63 | 63 | ); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | protected function registerSlackRooms(RoomManager $manager) |
| 68 | 68 | { |
| 69 | - foreach ((array) $this->app['config']->get('slack.rooms') as $roomId => $groups) { |
|
| 69 | + foreach ((array)$this->app['config']->get('slack.rooms') as $roomId => $groups) { |
|
| 70 | 70 | $manager->register( |
| 71 | 71 | new StandartSlackRoom($roomId, $groups, \Config::get('slack.middlewares')) |
| 72 | 72 | ); |