@@ -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 | } |
@@ -20,6 +20,7 @@ |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @param array ...$args |
23 | + * @param string $args |
|
23 | 24 | * @return array |
24 | 25 | */ |
25 | 26 | public function wait(...$args) |
@@ -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 | ]); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | - * @param Builder $builder |
|
84 | + * @param \Illuminate\Database\Eloquent\Builder $builder |
|
85 | 85 | * @return $this |
86 | 86 | */ |
87 | 87 | public static function scopeOwn(Builder $builder) |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @param Builder $builder |
|
96 | + * @param \Illuminate\Database\Eloquent\Builder $builder |
|
97 | 97 | * @param Room|string $room |
98 | 98 | * @return $this |
99 | 99 | */ |
@@ -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(); |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Illuminate\Container\Container; |
18 | 18 | use Gitter\Models\User as GitterUser; |
19 | 19 | use Gitter\Models\Room as GitterRoom; |
20 | -use Gitter\Models\Message as GitterMessage; |
|
21 | 20 | use Illuminate\Contracts\Config\Repository; |
22 | 21 | use Gitter\Iterators\PromiseIterator\Controls; |
23 | 22 |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of GitterBot package. |
|
4 | - * |
|
5 | - * @author Serafim <[email protected]> |
|
6 | - * @date 26.01.2016 4:57 |
|
7 | - * |
|
8 | - * For the full copyright and license information, please view the LICENSE |
|
9 | - * file that was distributed with this source code. |
|
10 | - */ |
|
3 | + * This file is part of GitterBot package. |
|
4 | + * |
|
5 | + * @author Serafim <[email protected]> |
|
6 | + * @date 26.01.2016 4:57 |
|
7 | + * |
|
8 | + * For the full copyright and license information, please view the LICENSE |
|
9 | + * file that was distributed with this source code. |
|
10 | + */ |
|
11 | 11 | namespace App\Console\Commands; |
12 | 12 | |
13 | 13 | use App\Console\CircleProgress; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public static function make(GitterUser $gitterUser, \Closure $new = null) |
64 | 64 | { |
65 | - if ($new === null) { $new = function(){}; } |
|
65 | + if ($new === null) { $new = function() {}; } |
|
66 | 66 | |
67 | 67 | $user = static::where('gitter_id', $gitterUser->id)->first(); |
68 | 68 | if (!$user) { |
@@ -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) { |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of GitterBot package. |
|
4 | - * |
|
5 | - * @author Serafim <[email protected]> |
|
6 | - * @date 26.01.2016 5:21 |
|
7 | - * |
|
8 | - * For the full copyright and license information, please view the LICENSE |
|
9 | - * file that was distributed with this source code. |
|
10 | - */ |
|
3 | + * This file is part of GitterBot package. |
|
4 | + * |
|
5 | + * @author Serafim <[email protected]> |
|
6 | + * @date 26.01.2016 5:21 |
|
7 | + * |
|
8 | + * For the full copyright and license information, please view the LICENSE |
|
9 | + * file that was distributed with this source code. |
|
10 | + */ |
|
11 | 11 | namespace App\Console; |
12 | 12 | |
13 | 13 | /** |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of GitterBot package. |
|
4 | - * |
|
5 | - * @author Serafim <[email protected]> |
|
6 | - * @date 26.01.2016 4:59 |
|
7 | - * |
|
8 | - * For the full copyright and license information, please view the LICENSE |
|
9 | - * file that was distributed with this source code. |
|
10 | - */ |
|
3 | + * This file is part of GitterBot package. |
|
4 | + * |
|
5 | + * @author Serafim <[email protected]> |
|
6 | + * @date 26.01.2016 4:59 |
|
7 | + * |
|
8 | + * For the full copyright and license information, please view the LICENSE |
|
9 | + * file that was distributed with this source code. |
|
10 | + */ |
|
11 | 11 | namespace App\Console\Commands; |
12 | 12 | |
13 | 13 | use Gitter\Client; |