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

conedevelopment / root / 18585608047

17 Oct 2025 07:22AM UTC coverage: 76.113% (+0.1%) from 75.974%
18585608047

push

github

iamgergo
wip

3384 of 4446 relevant lines covered (76.11%)

34.08 hits per line

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

66.67
/src/Jobs/PerformConversions.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Cone\Root\Jobs;
6

7
use Cone\Root\Models\Medium;
8
use Illuminate\Bus\Queueable;
9
use Illuminate\Contracts\Queue\ShouldQueue;
10
use Illuminate\Foundation\Bus\Dispatchable;
11
use Illuminate\Queue\InteractsWithQueue;
12
use Illuminate\Queue\SerializesModels;
13
use Throwable;
14

15
class PerformConversions implements ShouldQueue
16
{
17
    use Dispatchable;
18
    use InteractsWithQueue;
19
    use Queueable;
20
    use SerializesModels;
21

22
    /**
23
     * Delete the job if its models no longer exist.
24
     *
25
     * @var bool
26
     */
27
    public $deleteWhenMissingModels = true;
28

29
    /**
30
     * Create a new job instance.
31
     */
32
    public function __construct(public readonly Medium $medium)
2✔
33
    {
34
        //
35
    }
2✔
36

37
    /**
38
     * Execute the job.
39
     */
40
    public function handle(): void
1✔
41
    {
42
        $this->medium->convert();
1✔
43
    }
44

45
    /**
46
     * Handle a job failure.
47
     */
48
    public function failed(Throwable $exception): void
×
49
    {
50
        $this->medium->delete();
×
51
    }
52
}
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