original_string: function need_upgrade() {
  
      /// Check requisites are passed
          if (!$this->requisitesok) {
              return COMPONENT_ERROR;
          }
      /// Get local md5
          $local_md5 = $this->get_local_md5();
      /// Get remote md5
          if (!$remote_md5 = $this->get_component_md5()) {
              return COMPONENT_ERROR;
          }
      /// Return result
         if ($local_md5 == $remote_md5) {
             return COMPONENT_UPTODATE;
         } else {
             return COMPONENT_NEEDUPDATE;
         }
      }
code: function need_upgrade() {
  
      /// Check requisites are passed
          if (!$this->requisitesok) {
              return COMPONENT_ERROR;
          }
      /// Get local md5
          $local_md5 = $this->get_local_md5();
      /// Get remote md5
          if (!$remote_md5 = $this->get_component_md5()) {
              return COMPONENT_ERROR;
          }
      /// Return result
         if ($local_md5 == $remote_md5) {
             return COMPONENT_UPTODATE;
         } else {
             return COMPONENT_NEEDUPDATE;
         }
      }
code_tokens: function need_upgrade ( ) { /// Check requisites are passed if ( ! $ this -> requisitesok ) { return COMPONENT_ERROR ; } /// Get local md5 $ local_md5 = $ this -> get_local_md5 ( ) ; /// Get remote md5 if ( ! $ remote_md5 = $ this -> get_component_md5 ( ) ) { return COMPONENT_ERROR ; } /// Return result if ( $ local_md5 == $ remote_md5 ) { return COMPONENT_UPTODATE ; } else { return COMPONENT_NEEDUPDATE ; } }
docstring: This function will detect if remote component needs to be installed
  because it's different from the local one
  
  @uses COMPONENT_ERROR
  @uses COMPONENT_UPTODATE
  @uses COMPONENT_NEEDUPDATE
  @return int COMPONENT_(ERROR | UPTODATE | NEEDUPDATE)
docstring_tokens: This function will detect if remote component needs to be installed because it s different from the local one