Completed
Push — develop ( 0131cc...2bfb76 )
by Kirill
15:48 queued 10:14
created
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.