Completed
Push — develop ( 0131cc...2bfb76 )
by Kirill
15:48 queued 10:14
created
app/Gitter/Extensions/MiddlewareBuilder.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
app/Gitter/Extensions/Middlewares/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
app/Gitter/Extensions/Middlewares/ContainerInterface.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Gitter/Extensions/Middlewares/MessageBus.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Gitter/Middlewares/EloquentQueryBuilderMiddleware.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Gitter/Middlewares/KarmaCounterMiddleware.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Gitter/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Message.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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]));
Please login to merge, or discard this patch.
app/Providers/GitterMiddlewaresServiceProvider.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.