original_string: public function get_plugin_name() {
          if ($this->plugin === 'core') {
              $string = get_string('core', 'tool_monitor');
          } else if (get_string_manager()->string_exists('pluginname', $this->plugin)) {
              $string = get_string('pluginname', $this->plugin);
          } else {
              $string = $this->plugin;
          }
          return $string;
      }
code: public function get_plugin_name() {
          if ($this->plugin === 'core') {
              $string = get_string('core', 'tool_monitor');
          } else if (get_string_manager()->string_exists('pluginname', $this->plugin)) {
              $string = get_string('pluginname', $this->plugin);
          } else {
              $string = $this->plugin;
          }
          return $string;
      }
code_tokens: public function get_plugin_name ( ) { if ( $ this -> plugin === 'core' ) { $ string = get_string ( 'core' , 'tool_monitor' ) ; } else if ( get_string_manager ( ) -> string_exists ( 'pluginname' , $ this -> plugin ) ) { $ string = get_string ( 'pluginname' , $ this -> plugin ) ; } else { $ string = $ this -> plugin ; } return $ string ; }
docstring: Get name of the plugin associated with this rule
  
  @return string Plugin name.
docstring_tokens: Get name of the plugin associated with this rule