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.

GitLog::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright (c) STMicroelectronics, 2012. All Rights Reserved.
4
 *
5
 * This file is a part of Tuleap.
6
 *
7
 * Tuleap is free software; you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License as published by
9
 * the Free Software Foundation; either version 2 of the License, or
10
 * (at your option) any later version.
11
 *
12
 * Tuleap is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 * GNU General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU General Public License
18
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
22
class GitLog {
23
24
    /**
25
     * @var Git_LogDao
26
     */
27
    private $_dao;
28
29
    /**
30
     * Constructor of the class
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() {
35
         $this->_dao = new Git_LogDao();
36
    }
37
38
    /**
39
     * Returns the SQL request & form field for the Git pushes
40
     *
41
     * @param Array $params Log parameters
42
     *
43
     * @return Void
44
     */
45
    function logsDaily($params) {
46
        $params['logs'][] = array('sql'   => $this->_dao->getSqlStatementForLogsDaily($params['group_id'], $params['logs_cond']),
47
                                  'field' => $GLOBALS['Language']->getText('plugin_git', 'logsdaily_field'),
48
                                  'title' => $GLOBALS['Language']->getText('plugin_git', 'logsdaily_title'));
49
    }
50
}
51
?>