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/file/file.admin.controller.php 1 location

@@ 42-49 (lines=8) @@
39
		// Remove the file list obtained from the DB
40
		$path = array();
41
		$cnt = count($files);
42
		for($i=0;$i<$cnt;$i++)
43
		{
44
			$uploaded_filename = $files[$i]->uploaded_filename;
45
			FileHandler::removeFile($uploaded_filename);
46
47
			$path_info = pathinfo($uploaded_filename);
48
			if(!in_array($path_info['dirname'], $path)) $path[] = $path_info['dirname'];
49
		}
50
		// Remove a file directory of the document
51
		for($i=0;$i<count($path);$i++) FileHandler::removeBlankDir($path[$i]);
52

modules/file/file.controller.php 1 location

@@ 877-884 (lines=8) @@
874
		// Delete the file
875
		$path = array();
876
		$file_count = count($file_list);
877
		for($i=0;$i<$file_count;$i++)
878
		{
879
			$this->deleteFile($file_list[$i]->file_srl);
880
881
			$uploaded_filename = $file_list[$i]->uploaded_filename;
882
			$path_info = pathinfo($uploaded_filename);
883
			if(!in_array($path_info['dirname'], $path)) $path[] = $path_info['dirname'];
884
		}
885
886
		// Remove from the DB
887
		$args = new stdClass();