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

modules/install/install.model.php 1 location

@@ 92-102 (lines=11) @@
89
		}
90
91
		$list = array();
92
		if($_list)
93
		{
94
			foreach($_list as $k => $v)
95
			{
96
				$src = new stdClass(); 
97
				$src->data = $v;
98
				$res = Context::convertEncoding($src);
99
				$v = $res->data;
100
				if(strpos($v,'d') === 0 || strpos($v, '<DIR>')) $list[] = substr(strrchr($v,' '),1) . '/';
101
			}
102
		}
103
		$this->add('list', $list);
104
	}
105
}

modules/admin/admin.admin.model.php 1 location

@@ 370-387 (lines=18) @@
367
		}
368
		$list = array();
369
370
		if($_list)
371
		{
372
			foreach($_list as $k => $v)
373
			{
374
				$src = new stdClass();
375
				$src->data = $v;
376
				$res = Context::convertEncoding($src);
377
				$v = $res->data;
378
				if(strpos($v, 'd') === 0 || strpos($v, '<DIR>'))
379
				{
380
					$list[] = substr(strrchr($v, ' '), 1) . '/';
381
				}
382
			}
383
		}
384
		else
385
		{
386
			return new BaseObject(-1, 'msg_ftp_no_directory');
387
		}
388
		$this->add('list', $list);
389
	}
390