@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function map(Router $router) |
| 39 | 39 | { |
| 40 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
| 40 | + $router->group(['namespace' => $this->namespace], function($router) { |
|
| 41 | 41 | require app_path('Http/routes.php'); |
| 42 | 42 | }); |
| 43 | 43 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | { |
| 59 | 59 | parent::boot(); |
| 60 | 60 | |
| 61 | - static::creating(function (Karma $karma) { |
|
| 61 | + static::creating(function(Karma $karma) { |
|
| 62 | 62 | if (!$karma->created_at) { |
| 63 | 63 | $karma->created_at = $karma->freshTimestamp(); |
| 64 | 64 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | 'method' => 'PUT', |
| 29 | 29 | 'body' => ['text' => (string)$message->text], |
| 30 | 30 | ]) |
| 31 | - ->then(function ($d) { |
|
| 31 | + ->then(function($d) { |
|
| 32 | 32 | return $d->text; |
| 33 | 33 | }) |
| 34 | 34 | ->wait(); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public static function make(GitterRoom $gitterRoom, \Closure $new = null) |
| 40 | 40 | { |
| 41 | - if ($new === null) { $new = function(){}; } |
|
| 41 | + if ($new === null) { $new = function() {}; } |
|
| 42 | 42 | |
| 43 | 43 | $room = static::where('gitter_id', $gitterRoom->id)->first(); |
| 44 | 44 | if (!$room) { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $client = $this->createClient($container, $config->get('gitter.token')); |
| 55 | 55 | |
| 56 | 56 | // Search room |
| 57 | - $this->findRoom($client, $this->argument('room'), function (GitterRoom $room) { |
|
| 57 | + $this->findRoom($client, $this->argument('room'), function(GitterRoom $room) { |
|
| 58 | 58 | try { |
| 59 | 59 | if ($this->option('users')) { |
| 60 | 60 | $this->syncUsers($room); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | $this->output->write('Fetching...'); |
| 86 | 86 | |
| 87 | - $room->getUsers()->fetch(function (GitterUser $gitterUser, Controls $controls) { |
|
| 87 | + $room->getUsers()->fetch(function(GitterUser $gitterUser, Controls $controls) { |
|
| 88 | 88 | /** @var User $user */ |
| 89 | 89 | $user = User::make($gitterUser); |
| 90 | 90 | |
@@ -105,10 +105,10 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | $room->getMessages() |
| 107 | 107 | // Fetch all messages |
| 108 | - ->fetch(function (GitterMessage $message, Controls $controls) { |
|
| 108 | + ->fetch(function(GitterMessage $message, Controls $controls) { |
|
| 109 | 109 | $this->messageRemember($message, $controls); |
| 110 | 110 | }) |
| 111 | - ->then(function () use ($room) { |
|
| 111 | + ->then(function() use ($room) { |
|
| 112 | 112 | $this->syncLatestMessages($room); |
| 113 | 113 | }); |
| 114 | 114 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | |
| 141 | 141 | if ($lastMessage) { |
| 142 | 142 | $room->getMessages($lastMessage->gitter_id, GitterRoom::MESSAGE_FETCH_ASC) |
| 143 | - ->fetch(function (GitterMessage $message, Controls $controls) { |
|
| 143 | + ->fetch(function(GitterMessage $message, Controls $controls) { |
|
| 144 | 144 | $this->messageRemember($message, $controls); |
| 145 | 145 | }); |
| 146 | 146 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public static function make(GitterRoom $gitterRoom, \Closure $new = null) |
| 40 | 40 | { |
| 41 | - if ($new === null) { $new = function(){}; } |
|
| 41 | + if ($new === null) { $new = function() {}; } |
|
| 42 | 42 | |
| 43 | 43 | $room = static::where('gitter_id', $gitterRoom->id)->first(); |
| 44 | 44 | if (!$room) { |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | */ |
| 68 | 68 | public function registerRoom(GitterRoom $room, array $groups = []) |
| 69 | 69 | { |
| 70 | - $this->rooms[] = (object) [ |
|
| 70 | + $this->rooms[] = (object)[ |
|
| 71 | 71 | 'room' => $room, |
| 72 | 72 | 'groups' => $groups |
| 73 | 73 | ]; |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | |
| 97 | 97 | return $this->container->call([$middleware, 'handle'], [ |
| 98 | 98 | 'message' => $message, |
| 99 | - 'next' => function (Message $message) use ($number) { |
|
| 99 | + 'next' => function(Message $message) use ($number) { |
|
| 100 | 100 | $result = $this->fireMiddleware(++$number, $message); |
| 101 | 101 | |
| 102 | 102 | if (!($result instanceof Response)) { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function setContent($content) |
| 23 | 23 | { |
| 24 | - $this->empty = !trim($content); |
|
| 24 | + $this->empty = !trim($content); |
|
| 25 | 25 | return parent::setContent($content); |
| 26 | 26 | } |
| 27 | 27 | |