original_string: public final function has_admin_settings() {
          global $CFG;
  
          $pluginroot = $CFG->dirroot . '/mod/assign/' . substr($this->get_subtype(), strlen('assign')) . '/' . $this->get_type();
          $settingsfile = $pluginroot . '/settings.php';
          return file_exists($settingsfile);
      }
code: public final function has_admin_settings() {
          global $CFG;
  
          $pluginroot = $CFG->dirroot . '/mod/assign/' . substr($this->get_subtype(), strlen('assign')) . '/' . $this->get_type();
          $settingsfile = $pluginroot . '/settings.php';
          return file_exists($settingsfile);
      }
code_tokens: public final function has_admin_settings ( ) { global $ CFG ; $ pluginroot = $ CFG -> dirroot . '/mod/assign/' . substr ( $ this -> get_subtype ( ) , strlen ( 'assign' ) ) . '/' . $ this -> get_type ( ) ; $ settingsfile = $ pluginroot . '/settings.php' ; return file_exists ( $ settingsfile ) ; }
docstring: Has this plugin got a custom settings.php file?
  
  @return bool
docstring_tokens: Has this plugin got a custom settings . php file?