@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function handle($match, $state, $pos, Doku_Handler $handler) { |
| 60 | 60 | $output = array(); |
| 61 | 61 | $level = 0; |
| 62 | - switch($state) { |
|
| 62 | + switch ($state) { |
|
| 63 | 63 | case DOKU_LEXER_ENTER: |
| 64 | 64 | $frame = $this->interpretMatch($match); |
| 65 | 65 | $level = $frame['level'] = 1; |
@@ -69,19 +69,19 @@ discard block |
||
| 69 | 69 | "${frame['item']}_open", |
| 70 | 70 | "${frame['item']}_content_open" |
| 71 | 71 | ); |
| 72 | - if($frame['paras']) { |
|
| 72 | + if ($frame['paras']) { |
|
| 73 | 73 | array_push($output, 'p_open'); |
| 74 | 74 | } |
| 75 | 75 | array_push($this->stack, $frame); |
| 76 | 76 | break; |
| 77 | 77 | case DOKU_LEXER_EXIT: |
| 78 | 78 | $close_content = true; |
| 79 | - while($frame = array_pop($this->stack)) { |
|
| 79 | + while ($frame = array_pop($this->stack)) { |
|
| 80 | 80 | // for the first frame we pop off the stack, we'll need to |
| 81 | 81 | // close the content tag; for the rest it will have been |
| 82 | 82 | // closed already |
| 83 | - if($close_content) { |
|
| 84 | - if($frame['paras']) { |
|
| 83 | + if ($close_content) { |
|
| 84 | + if ($frame['paras']) { |
|
| 85 | 85 | array_push($output, 'p_close'); |
| 86 | 86 | } |
| 87 | 87 | array_push($output, "${frame['item']}_content_close"); |
@@ -96,14 +96,14 @@ discard block |
||
| 96 | 96 | break; |
| 97 | 97 | case DOKU_LEXER_MATCHED: |
| 98 | 98 | $last_frame = end($this->stack); |
| 99 | - if(substr($match, -2) == '..') { |
|
| 99 | + if (substr($match, -2) == '..') { |
|
| 100 | 100 | // new paragraphs cannot be deeper than the current depth, |
| 101 | 101 | // but they may be shallower |
| 102 | 102 | $para_depth = count(explode(' ', str_replace("\t", ' ', $match))); |
| 103 | 103 | $close_content = true; |
| 104 | - while($para_depth < $last_frame['depth'] && count($this->stack) > 1) { |
|
| 105 | - if($close_content) { |
|
| 106 | - if($last_frame['paras']) { |
|
| 104 | + while ($para_depth < $last_frame['depth'] && count($this->stack) > 1) { |
|
| 105 | + if ($close_content) { |
|
| 106 | + if ($last_frame['paras']) { |
|
| 107 | 107 | array_push($output, 'p_close'); |
| 108 | 108 | } |
| 109 | 109 | array_push($output, "${last_frame['item']}_content_close"); |
@@ -117,8 +117,8 @@ discard block |
||
| 117 | 117 | array_pop($this->stack); |
| 118 | 118 | $last_frame = end($this->stack); |
| 119 | 119 | } |
| 120 | - if($last_frame['paras']) { |
|
| 121 | - if($close_content) { |
|
| 120 | + if ($last_frame['paras']) { |
|
| 121 | + if ($close_content) { |
|
| 122 | 122 | // depth did not change |
| 123 | 123 | array_push($output, 'p_close', 'p_open'); |
| 124 | 124 | } else { |
@@ -136,10 +136,10 @@ discard block |
||
| 136 | 136 | break; |
| 137 | 137 | } |
| 138 | 138 | $curr_frame = $this->interpretMatch($match); |
| 139 | - if($curr_frame['depth'] > $last_frame['depth']) { |
|
| 139 | + if ($curr_frame['depth'] > $last_frame['depth']) { |
|
| 140 | 140 | // going one level deeper |
| 141 | 141 | $level = $last_frame['level'] + 1; |
| 142 | - if($last_frame['paras']) { |
|
| 142 | + if ($last_frame['paras']) { |
|
| 143 | 143 | array_push($output, 'p_close'); |
| 144 | 144 | } |
| 145 | 145 | array_push( |
@@ -153,12 +153,12 @@ discard block |
||
| 153 | 153 | // keep popping frames off the stack until we find a frame |
| 154 | 154 | // that's at least as deep as this one, or until only the |
| 155 | 155 | // bottom frame (i.e. the initial list markup) remains |
| 156 | - while($curr_frame['depth'] < $last_frame['depth'] && |
|
| 156 | + while ($curr_frame['depth'] < $last_frame['depth'] && |
|
| 157 | 157 | count($this->stack) > 1) { |
| 158 | 158 | // again, we need to close the content tag only for |
| 159 | 159 | // the first frame popped off the stack |
| 160 | - if($close_content) { |
|
| 161 | - if($last_frame['paras']) { |
|
| 160 | + if ($close_content) { |
|
| 161 | + if ($last_frame['paras']) { |
|
| 162 | 162 | array_push($output, 'p_close'); |
| 163 | 163 | } |
| 164 | 164 | array_push($output, "${last_frame['item']}_content_close"); |
@@ -176,15 +176,15 @@ discard block |
||
| 176 | 176 | // it will be replaced by the current frame |
| 177 | 177 | array_pop($this->stack); |
| 178 | 178 | $level = $last_frame['level']; |
| 179 | - if($close_content) { |
|
| 180 | - if($last_frame['paras']) { |
|
| 179 | + if ($close_content) { |
|
| 180 | + if ($last_frame['paras']) { |
|
| 181 | 181 | array_push($output, 'p_close'); |
| 182 | 182 | } |
| 183 | 183 | array_push($output, "${last_frame['item']}_content_close"); |
| 184 | 184 | $close_content = false; |
| 185 | 185 | } |
| 186 | 186 | array_push($output, "${last_frame['item']}_close"); |
| 187 | - if($curr_frame['list'] != $last_frame['list']) { |
|
| 187 | + if ($curr_frame['list'] != $last_frame['list']) { |
|
| 188 | 188 | // change list types |
| 189 | 189 | array_push( |
| 190 | 190 | $output, |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | "${curr_frame['item']}_open", |
| 200 | 200 | "${curr_frame['item']}_content_open" |
| 201 | 201 | ); |
| 202 | - if($curr_frame['paras']) { |
|
| 202 | + if ($curr_frame['paras']) { |
|
| 203 | 203 | array_push($output, 'p_open'); |
| 204 | 204 | } |
| 205 | 205 | $curr_frame['level'] = $level; |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | '?' => 'dt', |
| 220 | 220 | ':' => 'dd', |
| 221 | 221 | ); |
| 222 | - $tag = $tag_table[substr($match, -1)]; |
|
| 222 | + $tag = $tag_table[substr($match, -1)]; |
|
| 223 | 223 | return array( |
| 224 | 224 | 'depth' => count(explode(' ', str_replace("\t", ' ', $match))), |
| 225 | 225 | 'list' => substr($tag, 0, 1) . 'l', |
@@ -229,19 +229,19 @@ discard block |
||
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | public function render($mode, Doku_Renderer $renderer, $data) { |
| 232 | - if($mode != 'xhtml' && $mode != 'latex' && $mode != 'odt') { |
|
| 232 | + if ($mode != 'xhtml' && $mode != 'latex' && $mode != 'odt') { |
|
| 233 | 233 | return false; |
| 234 | 234 | } |
| 235 | - if($data['state'] == DOKU_LEXER_UNMATCHED) { |
|
| 236 | - if($mode != 'odt') { |
|
| 235 | + if ($data['state'] == DOKU_LEXER_UNMATCHED) { |
|
| 236 | + if ($mode != 'odt') { |
|
| 237 | 237 | $renderer->doc .= $renderer->_xmlEntities($data['output']); |
| 238 | 238 | } else { |
| 239 | 239 | $renderer->cdata($data['output']); |
| 240 | 240 | } |
| 241 | 241 | return true; |
| 242 | 242 | } |
| 243 | - foreach($data['output'] as $i) { |
|
| 244 | - switch($mode) { |
|
| 243 | + foreach ($data['output'] as $i) { |
|
| 244 | + switch ($mode) { |
|
| 245 | 245 | case 'xhtml': |
| 246 | 246 | $this->renderXhtmlItem($renderer, $i, $data); |
| 247 | 247 | break; |
@@ -253,8 +253,8 @@ discard block |
||
| 253 | 253 | break; |
| 254 | 254 | } |
| 255 | 255 | } |
| 256 | - if($data['state'] == DOKU_LEXER_EXIT) { |
|
| 257 | - if($mode != 'odt') { |
|
| 256 | + if ($data['state'] == DOKU_LEXER_EXIT) { |
|
| 257 | + if ($mode != 'odt') { |
|
| 258 | 258 | $renderer->doc .= "\n"; |
| 259 | 259 | } else { |
| 260 | 260 | $renderer->linebreak(); |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | |
| 266 | 266 | private function renderXhtmlItem(Doku_Renderer $renderer, $item, $data) { |
| 267 | 267 | $markup = ''; |
| 268 | - switch($item) { |
|
| 268 | + switch ($item) { |
|
| 269 | 269 | case 'ol_open': |
| 270 | 270 | $markup = "<ol>\n"; |
| 271 | 271 | break; |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | |
| 331 | 331 | private function renderLatexItem(Doku_Renderer $renderer, $item) { |
| 332 | 332 | $markup = ''; |
| 333 | - switch($item) { |
|
| 333 | + switch ($item) { |
|
| 334 | 334 | case 'ol_open': |
| 335 | 335 | $markup = "\\begin{enumerate}\n"; |
| 336 | 336 | break; |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | * @author LarsDW223 |
| 398 | 398 | */ |
| 399 | 399 | private function renderOdtItem(Doku_Renderer $renderer, $item) { |
| 400 | - switch($item) { |
|
| 400 | + switch ($item) { |
|
| 401 | 401 | case 'ol_open': |
| 402 | 402 | $renderer->listo_open(); |
| 403 | 403 | break; |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | $renderer->listu_open(); |
| 406 | 406 | break; |
| 407 | 407 | case 'dl_open': |
| 408 | - if($this->getConf('def_list_odt_export') != 'table') { |
|
| 408 | + if ($this->getConf('def_list_odt_export') != 'table') { |
|
| 409 | 409 | $renderer->listu_open(); |
| 410 | 410 | } else { |
| 411 | 411 | $renderer->table_open(2); |
@@ -422,9 +422,9 @@ discard block |
||
| 422 | 422 | break; |
| 423 | 423 | case 'dl_close': |
| 424 | 424 | $config = $this->getConf('def_list_odt_export'); |
| 425 | - if($config != 'table') { |
|
| 426 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] != 2) { |
|
| 427 | - if($config == 'listheader' && method_exists($renderer, 'listheader_close')) { |
|
| 425 | + if ($config != 'table') { |
|
| 426 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] != 2) { |
|
| 427 | + if ($config == 'listheader' && method_exists($renderer, 'listheader_close')) { |
|
| 428 | 428 | $renderer->listheader_close(); |
| 429 | 429 | } else { |
| 430 | 430 | $renderer->listitem_close(); |
@@ -433,20 +433,20 @@ discard block |
||
| 433 | 433 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] = 0; |
| 434 | 434 | $renderer->list_close(); |
| 435 | 435 | } else { |
| 436 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] == 0) { |
|
| 436 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] == 0) { |
|
| 437 | 437 | $properties = array(); |
| 438 | 438 | $properties ['border'] = 'none'; |
| 439 | 439 | $renderer->_odtTableCellOpenUseProperties($properties); |
| 440 | 440 | $renderer->tablecell_close(); |
| 441 | 441 | } |
| 442 | 442 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] = 0; |
| 443 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 443 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 444 | 444 | $renderer->tablerow_close(1); |
| 445 | 445 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = false; |
| 446 | 446 | } |
| 447 | 447 | $renderer->table_close(); |
| 448 | 448 | } |
| 449 | - if(self::$odt_table_stack_index > 0) { |
|
| 449 | + if (self::$odt_table_stack_index > 0) { |
|
| 450 | 450 | self::$odt_table_stack_index--; |
| 451 | 451 | unset(self::$odt_table_stack [self::$odt_table_stack_index]); |
| 452 | 452 | } |
@@ -466,18 +466,18 @@ discard block |
||
| 466 | 466 | break; |
| 467 | 467 | |
| 468 | 468 | case 'dt_open': // unconditional: DT tags can't contain paragraphs. That would not be legal XHTML. |
| 469 | - switch($this->getConf('def_list_odt_export')) { |
|
| 469 | + switch ($this->getConf('def_list_odt_export')) { |
|
| 470 | 470 | case 'listheader': |
| 471 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 472 | - if(method_exists($renderer, 'listheader_close')) { |
|
| 471 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 472 | + if (method_exists($renderer, 'listheader_close')) { |
|
| 473 | 473 | $renderer->listheader_close(); |
| 474 | 474 | } else { |
| 475 | 475 | $renderer->listitem_close(); |
| 476 | 476 | } |
| 477 | 477 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = false; |
| 478 | 478 | } |
| 479 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 480 | - if(method_exists($renderer, 'listheader_open')) { |
|
| 479 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 480 | + if (method_exists($renderer, 'listheader_open')) { |
|
| 481 | 481 | $renderer->listheader_open(1); |
| 482 | 482 | } else { |
| 483 | 483 | $renderer->listitem_open(1); |
@@ -486,18 +486,18 @@ discard block |
||
| 486 | 486 | } |
| 487 | 487 | break; |
| 488 | 488 | case 'table': |
| 489 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] == 0) { |
|
| 489 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] == 0) { |
|
| 490 | 490 | $properties = array(); |
| 491 | 491 | $properties ['border'] = 'none'; |
| 492 | 492 | $renderer->_odtTableCellOpenUseProperties($properties); |
| 493 | 493 | $renderer->tablecell_close(); |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 496 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 497 | 497 | $renderer->tablerow_close(); |
| 498 | 498 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = false; |
| 499 | 499 | } |
| 500 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 500 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 501 | 501 | $renderer->tablerow_open(1); |
| 502 | 502 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = true; |
| 503 | 503 | } |
@@ -506,11 +506,11 @@ discard block |
||
| 506 | 506 | $renderer->_odtTableCellOpenUseProperties($properties); |
| 507 | 507 | break; |
| 508 | 508 | default: |
| 509 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 509 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 510 | 510 | $renderer->listitem_close(); |
| 511 | 511 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = false; |
| 512 | 512 | } |
| 513 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 513 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 514 | 514 | $renderer->listitem_open(1); |
| 515 | 515 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = true; |
| 516 | 516 | } |
@@ -520,10 +520,10 @@ discard block |
||
| 520 | 520 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] = 0; |
| 521 | 521 | break; |
| 522 | 522 | case 'dd_open': |
| 523 | - switch($this->getConf('def_list_odt_export')) { |
|
| 523 | + switch ($this->getConf('def_list_odt_export')) { |
|
| 524 | 524 | case 'listheader': |
| 525 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 526 | - if(method_exists($renderer, 'listheader_open')) { |
|
| 525 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 526 | + if (method_exists($renderer, 'listheader_open')) { |
|
| 527 | 527 | $renderer->listheader_open(1); |
| 528 | 528 | } else { |
| 529 | 529 | $renderer->listitem_open(1); |
@@ -532,14 +532,14 @@ discard block |
||
| 532 | 532 | } |
| 533 | 533 | break; |
| 534 | 534 | case 'table': |
| 535 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 535 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 536 | 536 | $renderer->tablerow_open(1); |
| 537 | 537 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = true; |
| 538 | 538 | } |
| 539 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['dtState'] == 1) { |
|
| 539 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['dtState'] == 1) { |
|
| 540 | 540 | $renderer->tablecell_close(); |
| 541 | 541 | } |
| 542 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['dtState'] == 0) { |
|
| 542 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['dtState'] == 0) { |
|
| 543 | 543 | $properties = array(); |
| 544 | 544 | $properties ['border'] = 'none'; |
| 545 | 545 | $renderer->_odtTableCellOpenUseProperties($properties); |
@@ -551,7 +551,7 @@ discard block |
||
| 551 | 551 | $renderer->_odtTableCellOpenUseProperties($properties); |
| 552 | 552 | break; |
| 553 | 553 | default: |
| 554 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 554 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === false) { |
|
| 555 | 555 | $renderer->listitem_open(1); |
| 556 | 556 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = true; |
| 557 | 557 | } |
@@ -561,7 +561,7 @@ discard block |
||
| 561 | 561 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['ddState'] = 1; |
| 562 | 562 | break; |
| 563 | 563 | case 'dt_content_open': |
| 564 | - switch($this->getConf('def_list_odt_export')) { |
|
| 564 | + switch ($this->getConf('def_list_odt_export')) { |
|
| 565 | 565 | case 'table': |
| 566 | 566 | $renderer->p_open(); |
| 567 | 567 | break; |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | $this->renderODTOpenSpan($renderer); |
| 573 | 573 | break; |
| 574 | 574 | case 'dd_content_open': |
| 575 | - switch($this->getConf('def_list_odt_export')) { |
|
| 575 | + switch ($this->getConf('def_list_odt_export')) { |
|
| 576 | 576 | case 'table': |
| 577 | 577 | $renderer->p_open(); |
| 578 | 578 | break; |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | break; |
| 584 | 584 | case 'dt_content_close': |
| 585 | 585 | $this->renderODTCloseSpan($renderer); |
| 586 | - switch($this->getConf('def_list_odt_export')) { |
|
| 586 | + switch ($this->getConf('def_list_odt_export')) { |
|
| 587 | 587 | case 'table': |
| 588 | 588 | $renderer->p_close(); |
| 589 | 589 | break; |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | } |
| 594 | 594 | break; |
| 595 | 595 | case 'dd_content_close': |
| 596 | - switch($this->getConf('def_list_odt_export')) { |
|
| 596 | + switch ($this->getConf('def_list_odt_export')) { |
|
| 597 | 597 | case 'table': |
| 598 | 598 | $renderer->p_close(); |
| 599 | 599 | break; |
@@ -603,7 +603,7 @@ discard block |
||
| 603 | 603 | } |
| 604 | 604 | break; |
| 605 | 605 | case 'dt_close': |
| 606 | - switch($this->getConf('def_list_odt_export')) { |
|
| 606 | + switch ($this->getConf('def_list_odt_export')) { |
|
| 607 | 607 | case 'listheader': |
| 608 | 608 | $renderer->linebreak(); |
| 609 | 609 | break; |
@@ -618,10 +618,10 @@ discard block |
||
| 618 | 618 | break; |
| 619 | 619 | |
| 620 | 620 | case 'dd_close': |
| 621 | - switch($this->getConf('def_list_odt_export')) { |
|
| 621 | + switch ($this->getConf('def_list_odt_export')) { |
|
| 622 | 622 | case 'listheader': |
| 623 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 624 | - if(method_exists($renderer, 'listheader_close')) { |
|
| 623 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 624 | + if (method_exists($renderer, 'listheader_close')) { |
|
| 625 | 625 | $renderer->listheader_close(); |
| 626 | 626 | } else { |
| 627 | 627 | $renderer->listitem_close(); |
@@ -631,13 +631,13 @@ discard block |
||
| 631 | 631 | break; |
| 632 | 632 | case 'table': |
| 633 | 633 | $renderer->tablecell_close(); |
| 634 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 634 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 635 | 635 | $renderer->tablerow_close(1); |
| 636 | 636 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = false; |
| 637 | 637 | } |
| 638 | 638 | break; |
| 639 | 639 | default: |
| 640 | - if(self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 640 | + if (self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] === true) { |
|
| 641 | 641 | $renderer->listitem_close(1); |
| 642 | 642 | self::$odt_table_stack [self::$odt_table_stack_index - 1]['itemOpen'] = false; |
| 643 | 643 | } |
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | * @author LarsDW223 |
| 681 | 681 | */ |
| 682 | 682 | private function renderODTCloseSpan($renderer) { |
| 683 | - if(method_exists($renderer, '_odtSpanClose') === false) { |
|
| 683 | + if (method_exists($renderer, '_odtSpanClose') === false) { |
|
| 684 | 684 | // Function is not supported by installed ODT plugin version, return. |
| 685 | 685 | return; |
| 686 | 686 | } |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | search($data, $conf['datadir'], 'search_allpages', array('skipacl' => true)); |
| 45 | 45 | $verbose = false; |
| 46 | 46 | $force = false; |
| 47 | - foreach($data as $val) { |
|
| 47 | + foreach ($data as $val) { |
|
| 48 | 48 | idx_addPage($val['id'], $verbose, $force); |
| 49 | 49 | } |
| 50 | - if($conf['allowdebug']) { |
|
| 50 | + if ($conf['allowdebug']) { |
|
| 51 | 51 | touch(DOKU_TMP_DATA . 'cache/debug.log'); |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | parent::tearDown(); |
| 57 | 57 | global $conf; |
| 58 | 58 | // try to get the debug log after running the test, print and clear |
| 59 | - if($conf['allowdebug']) { |
|
| 59 | + if ($conf['allowdebug']) { |
|
| 60 | 60 | print "\n"; |
| 61 | 61 | readfile(DOKU_TMP_DATA . 'cache/debug.log'); |
| 62 | 62 | unlink(DOKU_TMP_DATA . 'cache/debug.log'); |