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

modules/importer/ttimport.class.php 1 location

@@ 532-539 (lines=8) @@
529
	 * Return a filename to temporarily use
530
	 * @return string
531
	 */
532
	function getTmpFilename()
533
	{
534
		$path = "./files/cache/importer";
535
		if(!is_dir($path)) FileHandler::makeDir($path);
536
		$filename = sprintf("%s/%d", $path, rand(11111111,99999999));
537
		if(file_exists($filename)) $filename .= rand(111,999);
538
		return $filename;
539
	}
540
541
	/**
542
	 * Read buff until key value comes out from a specific file point

modules/importer/importer.admin.controller.php 1 location

@@ 1130-1137 (lines=8) @@
1127
	 * Return a filename to temporarily use
1128
	 * @return string
1129
	 */
1130
	function getTmpFilename()
1131
	{
1132
		$path = "./files/cache/importer";
1133
		FileHandler::makeDir($path);
1134
		$filename = sprintf("%s/%d", $path, rand(11111111,99999999));
1135
		if(file_exists($filename)) $filename .= rand(111,999);
1136
		return $filename;
1137
	}
1138
1139
	/**
1140
	 * Read buff until key value comes out from a specific file point