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

conedevelopment / root / 15084089635

17 May 2025 10:00AM UTC coverage: 77.93% (+0.04%) from 77.891%
15084089635

push

github

web-flow
Modernize back-end.yml (#240)

3291 of 4223 relevant lines covered (77.93%)

36.04 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
namespace Cone\Root\Jobs;
4

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

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

20
    /**
21
     * The medium instance.
22
     */
23
    public Medium $medium;
24

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

32
    /**
33
     * Create a new job instance.
34
     */
35
    public function __construct(Medium $medium)
2✔
36
    {
37
        $this->medium = $medium;
2✔
38
    }
39

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

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