@@ -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 27.01.2016 16:54 |
|
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 27.01.2016 16:54 |
|
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\Gitter\Extensions; |
12 | 12 | |
13 | 13 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function registerRoom(GitterRoom $room, array $groups = []) |
69 | 69 | { |
70 | - $this->rooms[] = (object) [ |
|
70 | + $this->rooms[] = (object)[ |
|
71 | 71 | 'room' => $room, |
72 | 72 | 'groups' => $groups |
73 | 73 | ]; |
@@ -96,7 +96,7 @@ |
||
96 | 96 | |
97 | 97 | return $this->container->call([$middleware, 'handle'], [ |
98 | 98 | 'message' => $message, |
99 | - 'next' => function (Message $message) use ($number) { |
|
99 | + 'next' => function(Message $message) use ($number) { |
|
100 | 100 | $result = $this->fireMiddleware(++$number, $message); |
101 | 101 | |
102 | 102 | if (!($result instanceof Response)) { |
@@ -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 16:39 |
|
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 16:39 |
|
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\Gitter\Extensions\Middlewares; |
12 | 12 | |
13 | 13 | use App\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 27.01.2016 18:12 |
|
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 27.01.2016 18:12 |
|
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\Gitter\Extensions\Middlewares; |
12 | 12 | |
13 | 13 | use Gitter\Models\Room as GitterRoom; |
@@ -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 27.01.2016 08:02 |
|
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 27.01.2016 08:02 |
|
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\Gitter\Middlewares; |
12 | 12 | |
13 | 13 | use App\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 27.01.2016 14:41 |
|
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 27.01.2016 14:41 |
|
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\Gitter\Middlewares; |
12 | 12 | |
13 | 13 | use App\Message; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function setContent($content) |
23 | 23 | { |
24 | - $this->empty = !trim($content); |
|
24 | + $this->empty = !trim($content); |
|
25 | 25 | return parent::setContent($content); |
26 | 26 | } |
27 | 27 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public static function make(GitterMessage $gitter, \Closure $new = null) |
52 | 52 | { |
53 | - if ($new === null) { $new = function(){}; } |
|
53 | + if ($new === null) { $new = function() {}; } |
|
54 | 54 | |
55 | 55 | /** @var Message $message */ |
56 | 56 | $message = static::where('gitter_id', $gitter->id)->first(); |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | 'text' => $gitter->text, |
77 | 77 | 'html' => $gitter->html, |
78 | 78 | 'urls' => json_encode($gitter->urls), |
79 | - 'created_at' => (new Carbon($gitter->sent ?? date('Y-m-d H:i:s', 0))) |
|
79 | + 'created_at' => (new Carbon($gitter->sent ? ? date('Y-m-d H:i:s', 0))) |
|
80 | 80 | ->setTimezone('Europe/Moscow') |
81 | 81 | ->timestamp, |
82 | - 'updated_at' => (new Carbon($gitter->editedAt ?? date('Y-m-d H:i:s', 0))) |
|
82 | + 'updated_at' => (new Carbon($gitter->editedAt ? ? date('Y-m-d H:i:s', 0))) |
|
83 | 83 | ->setTimezone('Europe/Moscow') |
84 | 84 | ->timestamp, |
85 | 85 | ]); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function mentions() |
105 | 105 | { |
106 | - $user = (new User()); |
|
106 | + $user = (new User()); |
|
107 | 107 | $user->primaryKey = 'gitter_id'; |
108 | 108 | |
109 | 109 | $parent = (new Message(['gitter_id' => $this->gitter_id])); |
@@ -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 27.01.2016 17:49 |
|
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 27.01.2016 17:49 |
|
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\Providers; |
12 | 12 | |
13 | 13 |