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 = 10-10 lines in 2 locations

Convert/MeasureConverter.php 1 location

@@ 46-55 (lines=10) @@
43
     * @return MeasureConverter
44
     *
45
     */
46
    public function setFamily($family)
47
    {
48
        if (!isset($this->config[$family])) {
49
            throw new UnknownFamilyMeasureException();
50
        }
51
52
        $this->family = $family;
53
54
        return $this;
55
    }
56
57
    /**
58
     * Convert a value from a base measure to a final measure

Manager/MeasureManager.php 1 location

@@ 84-93 (lines=10) @@
81
     * @throws \InvalidArgumentException
82
     * @return array
83
     */
84
    protected function getFamilyConfig($family)
85
    {
86
        if (!isset($this->config[$family])) {
87
            throw new \InvalidArgumentException(
88
                sprintf('Undefined measure family "%s"', $family)
89
            );
90
        }
91
92
        return $this->config[$family];
93
    }
94
}
95