original_string: public function are_dependencies_satisfied($dependencies) {
          foreach ($dependencies as $component => $requiredversion) {
              $otherplugin = $this->get_plugin_info($component);
              if (is_null($otherplugin)) {
                  return false;
              }
  
              if ($requiredversion != ANY_VERSION and $otherplugin->versiondisk < $requiredversion) {
                  return false;
              }
          }
  
          return true;
      }
code: public function are_dependencies_satisfied($dependencies) {
          foreach ($dependencies as $component => $requiredversion) {
              $otherplugin = $this->get_plugin_info($component);
              if (is_null($otherplugin)) {
                  return false;
              }
  
              if ($requiredversion != ANY_VERSION and $otherplugin->versiondisk < $requiredversion) {
                  return false;
              }
          }
  
          return true;
      }
code_tokens: public function are_dependencies_satisfied ( $ dependencies ) { foreach ( $ dependencies as $ component => $ requiredversion ) { $ otherplugin = $ this -> get_plugin_info ( $ component ) ; if ( is_null ( $ otherplugin ) ) { return false ; } if ( $ requiredversion != ANY_VERSION and $ otherplugin -> versiondisk < $ requiredversion ) { return false ; } } return true ; }
docstring: Check a dependencies list against the list of installed plugins.
  @param array $dependencies compenent name to required version or ANY_VERSION.
  @return bool true if all the dependencies are satisfied.
docstring_tokens: Check a dependencies list against the list of installed plugins .