original_string: protected function get_target_suffix($target) {
          if (empty($target) || $target === RENDERER_TARGET_MAINTENANCE) {
              // If the target hasn't been specified we need to guess the defaults.
              // We also override the target with the default if the maintenance target has been provided.
              // This ensures we don't use the maintenance renderer if we are processing a special target.
              if (defined('PREFERRED_RENDERER_TARGET')) {
                  $target = PREFERRED_RENDERER_TARGET;
              } else if (CLI_SCRIPT) {
                  $target = RENDERER_TARGET_CLI;
              } else if (AJAX_SCRIPT) {
                  $target = RENDERER_TARGET_AJAX;
              }
          }
  
          switch ($target) {
              case RENDERER_TARGET_CLI: $suffix = '_cli'; break;
              case RENDERER_TARGET_AJAX: $suffix = '_ajax'; break;
              case RENDERER_TARGET_TEXTEMAIL: $suffix = '_textemail'; break;
              case RENDERER_TARGET_HTMLEMAIL: $suffix = '_htmlemail'; break;
              case RENDERER_TARGET_MAINTENANCE: $suffix = '_maintenance'; break;
              default: $target = RENDERER_TARGET_GENERAL; $suffix = '';
          }
  
          return array($target, $suffix);
      }
code: protected function get_target_suffix($target) {
          if (empty($target) || $target === RENDERER_TARGET_MAINTENANCE) {
              // If the target hasn't been specified we need to guess the defaults.
              // We also override the target with the default if the maintenance target has been provided.
              // This ensures we don't use the maintenance renderer if we are processing a special target.
              if (defined('PREFERRED_RENDERER_TARGET')) {
                  $target = PREFERRED_RENDERER_TARGET;
              } else if (CLI_SCRIPT) {
                  $target = RENDERER_TARGET_CLI;
              } else if (AJAX_SCRIPT) {
                  $target = RENDERER_TARGET_AJAX;
              }
          }
  
          switch ($target) {
              case RENDERER_TARGET_CLI: $suffix = '_cli'; break;
              case RENDERER_TARGET_AJAX: $suffix = '_ajax'; break;
              case RENDERER_TARGET_TEXTEMAIL: $suffix = '_textemail'; break;
              case RENDERER_TARGET_HTMLEMAIL: $suffix = '_htmlemail'; break;
              case RENDERER_TARGET_MAINTENANCE: $suffix = '_maintenance'; break;
              default: $target = RENDERER_TARGET_GENERAL; $suffix = '';
          }
  
          return array($target, $suffix);
      }
code_tokens: protected function get_target_suffix ( $ target ) { if ( empty ( $ target ) || $ target === RENDERER_TARGET_MAINTENANCE ) { // If the target hasn't been specified we need to guess the defaults. // We also override the target with the default if the maintenance target has been provided. // This ensures we don't use the maintenance renderer if we are processing a special target. if ( defined ( 'PREFERRED_RENDERER_TARGET' ) ) { $ target = PREFERRED_RENDERER_TARGET ; } else if ( CLI_SCRIPT ) { $ target = RENDERER_TARGET_CLI ; } else if ( AJAX_SCRIPT ) { $ target = RENDERER_TARGET_AJAX ; } } switch ( $ target ) { case RENDERER_TARGET_CLI : $ suffix = '_cli' ; break ; case RENDERER_TARGET_AJAX : $ suffix = '_ajax' ; break ; case RENDERER_TARGET_TEXTEMAIL : $ suffix = '_textemail' ; break ; case RENDERER_TARGET_HTMLEMAIL : $ suffix = '_htmlemail' ; break ; case RENDERER_TARGET_MAINTENANCE : $ suffix = '_maintenance' ; break ; default : $ target = RENDERER_TARGET_GENERAL ; $ suffix = '' ; } return array ( $ target , $ suffix ) ; }
docstring: Returns suffix of renderer class expected for given target.
  
  @param string $target one of the renderer target constants, target is guessed if null used
  @return array two element array, first element is target, second the target suffix string
docstring_tokens: Returns suffix of renderer class expected for given target .