• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visavi / rotor / 28410244511

29 Jun 2026 11:47PM UTC coverage: 16.561%. Remained the same
28410244511

push

github

visavi
Carbon на Datetime

0 of 2 new or added lines in 2 files covered. (0.0%)

989 of 5972 relevant lines covered (16.56%)

2.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/Http/Resources/NewMessageResource.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Http\Resources;
6

7
use App\Models\Dialogue;
8
use Illuminate\Http\Request;
9
use Illuminate\Http\Resources\Json\JsonResource;
10
use Illuminate\Support\Facades\Date;
11

12
/** @mixin Dialogue */
13
class NewMessageResource extends JsonResource
14
{
15
    public function toArray(Request $request): array
×
16
    {
17
        return [
×
18
            'login'           => $this->author->exists ? $this->author->login : (string) $this->author_id,
×
19
            'name'            => $this->author_id ? $this->author->getName() : __('messages.system'),
×
20
            'count'           => (int) $this->getAttribute('cnt'),
×
NEW
21
            'last_message_at' => dateFixed(Date::parse($this->getAttribute('last_created_at')), 'c', true),
×
22
        ];
×
23
    }
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc