• 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

50.0
/src/Support/Facades/Conversion.php
1
<?php
2

3
namespace Cone\Root\Support\Facades;
4

5
use Closure;
6
use Cone\Root\Interfaces\Conversion\Manager;
7
use Illuminate\Support\Facades\Facade;
8

9
/**
10
 * @method static void perform(\Cone\Root\Models\Medium $medium)
11
 *
12
 * @see \Cone\Root\Interfaces\Conversion\Manager
13
 */
14
class Conversion extends Facade
15
{
16
    /**
17
     * Get the registered name of the component.
18
     */
19
    protected static function getFacadeAccessor(): string
2✔
20
    {
21
        return Manager::class;
2✔
22
    }
23

24
    /**
25
     * Register a new conversion.
26
     */
27
    public static function register(string $name, Closure $callback): void
×
28
    {
29
        static::getFacadeRoot()->registerConversion($name, $callback);
×
30
    }
31

32
    /**
33
     * Remove the given conversion.
34
     */
35
    public static function remove(string $name): void
×
36
    {
37
        static::getFacadeRoot()->removeConversion($name);
×
38
    }
39

40
    /**
41
     * Get all the registered conversions.
42
     */
43
    public static function all(): array
2✔
44
    {
45
        return static::getFacadeRoot()->getConversions();
2✔
46
    }
47
}
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