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.

Resource::fetchDaleChallWordList()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace DaveChild\TextStatistics;
4
5
class Resource
6
{
7
8
    /**
9
     * Array containing the Spache word list, if set.
10
     * @var array|boolean
11
     */
12
    static protected $arrSpache = false;
13
14
    /**
15
     * Array containing the Dale-Chall word list, if set.
16
     * @var array|boolean
17
     */
18
    static protected $arrDaleChall = false;
19
20
    /**
21
     * Fetch the list of Spache easy words
22
     * @return array
23
     */
24
    public static function fetchSpacheWordList()
25
    {
26
        if (is_array(self::$arrSpache)) {
27
            return self::$arrSpache;
28
        }
29
30
        // Fetch Spache Words
31
        $arrSpacheWordList = array();
32
        include_once('resources/SpacheWordList.php');
33
        self::$arrSpache = $arrSpacheWordList;
34
35
        return $arrSpacheWordList;
36
    }
37
38
    /**
39
     * Fetch the list of Dale-Chall easy words
40
     * @return array
41
     */
42
    public static function fetchDaleChallWordList()
43
    {
44
        if (is_array(self::$arrDaleChall)) {
45
            return self::$arrDaleChall;
46
        }
47
48
        // Fetch Dale-Chall Words
49
        $arrDaleChallWordList = array();
50
        include_once('resources/DaleChallWordList.php');
51
        self::$arrDaleChall = $arrDaleChallWordList;
52
53
        return $arrDaleChallWordList;
54
    }
55
}
56