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.

ExportPlugin   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 13
Bugs 2 Features 4
Metric Value
wmc 7
c 13
b 2
f 4
lcom 0
cbo 0
dl 0
loc 73
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getVersion() 0 4 1
A getDeveloper() 0 4 1
A getDeveloperUrl() 0 4 1
A hasCpSection() 0 4 1
A registerUserPermissions() 0 6 1
A init() 0 5 1
1
<?php
2
3
namespace Craft;
4
5
/**
6
 * Export Plugin.
7
 *
8
 * Plugin that allows you to export data to CSV files.
9
 *
10
 * @author    Bob Olde Hampsink <[email protected]>
11
 * @copyright Copyright (c) 2015, Bob Olde Hampsink
12
 * @license   MIT
13
 *
14
 * @link      http://github.com/boboldehampsink
15
 */
16
class ExportPlugin extends BasePlugin
17
{
18
    /**
19
     * Get plugin name.
20
     *
21
     * @return string
22
     */
23
    public function getName()
24
    {
25
        return Craft::t('Export');
26
    }
27
28
    /**
29
     * Get plugin version.
30
     *
31
     * @return string
32
     */
33
    public function getVersion()
34
    {
35
        return '0.5.9';
36
    }
37
38
    /**
39
     * Get plugin developer.
40
     *
41
     * @return string
42
     */
43
    public function getDeveloper()
44
    {
45
        return 'Bob Olde Hampsink';
46
    }
47
48
    /**
49
     * Get plugin developer url.
50
     *
51
     * @return string
52
     */
53
    public function getDeveloperUrl()
54
    {
55
        return 'http://github.com/boboldehampsink';
56
    }
57
58
    /**
59
     * This plugin has a Control Panel section.
60
     *
61
     * @return bool
62
     */
63
    public function hasCpSection()
64
    {
65
        return true;
66
    }
67
68
    /**
69
     * Register user permissions.
70
     *
71
     * @return array
72
     */
73
    public function registerUserPermissions()
74
    {
75
        return array(
76
            'reset' => array('label' => Craft::t('Reset export map')),
77
        );
78
    }
79
80
    /**
81
     * Run on plugin initialisation.
82
     */
83
    public function init()
84
    {
85
        // Import Export Element Type Interface
86
        Craft::import('plugins.export.services.IExportElementType');
87
    }
88
}
89