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

widgets/content/content.class.php 1 location

@@ 378-387 (lines=10) @@
375
		if($args->tab_type == 'none' || $args->tab_type == '')
376
		{
377
			$items = array();
378
			foreach($content_items as $key => $val)
379
			{
380
				foreach($val as $k => $v)
381
				{
382
					$date = $v->get('regdate');
383
					$i=0;
384
					while(array_key_exists(sprintf('%s%02d',$date,$i), $items)) $i++;
385
					$items[sprintf('%s%02d',$date,$i)] = $v;
386
				}
387
			}
388
			if($args->order_type =='asc') ksort($items);
389
			else krsort($items);
390
			$content_items = array_slice(array_values($items),0,$args->list_count*$args->page_count);

widgets/mcontent/mcontent.class.php 1 location

@@ 345-354 (lines=10) @@
342
		if($args->tab_type == 'none' || $args->tab_type == '')
343
		{
344
			$items = array();
345
			foreach($content_items as $key => $val)
346
			{
347
				foreach($val as $k => $v)
348
				{
349
					$date = $v->get('regdate');
350
					$i=0;
351
					while(array_key_exists(sprintf('%s%02d',$date,$i), $items)) $i++;
352
					$items[sprintf('%s%02d',$date,$i)] = $v;
353
				}
354
			}
355
			if($args->order_type =='asc') ksort($items);
356
			else krsort($items);
357
			$content_items = array_slice(array_values($items),0,$args->list_count);