Completed
Push — master ( c1ce98...b3e799 )
by Kirill
03:09
created
app/Domains/Bot/Middlewares/KarmaRenderMiddleware.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     /**
16 16
      * @param Message $message
17
-     * @return mixed
17
+     * @return null|Message
18 18
      */
19 19
     public function handle(Message $message)
20 20
     {
Please login to merge, or discard this patch.
app/Domains/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @param $roomId
121
+     * @param string $roomId
122 122
      * @return Carbon
123 123
      */
124 124
     public function getLastKarmaTimeForRoom($roomId)
Please login to merge, or discard this patch.
app/Core/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Core/Mappers/MessageMapperTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
         $values = (new AttributeMapper($attributes))
37 37
             ->rename('readBy', 'read_by')
38 38
             ->rename('id', 'gitter_id')
39
-            ->value('editedAt', function ($val) {
39
+            ->value('editedAt', function($val) {
40 40
                 return !!$val;
41 41
             }, 'edited')
42
-            ->value('fromUser', function ($user) {
42
+            ->value('fromUser', function($user) {
43 43
                 return User::fromGitterObject($user);
44 44
             }, 'user')
45
-            ->value('sent', function ($date) {
45
+            ->value('sent', function($date) {
46 46
                 return (new Carbon($date))->setTimezone('Europe/Moscow');
47 47
             }, 'created_at')
48
-            ->value('editedAt', function ($date) {
48
+            ->value('editedAt', function($date) {
49 49
                 return (new Carbon($date))->setTimezone('Europe/Moscow');
50 50
             }, 'updated_at')
51
-            ->value('mentions', function ($mentions) {
51
+            ->value('mentions', function($mentions) {
52 52
                 return static::parseMentions($mentions);
53 53
             })
54 54
             ->only($fields)
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $values['room_id'] = \App::make(Room::class)->id;
59 59
         }
60 60
 
61
-        return static::unguarded(function () use ($values) {
61
+        return static::unguarded(function() use ($values) {
62 62
             return new static($values);
63 63
         });
64 64
     }
Please login to merge, or discard this patch.
app/Domains/Room.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
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'])
Please login to merge, or discard this patch.
app/Domains/Karma.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
app/Domains/Achieve.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     {
70 70
         parent::boot();
71 71
 
72
-        static::creating(function (Achieve $achieve) {
72
+        static::creating(function(Achieve $achieve) {
73 73
             if (!$achieve->created_at) {
74 74
                 $achieve->created_at = $achieve->freshTimestamp();
75 75
             }
Please login to merge, or discard this patch.
app/Interfaces/Gitter/Client.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@
 block discarded – undo
41 41
     public static function make($token, $roomId)
42 42
     {
43 43
         $client = new Client($token);
44
-        App::singleton(Client::class, function () use ($client) {
44
+        App::singleton(Client::class, function() use ($client) {
45 45
             return $client;
46 46
         });
47 47
         App::alias(Client::class, 'gitter');
48 48
 
49 49
 
50 50
         $room = new Room($roomId);
51
-        App::singleton(Room::class, function () use ($room) {
51
+        App::singleton(Room::class, function() use ($room) {
52 52
             return $room;
53 53
         });
54 54
         App::alias(Room::class, 'room');
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     }
170 170
 
171 171
     /**
172
-     * @param $route
172
+     * @param string $route
173 173
      * @param array $args
174 174
      * @param string $method
175 175
      * @return Stream
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     }
182 182
 
183 183
     /**
184
-     * @param $route
184
+     * @param string $route
185 185
      * @param array $args
186 186
      * @param null $content
187 187
      * @param string $method
Please login to merge, or discard this patch.
app/Interfaces/Gitter/Http/Stream.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
         $this->headers['Connection'] = 'Keep-Alive';
87 87
 
88
-        $this->buffer->subscribe(function ($message) {
88
+        $this->buffer->subscribe(function($message) {
89 89
             $message = trim($message);
90 90
 
91 91
             if ($message) {
@@ -117,20 +117,20 @@  discard block
 block discarded – undo
117 117
             ->getHttpClient()
118 118
             ->request($this->method, $this->url, $this->headers);
119 119
 
120
-        $request->on('response', function (Response $response) {
121
-            $response->on('data', function ($data, Response $response) {
120
+        $request->on('response', function(Response $response) {
121
+            $response->on('data', function($data, Response $response) {
122 122
                 $data = (string)$data;
123 123
                 $this->events->fire(static::EVENT_CHUNK, [$this, $data, $response]);
124 124
                 $this->buffer->add($data);
125 125
             });
126 126
         });
127 127
 
128
-        $request->on('end', function () {
128
+        $request->on('end', function() {
129 129
             $this->buffer->clear();
130 130
             $this->events->fire(static::EVENT_END, [$this]);
131 131
         });
132 132
 
133
-        $request->on('error', function ($exception) {
133
+        $request->on('error', function($exception) {
134 134
             $this->events->fire(static::EVENT_ERROR, [$this, $exception]);
135 135
         });
136 136
 
Please login to merge, or discard this patch.