Completed
Pull Request — master (#160)
by
unknown
02:56
created

ApiKeys::getGoogleSimpleApiAccessKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace SEOstats\Config;
3
4
/**
5
 * Configuration constants for the SEOstats library.
6
 *
7
 * @package    SEOstats
8
 * @author     Stephan Schmitz <[email protected]>
9
 * @copyright  Copyright (c) 2010 - present Stephan Schmitz
10
 * @license    http://eyecatchup.mit-license.org/  MIT License
11
 * @updated    2013/12/11
12
 */
13
14
/**
15
 * Client API keys
16
 * @package    SEOstats
17
 */
18
class ApiKeys
19
{
20
    // To acquire an API key, visit Google's APIs Console here:
21
    //      https://code.google.com/apis/console
22
    // In the Services pane, activate the "PageSpeed Insights API" (not the service!).
23
    // Next, go to the API Access pane. The API key is near the bottom of that pane,
24
    // in the section titled "Simple API Access.".
25
    const GOOGLE_SIMPLE_API_ACCESS_KEY = '';
26
27
    // To acquire a Mozscape (f.k.a. SEOmoz) API key, visit:
28
    //      https://moz.com/products/api/keys
29
    const MOZSCAPE_ACCESS_ID  = '';
30
    const MOZSCAPE_SECRET_KEY = '';
31
32
    // To acquire a SISTRIX API key, visit:
33
    //      http://www.sistrix.de
34
    const SISTRIX_API_ACCESS_KEY = '';
35
36 4
    public static function getGoogleSimpleApiAccessKey() {
37 4
        return getenv('GOOGLE_SIMPLE_API_ACCESS_KEY', self::GOOGLE_SIMPLE_API_ACCESS_KEY);
38
    }
39
40 6
    public static function getMozscapeAccessId() {
41 6
        return getenv('MOZSCAPE_ACCESS_ID', self::MOZSCAPE_ACCESS_ID);
42
    }
43
44 1
    public static function getMozscapeSecretKey()
45
    {
46 1
        return getenv('MOZSCAPE_SECRET_KEY', self::MOZSCAPE_SECRET_KEY);
47
    }
48
49 13
    public static function getSistrixApiAccessKey()
50
    {
51 13
        return getenv('SISTRIX_API_ACCESS_KEY', self::SISTRIX_API_ACCESS_KEY);
52
    }
53
}
54