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

src/Repositories/LocalRepository.php 2 locations

@@ 169-180 (lines=12) @@
166
	 *
167
	 * @return Collection
168
	 */
169
	public function enabled()
170
	{
171
        $moduleCache = $this->getCacheFile();
172
173
        $modules = $this->all()->map(function($item, $key) use ($moduleCache) {
174
            $item['enabled'] = $moduleCache->get($item['slug']);
175
176
            return $item;
177
        });
178
179
		return $modules->where('enabled', true);
180
	}
181
182
	/**
183
	 * Get all disabled modules.
@@ 187-198 (lines=12) @@
184
	 *
185
	 * @return Collection
186
	 */
187
	public function disabled()
188
	{
189
        $moduleCache = $this->getCacheFile();
190
191
        $modules = $this->all()->map(function($item, $key) use ($moduleCache) {
192
            $item['enabled'] = $moduleCache->get($item['slug']);
193
194
            return $item;
195
        });
196
197
		return $modules->where('enabled', false);
198
	}
199
200
	/**
201
	 * Check if specified module is enabled.