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

system/helpers/url_helper.php 1 location

@@ 332-349 (lines=18) @@
329
			{
330
				$x[] = '|'.$ordinal;
331
			}
332
			else
333
			{
334
				if (count($temp) === 0)
335
				{
336
					$count = ($ordinal < 224) ? 2 : 3;
337
				}
338
339
				$temp[] = $ordinal;
340
				if (count($temp) === $count)
341
				{
342
					$number = ($count === 3)
343
							? (($temp[0] % 16) * 4096) + (($temp[1] % 64) * 64) + ($temp[2] % 64)
344
							: (($temp[0] % 32) * 64) + ($temp[1] % 64);
345
					$x[] = '|'.$number;
346
					$count = 1;
347
					$temp = array();
348
				}
349
			}
350
		}
351
352
		$x[] = '<'; $x[] = '/'; $x[] = 'a'; $x[] = '>';

system/libraries/Trackback.php 1 location

@@ 503-522 (lines=20) @@
500
			{
501
				$out .= $str[$i];
502
			}
503
			else
504
			{
505
				if (count($temp) === 0)
506
				{
507
					$count = ($ordinal < 224) ? 2 : 3;
508
				}
509
510
				$temp[] = $ordinal;
511
512
				if (count($temp) === $count)
513
				{
514
					$number = ($count === 3)
515
						? (($temp[0] % 16) * 4096) + (($temp[1] % 64) * 64) + ($temp[2] % 64)
516
						: (($temp[0] % 32) * 64) + ($temp[1] % 64);
517
518
					$out .= '&#'.$number.';';
519
					$count = 1;
520
					$temp = array();
521
				}
522
			}
523
		}
524
525
		return $out;