Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
Helper | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
isLoaded | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
loadFunctions | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** |
3 | * Pop PHP Framework (http://www.popphp.org/) |
4 | * |
5 | * @link https://github.com/popphp/popphp-framework |
6 | * @author Nick Sagona, III <dev@nolainteractive.com> |
7 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
8 | * @license http://www.popphp.org/license New BSD License |
9 | */ |
10 | |
11 | /** |
12 | * @namespace |
13 | */ |
14 | namespace Pop\Utils; |
15 | |
16 | /** |
17 | * Pop utils helper class |
18 | * |
19 | * @category Pop |
20 | * @package Pop\Utils |
21 | * @author Nick Sagona, III <dev@nolainteractive.com> |
22 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
23 | * @license http://www.popphp.org/license New BSD License |
24 | * @version 2.1.0 |
25 | */ |
26 | class Helper |
27 | { |
28 | |
29 | |
30 | /** |
31 | * Check if helper functions are loaded |
32 | * |
33 | * @return bool |
34 | */ |
35 | public static function isLoaded(): bool |
36 | { |
37 | return function_exists('app_date'); |
38 | } |
39 | |
40 | /** |
41 | * Load helper functions |
42 | * |
43 | * @return void |
44 | */ |
45 | public static function loadFunctions(): void |
46 | { |
47 | include __DIR__ . '/functions.php'; |
48 | } |
49 | |
50 | } |