original_string: public function parse($currentRoute, $permit) {
  		$route = $permit['route'];
  
  		$count = count($route);
  		if ($count == 0) {
  			return false;
  		}
  
  		foreach ($route as $key => $value) {
  			if (isset($currentRoute[$key])) {
  				$values = (is_array($value)) ? $value : array($value);
  				foreach ($values as $k => $v) {
  					if ($currentRoute[$key] == $v) {
  						$count--;
  					}
  				}
  			}
  		}
  		return $count == 0;
  	}
code: public function parse($currentRoute, $permit) {
  		$route = $permit['route'];
  
  		$count = count($route);
  		if ($count == 0) {
  			return false;
  		}
  
  		foreach ($route as $key => $value) {
  			if (isset($currentRoute[$key])) {
  				$values = (is_array($value)) ? $value : array($value);
  				foreach ($values as $k => $v) {
  					if ($currentRoute[$key] == $v) {
  						$count--;
  					}
  				}
  			}
  		}
  		return $count == 0;
  	}
code_tokens: public function parse ( $ currentRoute , $ permit ) { $ route = $ permit [ 'route' ] ; $ count = count ( $ route ) ; if ( $ count == 0 ) { return false ; } foreach ( $ route as $ key => $ value ) { if ( isset ( $ currentRoute [ $ key ] ) ) { $ values = ( is_array ( $ value ) ) ? $ value : array ( $ value ) ; foreach ( $ values as $ k => $ v ) { if ( $ currentRoute [ $ key ] == $ v ) { $ count -- ; } } } } return $ count == 0 ; }
docstring: Parses the passed route against a rule
  
  @param string $currentRoute route being testing
  @param string $permit Permit variable that contains a route being tested against
  @return void
  @author Jose Diaz-Gonzalez
docstring_tokens: Parses the passed route against a rule