original_string: public static function delete_evidence($id) {
          $params = self::validate_parameters(self::delete_evidence_parameters(), array(
              'id' => $id
          ));
  
          $evidence = api::read_evidence($params['id']);
          $uc = api::get_user_competency_by_id($evidence->get('usercompetencyid'));
          self::validate_context($uc->get_context());
  
          return api::delete_evidence($evidence);
      }
code: public static function delete_evidence($id) {
          $params = self::validate_parameters(self::delete_evidence_parameters(), array(
              'id' => $id
          ));
  
          $evidence = api::read_evidence($params['id']);
          $uc = api::get_user_competency_by_id($evidence->get('usercompetencyid'));
          self::validate_context($uc->get_context());
  
          return api::delete_evidence($evidence);
      }
code_tokens: public static function delete_evidence ( $ id ) { $ params = self :: validate_parameters ( self :: delete_evidence_parameters ( ) , array ( 'id' => $ id ) ) ; $ evidence = api :: read_evidence ( $ params [ 'id' ] ) ; $ uc = api :: get_user_competency_by_id ( $ evidence -> get ( 'usercompetencyid' ) ) ; self :: validate_context ( $ uc -> get_context ( ) ) ; return api :: delete_evidence ( $ evidence ) ; }
docstring: External function delete_evidence.
  
  @param int $id The evidence ID.
  @return boolean
docstring_tokens: External function delete_evidence .