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.

Custom::registerTaxonomies()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Undefined\Stash\Custom;
4
5
/**
6
 * Get paths for assets
7
 */
8
class Custom
9
{
10
    /**
11
     * Load all files from the inc/post-types/ folder
12
     */
13
    public function registerPostTypes()
14
    {
15
        foreach (glob(get_template_directory() . "/inc/post-types/*.php") as $filename) {
16
            include_once $filename;
17
        }
18
    }
19
20
    /**
21
     * Load all files from the inc/post-types/ folder
22
     */
23
    public function registerTaxonomies()
24
    {
25
        foreach (glob(get_template_directory() . "/inc/taxonomies/*.php") as $filename) {
26
            include_once $filename;
27
        }
28
    }
29
}
30
31
add_action('init', function () {
32
    $custom = new Custom();
33
    $custom->registerPostTypes();
34
    $custom->registerTaxonomies();
35
}, 100);