@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | declare(strict_types = 1); |
3 | 3 | /** |
4 | - * This file is part of GitterBot package. |
|
5 | - * |
|
6 | - * @author Serafim <[email protected]> |
|
7 | - * @date 28.03.2016 23:19 |
|
8 | - * |
|
9 | - * For the full copyright and license information, please view the LICENSE |
|
10 | - * file that was distributed with this source code. |
|
11 | - */ |
|
4 | + * This file is part of GitterBot package. |
|
5 | + * |
|
6 | + * @author Serafim <[email protected]> |
|
7 | + * @date 28.03.2016 23:19 |
|
8 | + * |
|
9 | + * For the full copyright and license information, please view the LICENSE |
|
10 | + * file that was distributed with this source code. |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | |
14 | 14 | namespace Domains\Analyser; |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | declare(strict_types = 1); |
3 | 3 | /** |
4 | - * This file is part of GitterBot package. |
|
5 | - * |
|
6 | - * @author Serafim <[email protected]> |
|
7 | - * @date 28.03.2016 23:55 |
|
8 | - * |
|
9 | - * For the full copyright and license information, please view the LICENSE |
|
10 | - * file that was distributed with this source code. |
|
11 | - */ |
|
4 | + * This file is part of GitterBot package. |
|
5 | + * |
|
6 | + * @author Serafim <[email protected]> |
|
7 | + * @date 28.03.2016 23:55 |
|
8 | + * |
|
9 | + * For the full copyright and license information, please view the LICENSE |
|
10 | + * file that was distributed with this source code. |
|
11 | + */ |
|
12 | 12 | namespace Domains\Analyser; |
13 | 13 | |
14 | 14 | use Core\Lazy\Fetch; |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | /** @var User $mention */ |
90 | 90 | foreach ($message->mentions as $mention) { |
91 | - $question = $this->buffer->last(function ($i, Message $question) use ($mention) { |
|
91 | + $question = $this->buffer->last(function($i, Message $question) use ($mention) { |
|
92 | 92 | if ($question->user) { |
93 | 93 | return $question->user->getId() === $mention->getId(); |
94 | 94 | } |
@@ -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 09.04.2016 3:09 |
|
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 09.04.2016 3:09 |
|
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 Core\Providers; |
12 | 12 | |
13 | 13 | use Gitter\Client; |
@@ -30,12 +30,12 @@ |
||
30 | 30 | $config = $this->app->make(Repository::class); |
31 | 31 | |
32 | 32 | |
33 | - $this->app->singleton(Client::class, function (Container $app) use ($config) { |
|
33 | + $this->app->singleton(Client::class, function(Container $app) use ($config) { |
|
34 | 34 | return new Client($config->get('gitter.token')); |
35 | 35 | }); |
36 | 36 | |
37 | 37 | |
38 | - $this->app->singleton('bot', function (Container $app) { |
|
38 | + $this->app->singleton('bot', function(Container $app) { |
|
39 | 39 | /** @var Client $client */ |
40 | 40 | $client = $app->make(Client::class); |
41 | 41 | return $client->http->getCurrentUser()->wait(); |
@@ -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 09.04.2016 3:51 |
|
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 09.04.2016 3:51 |
|
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 Core\Providers; |
12 | 12 | |
13 | 13 | use Core\Observers\IdObserver; |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | declare(strict_types = 1); |
3 | 3 | /** |
4 | - * This file is part of Ai package. |
|
5 | - * |
|
6 | - * @author Serafim <[email protected]> |
|
7 | - * @date 28.03.2016 14:02 |
|
8 | - * |
|
9 | - * For the full copyright and license information, please view the LICENSE |
|
10 | - * file that was distributed with this source code. |
|
11 | - */ |
|
4 | + * This file is part of Ai package. |
|
5 | + * |
|
6 | + * @author Serafim <[email protected]> |
|
7 | + * @date 28.03.2016 14:02 |
|
8 | + * |
|
9 | + * For the full copyright and license information, please view the LICENSE |
|
10 | + * file that was distributed with this source code. |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | |
14 | 14 | namespace Core\Lazy; |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | declare(strict_types = 1); |
3 | 3 | /** |
4 | - * This file is part of GitterBot package. |
|
5 | - * |
|
6 | - * @author Serafim <[email protected]> |
|
7 | - * @date 28.03.2016 15:52 |
|
8 | - * |
|
9 | - * For the full copyright and license information, please view the LICENSE |
|
10 | - * file that was distributed with this source code. |
|
11 | - */ |
|
4 | + * This file is part of GitterBot package. |
|
5 | + * |
|
6 | + * @author Serafim <[email protected]> |
|
7 | + * @date 28.03.2016 15:52 |
|
8 | + * |
|
9 | + * For the full copyright and license information, please view the LICENSE |
|
10 | + * file that was distributed with this source code. |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | |
14 | 14 | namespace Core\Observers; |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | $user = User::where('gitter_id', $values['gitter_id'])->first(); |
39 | 39 | if (!$user) { |
40 | - $user = User::unguarded(function () use ($values) { |
|
40 | + $user = User::unguarded(function() use ($values) { |
|
41 | 41 | return User::create($values); |
42 | 42 | }); |
43 | 43 | } |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | declare(strict_types = 1); |
3 | 3 | /** |
4 | - * This file is part of GitterBot package. |
|
5 | - * |
|
6 | - * @author Serafim <[email protected]> |
|
7 | - * @date 28.03.2016 18:07 |
|
8 | - * |
|
9 | - * For the full copyright and license information, please view the LICENSE |
|
10 | - * file that was distributed with this source code. |
|
11 | - */ |
|
4 | + * This file is part of GitterBot package. |
|
5 | + * |
|
6 | + * @author Serafim <[email protected]> |
|
7 | + * @date 28.03.2016 18:07 |
|
8 | + * |
|
9 | + * For the full copyright and license information, please view the LICENSE |
|
10 | + * file that was distributed with this source code. |
|
11 | + */ |
|
12 | 12 | namespace Core\Mappers\Message; |
13 | 13 | |
14 | 14 | use Domains\Message\Message; |
@@ -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 09.04.2016 4:17 |
|
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 09.04.2016 4:17 |
|
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 Core\Mappers\Message; |
12 | 12 | |
13 | 13 | use Domains\Message\Message; |