Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
HydeHelperFacade
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 features
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 hasFeature
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Hyde\Framework\Helpers;
4
5/**
6 * Provides convenient access to Hyde helpers, through the main Hyde facade.
7 *
8 * @see \Tests\Feature\HydeHelperFacadeTest
9 */
10trait HydeHelperFacade
11{
12    public static function features(): Features
13    {
14        return new Features;
15    }
16
17    public static function hasFeature(string $feature): bool
18    {
19        return Features::enabled($feature);
20    }
21}