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

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

@@ 920-936 (lines=17) @@
917
	 * @param string $date
918
	 * @return int
919
	 */
920
	function getSiteCountByDate($date = '')
921
	{
922
		$args = new stdClass();
923
924
		if($date)
925
		{
926
			$args->regDate = date('Ymd', strtotime($date));
927
		}
928
929
		$output = executeQuery('admin.getSiteCountByDate', $args);
930
		if(!$output->toBool())
931
		{
932
			return 0;
933
		}
934
935
		return $output->data->count;
936
	}
937
938
	function getFaviconUrl($default = true)
939
	{

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

@@ 223-232 (lines=10) @@
220
	 *
221
	 * @return int
222
	 */
223
	public function getMemberCountByDate($date = '')
224
	{
225
		$args = new stdClass();
226
		if($date) $args->regDate = date('Ymd', strtotime($date));
227
228
		$output = executeQuery('member.getMemberCountByDate', $args);
229
		if(!$output->toBool()) return 0;
230
231
		return $output->data->count;
232
	}
233
234
	/**
235
	 * Return site join member count with date