GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

helpers.php ➔ fluent_option()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
use Samrap\Acf\Acf;
4
5
if (! function_exists('fluent_field')) {
6
    /**
7
     * Return a new builder instance for a field.
8
     *
9
     * @param  string  $name
10
     * @param  int  $id
11
     * @return \Samrap\Acf\Fluent\Builder
12
     */
13
    function fluent_field($name, $id = null)
14
    {
15
        return Acf::field($name, $id);
16
    }
17
}
18
19
if (! function_exists('fluent_sub_field')) {
20
    /**
21
     * Return a new builder instance for a subfield.
22
     *
23
     * @param  string  $name
24
     * @return \Samrap\Acf\Fluent\Builder
25
     */
26
    function fluent_sub_field($name)
27
    {
28
        return Acf::subField($name);
29
    }
30
}
31
32
if (! function_exists('fluent_option')) {
33
    /**
34
     * Return a new builder instance for an option field.
35
     *
36
     * @param  string  $name
37
     * @return \Samrap\Acf\Fluent\Builder
38
     */
39
    function fluent_option($name)
40
    {
41
        return Acf::option($name);
42
    }
43
}
44