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

visavi / rotor / 28340133337

28 Jun 2026 11:47PM UTC coverage: 16.561% (+0.09%) from 16.474%
28340133337

push

github

visavi
Ядро и модули переведены на datetime, удалена константа SITETIME

18 of 95 new or added lines in 31 files covered. (18.95%)

7 existing lines in 6 files now uncovered.

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\Carbon;
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(Carbon::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