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

lib/UCD/Console/Application/Command/PropertiesCommand.php 1 location

@@ 87-113 (lines=27) @@
84
    /**
85
     * @return InputDefinition
86
     */
87
    private function createInputDefinition()
88
    {
89
        $propertyType = new InputArgument(
90
            self::ARGUMENT_PROPERTY_TYPE,
91
            InputArgument::REQUIRED,
92
            'Property type. Choose from: block, category, script'
93
        );
94
95
        $searchBy = new InputArgument(
96
            self::ARGUMENT_SEARCH_BY,
97
            InputArgument::REQUIRED,
98
            'What to search by'
99
        );
100
101
        $repositoryNames = $this->getRepositoryNames();
102
        $namesList = implode(', ', $repositoryNames);
103
104
        $from = new InputOption(
105
            self::OPTION_FROM,
106
            null,
107
            InputOption::VALUE_OPTIONAL,
108
            sprintf('Repository from which codepoints should be resolved. Choose from: %s', $namesList),
109
            array_shift($repositoryNames)
110
        );
111
112
        return new InputDefinition([$propertyType, $searchBy, $from]);
113
    }
114
}

lib/UCD/Console/Application/Command/SearchCommand.php 1 location

@@ 90-118 (lines=29) @@
87
    /**
88
     * @return InputDefinition
89
     */
90
    private function createInputDefinition()
91
    {
92
        $codepoint = new InputArgument(
93
            self::ARGUMENT_CODEPOINT,
94
            InputArgument::REQUIRED,
95
            'Character codepoint to search for'
96
        );
97
98
        $repositoryNames = $this->getRepositoryNames();
99
        $namesList = implode(', ', $repositoryNames);
100
101
        $from = new InputOption(
102
            self::OPTION_FROM,
103
            null,
104
            InputOption::VALUE_OPTIONAL,
105
            sprintf('Repository from which the character should be resolved. Choose from: %s', $namesList),
106
            array_shift($repositoryNames)
107
        );
108
109
        $encoding = new InputOption(
110
            self::OPTION_ENCODING,
111
            null,
112
            InputOption::VALUE_OPTIONAL,
113
            'Encoding of the supplied value. Choose from: dec, hex, utf8',
114
            self::ENCODING_HEXADECIMAL
115
        );
116
117
        return new InputDefinition([$codepoint, $from, $encoding]);
118
    }
119
}