Passed
Push — master ( e322cc...75dbb3 )
by Stephen
50s queued 10s
created

isEnvDevelopment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
use Sfneal\Helpers\Laravel\AppInfo;
4
5
/**
6
 * Shortcode helper function for retrieving the application's version.
7
 *
8
 * @return mixed
9
 */
10
function version()
11
{
12
    return AppInfo::version();
13
}
14
15
/**
16
 * Determine if the Application is running in a 'production' environment.
17
 *
18
 * @return bool
19
 */
20
function isEnvProduction(): bool
21
{
22
    return AppInfo::isEnvProduction();
23
}
24
25
/**
26
 * Determine if the Application is running in a 'development' environment.
27
 *
28
 * @return bool
29
 */
30
function isEnvDevelopment(): bool
31
{
32
    return AppInfo::isEnvDevelopment();
33
}
34