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.

Code Duplication    Length = 41-46 lines in 4 locations

tests/DependencyInjection/ConfigurationTest.php 3 locations

@@ 13-57 (lines=45) @@
10
{
11
    use ConfigurationTestCaseTrait;
12
13
    public function testConfigurationValuesAreOkAndValid()
14
    {
15
        $this->assertConfigurationIsValid(
16
            array(
17
                'netgen_information_collection' => array(
18
                    'system' => array(
19
                        'default' => array(
20
                            'action_config' => array(
21
                                'email' => array(
22
                                    'templates' => array(
23
                                        'default' => 'some_template',
24
                                        'content_types' => array(
25
                                            'content_type1' => 'content_type1_template',
26
                                            'content_type2' => 'content_type2_template',
27
                                        ),
28
                                    ),
29
                                    'default_variables' => array(
30
                                        'sender' => 'sender',
31
                                        'recipient' => 'recipient',
32
                                        'subject' => 'subject',
33
                                    ),
34
                                ),
35
                            ),
36
                            'actions' => array(
37
                                'default' => array(
38
                                    'action1',
39
                                    'action2',
40
                                ),
41
                                'content_types' => array(
42
                                    'content_type1' => array(
43
                                        'action3',
44
                                        'action4',
45
                                    ),
46
                                    'content_type2' => array(
47
                                        'action5',
48
                                        'action6',
49
                                    ),
50
                                ),
51
                            ),
52
                        ),
53
                    ),
54
                ),
55
            )
56
        );
57
    }
58
59
    public function testConfigurationIsInvalidForDefaultTemplateValue()
60
    {
@@ 59-104 (lines=46) @@
56
        );
57
    }
58
59
    public function testConfigurationIsInvalidForDefaultTemplateValue()
60
    {
61
        $this->assertConfigurationIsInvalid(
62
            array(
63
                'netgen_information_collection' => array(
64
                    'system' => array(
65
                        'default' => array(
66
                            'action_config' => array(
67
                                'email' => array(
68
                                    'templates' => array(
69
                                        'default' => '',
70
                                        'content_types' => array(
71
                                            'content_type1' => 'content_type1_template',
72
                                            'content_type2' => 'content_type2_template',
73
                                        ),
74
                                    ),
75
                                    'default_variables' => array(
76
                                        'sender' => 'sender',
77
                                        'recipient' => 'recipient',
78
                                        'subject' => 'subject',
79
                                    ),
80
                                ),
81
                            ),
82
                            'actions' => array(
83
                                'default' => array(
84
                                    'action1',
85
                                    'action2',
86
                                ),
87
                                'content_types' => array(
88
                                    'content_type1' => array(
89
                                        'action3',
90
                                        'action4',
91
                                    ),
92
                                    'content_type2' => array(
93
                                        'action5',
94
                                        'action6',
95
                                    ),
96
                                ),
97
                            ),
98
                        ),
99
                    ),
100
                ),
101
            ),
102
            'netgen_information_collection.system.default.action_config.email.templates.default'
103
        );
104
    }
105
106
    public function testConfigurationIsInvalidForDefaultActionsValue()
107
    {
@@ 106-150 (lines=45) @@
103
        );
104
    }
105
106
    public function testConfigurationIsInvalidForDefaultActionsValue()
107
    {
108
        $this->assertConfigurationIsInvalid(
109
            array(
110
                'netgen_information_collection' => array(
111
                    'system' => array(
112
                        'default' => array(
113
                            'action_config' => array(
114
                                'email' => array(
115
                                    'templates' => array(
116
                                        'default' => 'some_template',
117
                                        'content_types' => array(
118
                                            'content_type1' => 'content_type1_template',
119
                                            'content_type2' => 'content_type2_template',
120
                                        ),
121
                                    ),
122
                                    'default_variables' => array(
123
                                        'sender' => 'sender',
124
                                        'recipient' => 'recipient',
125
                                        'subject' => 'subject',
126
                                    ),
127
                                ),
128
                            ),
129
                            'actions' => array(
130
                                'default' => array(
131
                                    '',
132
                                ),
133
                                'content_types' => array(
134
                                    'content_type1' => array(
135
                                        'action3',
136
                                        'action4',
137
                                    ),
138
                                    'content_type2' => array(
139
                                        'action5',
140
                                        'action6',
141
                                    ),
142
                                ),
143
                            ),
144
                        ),
145
                    ),
146
                ),
147
            ),
148
            'netgen_information_collection.system.default.actions.default'
149
        );
150
    }
151
152
    protected function getConfiguration()
153
    {

tests/DependencyInjection/NetgenInformationCollectionExtensionTest.php 1 location

@@ 23-63 (lines=41) @@
20
        );
21
    }
22
23
    protected function getMinimalConfiguration()
24
    {
25
        return array(
26
            'system' => array(
27
                'default' => array(
28
                    'action_config' => array(
29
                        'email' => array(
30
                            'templates' => array(
31
                                'default' => 'some_template',
32
                                'content_types' => array(
33
                                    'content_type1' => 'content_type1_template',
34
                                    'content_type2' => 'content_type2_template',
35
                                ),
36
                            ),
37
                            'default_variables' => array(
38
                                'sender' => 'sender',
39
                                'recipient' => 'recipient',
40
                                'subject' => 'subject',
41
                            ),
42
                        ),
43
                    ),
44
                    'actions' => array(
45
                        'default' => array(
46
                            'action1',
47
                            'action2',
48
                        ),
49
                        'content_types' => array(
50
                            'content_type1' => array(
51
                                'action3',
52
                                'action4',
53
                            ),
54
                            'content_type2' => array(
55
                                'action5',
56
                                'action6',
57
                            ),
58
                        ),
59
                    ),
60
                ),
61
            ),
62
        );
63
    }
64
}
65