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

actions/plugins/create_project.php 1 location

@@ 116-124 (lines=9) @@
113
114
// check for any project images and associate them with the project
115
$max_num_images = 4;
116
for ($i = 1; $i <= $max_num_images; $i++) {
117
	if (!array_key_exists("image_$i", $_FILES)) {
118
		continue;
119
	}
120
121
	$desc = get_input("image_{$i}_desc");
122
123
	$plugin_project->saveImage("image_$i", $desc, $i);
124
}
125
126
elgg_create_river_item(array(
127
	'view' => 'river/object/plugin_project/create',

actions/plugins/save_project.php 1 location

@@ 66-74 (lines=9) @@
63
if ($result) {
64
	// check for any project images and associate them with the project
65
	$max_num_images = 4;
66
	for ($i=1; $i<=$max_num_images; $i++) {
67
		if (!array_key_exists("image_$i", $_FILES)) {
68
			continue;
69
		}
70
71
		$desc = get_input("image_{$i}_desc");
72
73
		$plugin_project->saveImage("image_$i", $desc, $i);
74
	}
75
76
	system_message(elgg_echo("plugins:project:saved"));
77