@@ -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 | } |
@@ -67,11 +67,11 @@ |
||
| 67 | 67 | 'html' => $gitter->html, |
| 68 | 68 | 'urls' => json_encode($gitter->urls), |
| 69 | 69 | |
| 70 | - 'created_at' => (new Carbon($gitter->sent ?? date('Y-m-d H:i:s', 0))) |
|
| 70 | + 'created_at' => (new Carbon($gitter->sent ? ? date('Y-m-d H:i:s', 0))) |
|
| 71 | 71 | ->setTimezone('Europe/Moscow') |
| 72 | 72 | ->timestamp, |
| 73 | 73 | |
| 74 | - 'updated_at' => (new Carbon($gitter->editedAt ?? date('Y-m-d H:i:s', 0))) |
|
| 74 | + 'updated_at' => (new Carbon($gitter->editedAt ? ? date('Y-m-d H:i:s', 0))) |
|
| 75 | 75 | ->setTimezone('Europe/Moscow') |
| 76 | 76 | ->timestamp, |
| 77 | 77 | ]); |
@@ -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(); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** @var Client $client */ |
| 43 | 43 | $client = app(Client::class); |
| 44 | 44 | |
| 45 | - return $client->stream($this->gitter_id, function (GitterMessage $gitter) use ($callback) { |
|
| 45 | + return $client->stream($this->gitter_id, function(GitterMessage $gitter) use ($callback) { |
|
| 46 | 46 | $message = Message::createFromGitterMessage($gitter); |
| 47 | 47 | $callback($this, $message); |
| 48 | 48 | }, $rejected); |