Code Duplication    Length = 9-9 lines in 6 locations

src/CodeClimateLoader.php 1 location

@@ 45-53 (lines=9) @@
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function getErrorsOnLine($file, $lineNumber)
46
    {
47
        $errors = [];
48
        if (isset($this->errors[$file][$lineNumber])) {
49
            $errors = $this->errors[$file][$lineNumber];
50
        }
51
52
        return $errors;
53
    }
54
55
    /**
56
     * {@inheritdoc}

src/HumbugLoader.php 1 location

@@ 67-75 (lines=9) @@
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function getErrorsOnLine($file, $lineNumber)
68
    {
69
        $errors = [];
70
        if (isset($this->invalidLines[$file][$lineNumber])) {
71
            $errors = (array) $this->invalidLines[$file][$lineNumber];
72
        }
73
74
        return $errors;
75
    }
76
77
    /**
78
     * {@inheritdoc}

src/PhanTextLoader.php 1 location

@@ 52-60 (lines=9) @@
49
    /**
50
     * {@inheritdoc}
51
     */
52
    public function getErrorsOnLine($file, $lineNumber)
53
    {
54
        $errors = [];
55
        if (isset($this->errors[$file][$lineNumber])) {
56
            $errors = $this->errors[$file][$lineNumber];
57
        }
58
59
        return $errors;
60
    }
61
62
    /**
63
     * {@inheritdoc}

src/Phpcpd.php 1 location

@@ 36-44 (lines=9) @@
33
    }
34
35
36
    public function getErrorsOnLine($file, $lineNumber)
37
    {
38
        $errors = [];
39
        if (isset($this->duplicateCode[$file][$lineNumber])) {
40
            $errors = $this->duplicateCode[$file][$lineNumber];
41
        }
42
43
        return $errors;
44
    }
45
46
    public function handleNotFoundFile()
47
    {

src/PhpMndLoader.php 1 location

@@ 35-43 (lines=9) @@
32
    /**
33
     * @inheritdoc
34
     */
35
    public function getErrorsOnLine($file, $lineNumber)
36
    {
37
        $errors = [];
38
        if (isset($this->invalidLines[$file][$lineNumber])) {
39
            $errors = $this->invalidLines[$file][$lineNumber];
40
        }
41
42
        return $errors;
43
    }
44
45
    /**
46
     * return as true to include files, phpmnd only shows files with errors

src/PhpStanLoader.php 1 location

@@ 61-69 (lines=9) @@
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function getErrorsOnLine($file, $lineNumber)
62
    {
63
        $errors = [];
64
        if (isset($this->invalidLines[$file][$lineNumber])) {
65
            $errors = $this->invalidLines[$file][$lineNumber];
66
        }
67
68
        return $errors;
69
    }
70
71
72
    /**