diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-05-24 13:59:49 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-05-24 13:59:49 +0200 |
commit | 7783971742e69fbd5ad26b0daf75bd4a3043aff0 (patch) | |
tree | 4ec312df65683dad7daa579cce11348296fecfae /inc/parser/code.php | |
parent | 2c2835c2888035a0b3b1fd8b096a962a0a5c40b5 (diff) | |
download | rpg-7783971742e69fbd5ad26b0daf75bd4a3043aff0.tar.gz rpg-7783971742e69fbd5ad26b0daf75bd4a3043aff0.tar.bz2 |
more reformatting
Diffstat (limited to 'inc/parser/code.php')
-rw-r--r-- | inc/parser/code.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/inc/parser/code.php b/inc/parser/code.php index d77ffd1aa..00b956c27 100644 --- a/inc/parser/code.php +++ b/inc/parser/code.php @@ -7,25 +7,25 @@ if(!defined('DOKU_INC')) die('meh.'); class Doku_Renderer_code extends Doku_Renderer { - var $_codeblock=0; + var $_codeblock = 0; /** * Send the wanted code block to the browser * * When the correct block was found it exits the script. */ - function code($text, $language = null, $filename='' ) { + function code($text, $language = null, $filename = '') { global $INPUT; if(!$language) $language = 'txt'; if(!$filename) $filename = 'snippet.'.$language; $filename = utf8_basename($filename); $filename = utf8_stripspecials($filename, '_'); - if($this->_codeblock == $INPUT->str('codeblock')){ + if($this->_codeblock == $INPUT->str('codeblock')) { header("Content-Type: text/plain; charset=utf-8"); header("Content-Disposition: attachment; filename=$filename"); header("X-Robots-Tag: noindex"); - echo trim($text,"\r\n"); + echo trim($text, "\r\n"); exit; } @@ -35,7 +35,7 @@ class Doku_Renderer_code extends Doku_Renderer { /** * Wraps around code() */ - function file($text, $language = null, $filename='') { + function file($text, $language = null, $filename = '') { $this->code($text, $language, $filename); } @@ -53,7 +53,7 @@ class Doku_Renderer_code extends Doku_Renderer { * * @returns string 'code' */ - function getFormat(){ + function getFormat() { return 'code'; } } |