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

@@ 1190-1197 (lines=8) @@
1187
	 * Return a filename to temporarily use
1188
	 * @return string
1189
	 */
1190
	function getTmpFilename()
1191
	{
1192
		$path = "./files/cache/importer";
1193
		FileHandler::makeDir($path);
1194
		$filename = sprintf("%s/%d", $path, rand(11111111,99999999));
1195
		if(file_exists($filename)) $filename .= rand(111,999);
1196
		return $filename;
1197
	}
1198
1199
	/**
1200
	 * Read buff until key value comes out from a specific file point