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

myth/CIModules/forge/controllers/Forge.php 1 location

@@ 286-297 (lines=12) @@
283
			return CLI::error('No generator collections found.');
284
		}
285
286
		foreach ($collections as $alias => $path)
287
		{
288
			$path = rtrim($path, '/ ') .'/';
289
			$folders = scandir($path);
290
291
			if (! $i = array_search(ucfirst($name), $folders))
292
			{
293
				continue;
294
			}
295
296
			return $path . $folders[$i] .'/';
297
		}
298
299
		return null;
300
	}

myth/Forge/BaseGenerator.php 1 location

@@ 560-573 (lines=14) @@
557
			return CLI::error( lang('forge.no_collections') );
558
		}
559
560
		foreach ($collections as $alias => $path)
561
		{
562
			$path = rtrim($path, '/ ') .'/';
563
			$folders = scandir($path);
564
565
			if (! $i = array_search(ucfirst($name), $folders))
566
			{
567
				continue;
568
			}
569
570
			$this->gen_path = $path . $folders[$i] .'/';
571
572
			return $this->gen_path;
573
		}
574
575
		return null;
576
	}