@@ -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 11.10.2015 6:07 |
|
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 11.10.2015 6:07 |
|
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\Subscribers\Achievements; |
12 | 12 | |
13 | 13 | use App\Karma; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function handle() |
41 | 41 | { |
42 | - Karma::created(function (Karma $karma) { |
|
42 | + Karma::created(function(Karma $karma) { |
|
43 | 43 | |
44 | 44 | $count = $karma->target->karma->count(); |
45 | 45 |
@@ -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 11.10.2015 6:07 |
|
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 11.10.2015 6:07 |
|
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\Subscribers\Achievements; |
12 | 12 | |
13 | 13 | use App\Karma; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function handle() |
41 | 41 | { |
42 | - Karma::created(function (Karma $karma) { |
|
42 | + Karma::created(function(Karma $karma) { |
|
43 | 43 | |
44 | 44 | $count = $karma->target->karma->count(); |
45 | 45 |
@@ -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 11.10.2015 6:07 |
|
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 11.10.2015 6:07 |
|
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\Subscribers\Achievements; |
12 | 12 | |
13 | 13 | use App\Karma; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function handle() |
41 | 41 | { |
42 | - Karma::created(function (Karma $karma) { |
|
42 | + Karma::created(function(Karma $karma) { |
|
43 | 43 | |
44 | 44 | $count = $karma->target->karma->count(); |
45 | 45 |
@@ -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 11.10.2015 6:07 |
|
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 11.10.2015 6:07 |
|
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\Subscribers\Achievements; |
12 | 12 | |
13 | 13 | use App\Karma; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function handle() |
41 | 41 | { |
42 | - Karma::created(function (Karma $karma) { |
|
42 | + Karma::created(function(Karma $karma) { |
|
43 | 43 | |
44 | 44 | $count = $karma->target->karma->count(); |
45 | 45 |
@@ -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 11.10.2015 8:30 |
|
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 11.10.2015 8:30 |
|
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\Subscribers; |
12 | 12 | |
13 | 13 | use App\Room; |
@@ -77,7 +77,7 @@ |
||
77 | 77 | */ |
78 | 78 | public function handle() |
79 | 79 | { |
80 | - Achieve::created(function (Achieve $achieve) { |
|
80 | + Achieve::created(function(Achieve $achieve) { |
|
81 | 81 | $room = \App::make(Room::class); |
82 | 82 | |
83 | 83 | $room->write( |
@@ -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 | } |
@@ -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.10.2015 16:56 |
|
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.10.2015 16:56 |
|
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 | |
12 | 12 | namespace App\Mappers; |
13 | 13 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | $user = static::where('gitter_id', $values['gitter_id'])->first(); |
42 | 42 | if (!$user) { |
43 | - $user = static::unguarded(function () use ($values) { |
|
43 | + $user = static::unguarded(function() use ($values) { |
|
44 | 44 | return static::create($values); |
45 | 45 | }); |
46 | 46 | } |
@@ -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.10.2015 17:08 |
|
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.10.2015 17:08 |
|
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; |
12 | 12 | |
13 | 13 | use App\Gitter\Client; |
@@ -112,7 +112,7 @@ |
||
112 | 112 | { |
113 | 113 | $client = $this->client |
114 | 114 | ->stream('messages', ['roomId' => $this->id]) |
115 | - ->on(Stream::EVENT_MESSAGE, function ($stream, $data) { |
|
115 | + ->on(Stream::EVENT_MESSAGE, function($stream, $data) { |
|
116 | 116 | $this->onMessage(Message::fromGitterObject($data)); |
117 | 117 | }) |
118 | 118 | ->on(Stream::EVENT_END, [$this, 'onClose']) |
@@ -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.10.2015 20:15 |
|
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.10.2015 20:15 |
|
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; |
12 | 12 | |
13 | 13 | use Carbon\Carbon; |
@@ -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 | } |