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

holt45.php 2 locations

@@ 38-48 (lines=11) @@
35
	 *
36
	 * @example if(chk_get_all(array("a","b"))) instead of if(!empty($_GET["a"]) && !empty($_GET["b"]))
37
	 */
38
	function chk_get_all($keys) {
39
		$s = true;
40
41
		foreach($keys AS $key) {
42
		
43
			if (empty($_GET[$key])) {
44
				$s = false;
45
			}
46
		}
47
		return $s;
48
	}
49
50
	/**
51
	 * Check multiple $_POST-keys
@@ 55-65 (lines=11) @@
52
	 *
53
	 * @example if(chk_post_all(array("a","b"))) instead of if(!empty($_POST["a"]) && !empty($_POST["b"]))
54
	 */
55
	function chk_post_all($keys) {
56
		$s = true;
57
58
		foreach($keys AS $key) {
59
		
60
			if (empty($_POST[$key])) {
61
				$s = false;
62
			}
63
		}
64
		return $s;
65
	}
66
67
	/**
68
	 * Convert timestamp to HTTP-date (RFC2616)