@@ -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 14:35 |
|
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 14:35 |
|
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\Message; |
13 | 13 | |
14 | 14 | use Core\Mappers\Message\UrlMapper; |
@@ -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 Domains\Message; |
13 | 13 | |
14 | 14 | use Core\Mappers\Message\RelationMapper; |
@@ -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 14:06 |
|
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 14:06 |
|
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\Message; |
13 | 13 | |
14 | 14 | use Carbon\Carbon; |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | preg_match_all('/\w+/iu', $text, $words, PREG_PATTERN_ORDER); |
50 | 50 | |
51 | - return array_map(function ($word) { |
|
51 | + return array_map(function($word) { |
|
52 | 52 | return mb_strtolower($word); |
53 | 53 | }, $words[0]); |
54 | 54 | } |
@@ -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 14:25 |
|
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 14:25 |
|
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 | namespace Domains\User; |
14 | 14 |
@@ -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 23.03.2016 20:17 |
|
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 23.03.2016 20:17 |
|
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\User; |
13 | 13 | |
14 | 14 | use Carbon\Carbon; |
@@ -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 | |
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: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(); |