original_string: public static function listAllTemplates()
      {
          $fileTemplates = (array) MailManager::instance()->listRegisteredTemplates();
          $dbTemplates = (array) self::lists('code', 'code');
          $templates = $fileTemplates + $dbTemplates;
          ksort($templates);
          return $templates;
      }
code: public static function listAllTemplates()
      {
          $fileTemplates = (array) MailManager::instance()->listRegisteredTemplates();
          $dbTemplates = (array) self::lists('code', 'code');
          $templates = $fileTemplates + $dbTemplates;
          ksort($templates);
          return $templates;
      }
code_tokens: public static function listAllTemplates ( ) { $ fileTemplates = ( array ) MailManager :: instance ( ) -> listRegisteredTemplates ( ) ; $ dbTemplates = ( array ) self :: lists ( 'code' , 'code' ) ; $ templates = $ fileTemplates + $ dbTemplates ; ksort ( $ templates ) ; return $ templates ; }
docstring: Returns an array of template codes and descriptions.
  @return array
docstring_tokens: Returns an array of template codes and descriptions .