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

src/Metadata/Target/Dispatch/DispatchConditionMetadata.php 1 location

@@ 90-99 (lines=10) @@
87
     *
88
     * @throws Exception\InvalidMetadataException
89
     */
90
    public function setType($type)
91
    {
92
        if (!array_key_exists($type, $this->allowConditionRunType)) {
93
            $errMsg = sprintf('Not allowed type %s', $type);
94
            throw new Exception\InvalidMetadataException($errMsg);
95
        }
96
        $this->type = $type;
97
98
        return $this;
99
    }
100
101
    /**
102
     * Определяет обработчик для провекри условий

src/Metadata/Target/Dispatch/Metadata.php 1 location

@@ 187-196 (lines=10) @@
184
     *
185
     * @throws Exception\InvalidMetadataException
186
     */
187
    public function setPrepareDataMethod($prepareDataMethod)
188
    {
189
        if (!array_key_exists($prepareDataMethod, $this->allowPrepareDataMethod)) {
190
            $errMsg = sprintf('Not allowed prepare data method %s', $prepareDataMethod);
191
            throw new Exception\InvalidMetadataException($errMsg);
192
        }
193
        $this->prepareDataMethod = (string)$prepareDataMethod;
194
195
        return $this;
196
    }
197
198
    /**
199
     *  Строка содержащая имя обработчика (имя метода контроллера или имя сервиса) в котором происходит подготовка данных