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

src/Endpoints/Feeds.php 2 locations

@@ 39-61 (lines=23) @@
36
     *
37
     * @return string
38
     */
39
    public function create(
40
        string $title,
41
        string $rss_source_url,
42
        int $parent_dir_id = 0,
43
        bool $delete_old_files = false,
44
        bool $dont_process_whole_feed = false,
45
        array $keywords = [],
46
        array $unwanted_keywords = [],
47
        bool $paused = false
48
    ) {
49
        return $this->client->post('rss/create', [
50
            'form_params' => [
51
                'title' => $title,
52
                'rss_source_url' => $rss_source_url,
53
                'parent_dir_id' => $parent_dir_id,
54
                'delete_old_files' => $delete_old_files,
55
                'dont_process_whole_feed' => $dont_process_whole_feed,
56
                'keywords' => count($keywords) ? implode(',', $keywords) : null,
57
                'unwanted_keywords' => count($unwanted_keywords) ? implode(',', $unwanted_keywords) : null,
58
                'paused' => $paused,
59
            ],
60
        ]);
61
    }
62
63
    /**
64
     * Lists RSS feeds.
@@ 112-135 (lines=24) @@
109
     *
110
     * @return string
111
     */
112
    public function update(
113
        int $id,
114
        string $title,
115
        string $rss_source_url,
116
        int $parent_dir_id = 0,
117
        bool $delete_old_files = false,
118
        bool $dont_process_whole_feed = false,
119
        array $keywords = [],
120
        array $unwanted_keywords = [],
121
        bool $paused = false
122
    ) {
123
        return $this->client->post(sprintf('rss/%d', $id), [
124
            'form_params' => [
125
                'title' => $title,
126
                'rss_source_url' => $rss_source_url,
127
                'parent_dir_id' => $parent_dir_id,
128
                'delete_old_files' => $delete_old_files,
129
                'dont_process_whole_feed' => $dont_process_whole_feed,
130
                'keywords' => count($keywords) ? implode(',', $keywords) : null,
131
                'unwanted_keywords' => count($unwanted_keywords) ? implode(',', $unwanted_keywords) : null,
132
                'paused' => $paused,
133
            ],
134
        ]);
135
    }
136
137
    /**
138
     * Pauses the RSS feed, so that it is not polled for new items anymore.