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.

LanguageFilesTest::testLanguagesFiles()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 11
rs 9.4285
cc 3
eloc 9
nc 2
nop 0
1
<?php
2
/**
3
* Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
4
*
5
* 
6
*/
7
8
class LanguageFilesTest extends UnitTestCase {
9
10
    function testLanguagesFiles() {
11
        $cmd          = $GLOBALS['basedir'].'/src/utils/analyse_language_files.pl '.$GLOBALS['basedir'].' 2>&1';
12
        $return_value = 1;
13
        $output       = array();
14
        exec($cmd, $output, $return_value);
15
        $full_output = implode("\n", $output);
16
        if ($return_value != 0 || preg_match('/[1-9]\s*(missing|incorrect|duplicate) keys/', $full_output)) {
0 ignored issues
show
Bug introduced by
It seems like you are loosely comparing $return_value of type integer|null to 0; this is ambiguous as not only 0 == 0 is true, but null == 0 is true, too. Consider using a strict comparison ===.
Loading history...
17
            echo "<pre>\n$full_output\n</pre>";
18
            $this->fail();
19
        }
20
    }
21
}
22