@@ -296,10 +296,10 @@ discard block |
||
| 296 | 296 | { |
| 297 | 297 | if ($this->includes === null) { |
| 298 | 298 | $this->includes = [ |
| 299 | - 'require_once' => [], |
|
| 300 | - 'require' => [], |
|
| 301 | - 'include_once' => [], |
|
| 302 | - 'include' => [] |
|
| 299 | + 'require_once' => [], |
|
| 300 | + 'require' => [], |
|
| 301 | + 'include_once' => [], |
|
| 302 | + 'include' => [] |
|
| 303 | 303 | ]; |
| 304 | 304 | |
| 305 | 305 | foreach ($this->tokens as $token) { |
@@ -367,29 +367,29 @@ discard block |
||
| 367 | 367 | $interfaceEndLine = $token->getEndLine(); |
| 368 | 368 | |
| 369 | 369 | $this->interfaces[$interface] = [ |
| 370 | - 'methods' => [], |
|
| 371 | - 'parent' => $token->getParent(), |
|
| 372 | - 'keywords' => $token->getKeywords(), |
|
| 373 | - 'docblock' => $token->getDocblock(), |
|
| 374 | - 'startLine' => $token->getLine(), |
|
| 375 | - 'endLine' => $interfaceEndLine, |
|
| 376 | - 'package' => $token->getPackage(), |
|
| 377 | - 'file' => $this->filename |
|
| 370 | + 'methods' => [], |
|
| 371 | + 'parent' => $token->getParent(), |
|
| 372 | + 'keywords' => $token->getKeywords(), |
|
| 373 | + 'docblock' => $token->getDocblock(), |
|
| 374 | + 'startLine' => $token->getLine(), |
|
| 375 | + 'endLine' => $interfaceEndLine, |
|
| 376 | + 'package' => $token->getPackage(), |
|
| 377 | + 'file' => $this->filename |
|
| 378 | 378 | ]; |
| 379 | 379 | break; |
| 380 | 380 | |
| 381 | 381 | case 'PHP_Token_CLASS': |
| 382 | 382 | case 'PHP_Token_TRAIT': |
| 383 | 383 | $tmp = [ |
| 384 | - 'methods' => [], |
|
| 385 | - 'parent' => $token->getParent(), |
|
| 386 | - 'interfaces'=> $token->getInterfaces(), |
|
| 387 | - 'keywords' => $token->getKeywords(), |
|
| 388 | - 'docblock' => $token->getDocblock(), |
|
| 389 | - 'startLine' => $token->getLine(), |
|
| 390 | - 'endLine' => $token->getEndLine(), |
|
| 391 | - 'package' => $token->getPackage(), |
|
| 392 | - 'file' => $this->filename |
|
| 384 | + 'methods' => [], |
|
| 385 | + 'parent' => $token->getParent(), |
|
| 386 | + 'interfaces'=> $token->getInterfaces(), |
|
| 387 | + 'keywords' => $token->getKeywords(), |
|
| 388 | + 'docblock' => $token->getDocblock(), |
|
| 389 | + 'startLine' => $token->getLine(), |
|
| 390 | + 'endLine' => $token->getEndLine(), |
|
| 391 | + 'package' => $token->getPackage(), |
|
| 392 | + 'file' => $this->filename |
|
| 393 | 393 | ]; |
| 394 | 394 | |
| 395 | 395 | if ($token->getName() !== null) { |
@@ -409,14 +409,14 @@ discard block |
||
| 409 | 409 | case 'PHP_Token_FUNCTION': |
| 410 | 410 | $name = $token->getName(); |
| 411 | 411 | $tmp = [ |
| 412 | - 'docblock' => $token->getDocblock(), |
|
| 413 | - 'keywords' => $token->getKeywords(), |
|
| 414 | - 'visibility'=> $token->getVisibility(), |
|
| 415 | - 'signature' => $token->getSignature(), |
|
| 416 | - 'startLine' => $token->getLine(), |
|
| 417 | - 'endLine' => $token->getEndLine(), |
|
| 418 | - 'ccn' => $token->getCCN(), |
|
| 419 | - 'file' => $this->filename |
|
| 412 | + 'docblock' => $token->getDocblock(), |
|
| 413 | + 'keywords' => $token->getKeywords(), |
|
| 414 | + 'visibility'=> $token->getVisibility(), |
|
| 415 | + 'signature' => $token->getSignature(), |
|
| 416 | + 'startLine' => $token->getLine(), |
|
| 417 | + 'endLine' => $token->getEndLine(), |
|
| 418 | + 'ccn' => $token->getCCN(), |
|
| 419 | + 'file' => $this->filename |
|
| 420 | 420 | ]; |
| 421 | 421 | |
| 422 | 422 | if (empty($class) && |
@@ -52,8 +52,8 @@ |
||
| 52 | 52 | |
| 53 | 53 | if ($commonPath) { |
| 54 | 54 | return [ |
| 55 | - 'commonPath' => $this->getCommonPath($files), |
|
| 56 | - 'files' => $files |
|
| 55 | + 'commonPath' => $this->getCommonPath($files), |
|
| 56 | + 'files' => $files |
|
| 57 | 57 | ]; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -103,9 +103,9 @@ |
||
| 103 | 103 | $parent_def = $definition->info_parent_def; |
| 104 | 104 | $stack = array( |
| 105 | 105 | array($top_node, |
| 106 | - $parent_def->descendants_are_inline, |
|
| 107 | - $parent_def->excludes, // exclusions |
|
| 108 | - 0) |
|
| 106 | + $parent_def->descendants_are_inline, |
|
| 107 | + $parent_def->excludes, // exclusions |
|
| 108 | + 0) |
|
| 109 | 109 | ); |
| 110 | 110 | |
| 111 | 111 | while (!empty($stack)) { |
@@ -151,8 +151,8 @@ |
||
| 151 | 151 | |
| 152 | 152 | // isset is in loop because $tokens size changes during loop exec |
| 153 | 153 | for (;; |
| 154 | - // only increment if we don't need to reprocess |
|
| 155 | - $reprocess ? $reprocess = false : $token = $zipper->next($token)) { |
|
| 154 | + // only increment if we don't need to reprocess |
|
| 155 | + $reprocess ? $reprocess = false : $token = $zipper->next($token)) { |
|
| 156 | 156 | |
| 157 | 157 | // check for a rewind |
| 158 | 158 | if (is_int($i)) { |
@@ -782,8 +782,8 @@ |
||
| 782 | 782 | */ |
| 783 | 783 | public function mergeArrayFromForm($array, $index = false, $allowed = true, $mq_fix = true) |
| 784 | 784 | { |
| 785 | - $ret = HTMLPurifier_Config::prepareArrayFromForm($array, $index, $allowed, $mq_fix, $this->def); |
|
| 786 | - $this->loadArray($ret); |
|
| 785 | + $ret = HTMLPurifier_Config::prepareArrayFromForm($array, $index, $allowed, $mq_fix, $this->def); |
|
| 786 | + $this->loadArray($ret); |
|
| 787 | 787 | } |
| 788 | 788 | |
| 789 | 789 | /** |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | public function generateKey($config) |
| 33 | 33 | { |
| 34 | 34 | return $config->version . ',' . // possibly replace with function calls |
| 35 | - $config->getBatchSerial($this->type) . ',' . |
|
| 36 | - $config->get($this->type . '.DefinitionRev'); |
|
| 35 | + $config->getBatchSerial($this->type) . ',' . |
|
| 36 | + $config->get($this->type . '.DefinitionRev'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -106,11 +106,11 @@ discard block |
||
| 106 | 106 | $tidy->parseString( |
| 107 | 107 | $html, |
| 108 | 108 | array( |
| 109 | - 'indent'=> true, |
|
| 110 | - 'output-xhtml' => $this->_xhtml, |
|
| 111 | - 'show-body-only' => true, |
|
| 112 | - 'indent-spaces' => 2, |
|
| 113 | - 'wrap' => 68, |
|
| 109 | + 'indent'=> true, |
|
| 110 | + 'output-xhtml' => $this->_xhtml, |
|
| 111 | + 'show-body-only' => true, |
|
| 112 | + 'indent-spaces' => 2, |
|
| 113 | + 'wrap' => 68, |
|
| 114 | 114 | ), |
| 115 | 115 | 'utf8' |
| 116 | 116 | ); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | $this->_flashStack[count($this->_flashStack)-1]->param[$token->attr['name']] = $token->attr['value']; |
| 169 | 169 | } |
| 170 | 170 | $attr = $this->generateAttributes($token->attr, $token->name); |
| 171 | - return '<' . $token->name . ($attr ? ' ' : '') . $attr . |
|
| 171 | + return '<' . $token->name . ($attr ? ' ' : '') . $attr . |
|
| 172 | 172 | ( $this->_xhtml ? ' /': '' ) // <br /> v. <br> |
| 173 | 173 | . '>'; |
| 174 | 174 | |
@@ -36,8 +36,8 @@ |
||
| 36 | 36 | // Delete all non-numeric characters, non-x characters |
| 37 | 37 | // from phone number, EXCEPT for a leading plus sign. |
| 38 | 38 | $uri->path = preg_replace('/(?!^\+)[^\dx]/', '', |
| 39 | - // Normalize e(x)tension to lower-case |
|
| 40 | - str_replace('X', 'x', $uri->path)); |
|
| 39 | + // Normalize e(x)tension to lower-case |
|
| 40 | + str_replace('X', 'x', $uri->path)); |
|
| 41 | 41 | |
| 42 | 42 | return true; |
| 43 | 43 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | $content = array(); |
| 87 | 87 | |
| 88 | 88 | $tbody_mode = false; // if true, then we need to wrap any stray |
| 89 | - // <tr>s with a <tbody>. |
|
| 89 | + // <tr>s with a <tbody>. |
|
| 90 | 90 | |
| 91 | 91 | $ws_accum =& $initial_ws; |
| 92 | 92 | |