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.

ArchiveDeletedItemsPluginInfo::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * Copyright (c) STMicroelectronics 2012. All rights reserved
4
 *
5
 * Tuleap is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation; either version 2 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * Tuleap is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
17
 */
18
19
require_once('common/plugin/PluginFileInfo.class.php');
20
require_once('ArchiveDeletedItemsPluginDescriptor.class.php');
21
22
/**
23
 * ArchiveDeletedItemsInfo
24
 */
25
class ArchiveDeletedItemsPluginInfo extends PluginFileInfo {
26
27
    /**
28
     * Constructor
29
     *
30
     * @param ArchivedeleteditemsPlugin $plugin Plugin instance
31
     *
32
     * @return Void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
33
     */
34
    public function __construct(ArchivedeleteditemsPlugin $plugin) {
35
        parent::__construct($plugin, 'archivedeleteditems');
36
        $this->setPluginDescriptor(new ArchiveDeletedItemsPluginDescriptor());
37
    }
38
39
}
40
?>