src/login_github.php
public static function verify_scope($received_scope, $requested_scope='user:email') {
	if (strpos($received_scope, $requested_scope) !== false) {
		return true;
	}
	
	if (strpos($requested_scope, ':')) {
		$parent_requested_scope = substr($requested_scope, 0, strpos($requested_scope, ':'));
		if (strpos($received_scope, $parent_requested_scope) !== false) {
			return true;
		}
	}
	
	return false;
}
public static function verify_scope($received_scope, $requested_scope='user:email') {
	if (strpos($received_scope, $requested_scope) !== false) {
		return true;
	}
	
	if (strpos($requested_scope, ':')) {
		$parent_requested_scope = substr($requested_scope, 0, strpos($requested_scope, ':'));
		if (strpos($received_scope, $parent_requested_scope) !== false) {
			return true;
		}
	}
	
	return false;
}
public static function verify_scope ( $ received_scope , $ requested_scope = 'user:email' ) { if ( strpos ( $ received_scope , $ requested_scope ) !== false ) { return true ; } if ( strpos ( $ requested_scope , ':' ) ) { $ parent_requested_scope = substr ( $ requested_scope , 0 , strpos ( $ requested_scope , ':' ) ) ; if ( strpos ( $ received_scope , $ parent_requested_scope ) !== false ) { return true ; } } return false ; }
checks whether the received scope meets the requested scope

@param  string  $received_scope
@param  string  $requested_scope defaults to 'user:email'
@return boolean
checks whether the received scope meets the requested scope