original_string: private function getPluginPriority($name, $index = 0)
      {
          $priority = 10;
          if (property_exists($this, "{$name}PluginPriority")) {
              $value    = $this->{$name . 'PluginPriority'};
              $priority = is_array($value) ? $value[ $index ] : $value;
          }
  
          return $priority;
      }
code: private function getPluginPriority($name, $index = 0)
      {
          $priority = 10;
          if (property_exists($this, "{$name}PluginPriority")) {
              $value    = $this->{$name . 'PluginPriority'};
              $priority = is_array($value) ? $value[ $index ] : $value;
          }
  
          return $priority;
      }
code_tokens: private function getPluginPriority ( $ name , $ index = 0 ) { $ priority = 10 ; if ( property_exists ( $ this , "{$name}PluginPriority" ) ) { $ value = $ this -> { $ name . 'PluginPriority' } ; $ priority = is_array ( $ value ) ? $ value [ $ index ] : $ value ; } return $ priority ; }
docstring: getPluginPriority method.
  
  @param     $name
  @param int $index If a plugin priority is defined as array, the 0 index is for register and 1 for boot
  
  @return int|mixed
docstring_tokens: getPluginPriority method .