@@ -149,6 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | 151 | * |
| 152 | + * @param string $name |
|
| 152 | 153 | */ |
| 153 | 154 | public function addSetting($name, $value = '') |
| 154 | 155 | { |
@@ -226,6 +227,7 @@ discard block |
||
| 226 | 227 | |
| 227 | 228 | /** |
| 228 | 229 | * |
| 230 | + * @param string $s |
|
| 229 | 231 | */ |
| 230 | 232 | public function parse($s) |
| 231 | 233 | { |
@@ -462,7 +464,7 @@ discard block |
||
| 462 | 464 | /** |
| 463 | 465 | * Formats whole blocks of CDATA |
| 464 | 466 | * |
| 465 | - * @param &string $cdata |
|
| 467 | + * @param string $cdata |
|
| 466 | 468 | * @param boolean $outline |
| 467 | 469 | * @return string |
| 468 | 470 | */ |
@@ -454,7 +454,7 @@ |
||
| 454 | 454 | $last_tag = null; |
| 455 | 455 | } |
| 456 | 456 | |
| 457 | - $e = function ($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); }; |
|
| 457 | + $e = function($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); }; |
|
| 458 | 458 | |
| 459 | 459 | return $e($s); |
| 460 | 460 | } |
@@ -109,6 +109,7 @@ |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * |
| 112 | + * @param integer $tagType |
|
| 112 | 113 | * @return boolean |
| 113 | 114 | */ |
| 114 | 115 | public function isOfType($tagType) |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $node->setAttribute('id', $identifierFormatted); |
| 68 | 68 | |
| 69 | 69 | if ($thisDepth > $curDepth) { |
| 70 | - $toc .= "\n".str_repeat(' ', $thisDepth - 1)."<ul>\n"; |
|
| 70 | + $toc .= "\n" . str_repeat(' ', $thisDepth - 1) . "<ul>\n"; |
|
| 71 | 71 | } elseif ($i > 0) { |
| 72 | 72 | $toc .= "</li>\n"; |
| 73 | 73 | } |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | $newList = array(); |
| 108 | 108 | |
| 109 | 109 | // Traverse the tree |
| 110 | - $rec = function ($node) use (&$rec, &$newList, &$arrayList) { |
|
| 110 | + $rec = function($node) use (&$rec, &$newList, &$arrayList) { |
|
| 111 | 111 | /* @var $node DOMElement */ |
| 112 | 112 | |
| 113 | 113 | foreach ($arrayList as $index => $compareNode) { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $caption = (string) $node->getAttribute('caption'); |
| 48 | 48 | |
| 49 | 49 | $file = (string) $node->getAttribute('file'); |
| 50 | - $from = $node->getAttribute('from'); |
|
| 50 | + $from = $node->getAttribute('from'); |
|
| 51 | 51 | $length = $node->getAttribute('length'); |
| 52 | 52 | |
| 53 | 53 | if ($from === '') { |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $class = 'line'; |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | - $code[$i] = '<span class="'.$class.'" id="hic-svnt-dracones">' |
|
| 180 | + $code[$i] = '<span class="' . $class . '" id="hic-svnt-dracones">' |
|
| 181 | 181 | . $code[$i] |
| 182 | 182 | . '</span>'; |
| 183 | 183 | |
@@ -175,7 +175,7 @@ |
||
| 175 | 175 | |
| 176 | 176 | $xml .= '<li id="' . $id . '">'; |
| 177 | 177 | $xml .= $text; |
| 178 | - $xml .= ' <a href="#'.$idRef.'">'."\xE2\x86\x91".'</a>'; |
|
| 178 | + $xml .= ' <a href="#' . $idRef . '">' . "\xE2\x86\x91" . '</a>'; |
|
| 179 | 179 | $xml .= '</li>'; |
| 180 | 180 | |
| 181 | 181 | $i++; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function highlight($source, $language = '') |
| 18 | 18 | { |
| 19 | - $e = function ($s) { |
|
| 19 | + $e = function($s) { |
|
| 20 | 20 | return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); |
| 21 | 21 | }; |
| 22 | 22 | |
@@ -5,10 +5,10 @@ |
||
| 5 | 5 | |
| 6 | 6 | header('Content-Type: text/html; charset=UTF-8'); |
| 7 | 7 | |
| 8 | -if ((!$loader = @include __DIR__.'/../../../autoload.php') |
|
| 9 | - && (!$loader = @include __DIR__.'/../vendor/autoload.php') |
|
| 8 | +if ((!$loader = @include __DIR__ . '/../../../autoload.php') |
|
| 9 | + && (!$loader = @include __DIR__ . '/../vendor/autoload.php') |
|
| 10 | 10 | ) { |
| 11 | - die('You must set up the project dependencies, run the following commands:'.PHP_EOL. |
|
| 12 | - 'curl -s http://getcomposer.org/installer | php'.PHP_EOL. |
|
| 13 | - 'php composer.phar install'.PHP_EOL); |
|
| 11 | + die('You must set up the project dependencies, run the following commands:' . PHP_EOL . |
|
| 12 | + 'curl -s http://getcomposer.org/installer | php' . PHP_EOL . |
|
| 13 | + 'php composer.phar install' . PHP_EOL); |
|
| 14 | 14 | } |
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | require_once __DIR__ . '/../bootstrap.php'; |
| 6 | 6 | |
| 7 | -$e = function ($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); }; |
|
| 7 | +$e = function($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); }; |
|
| 8 | 8 | |
| 9 | 9 | $sets = array(); |
| 10 | 10 | |
| 11 | 11 | $sets['commonmark'] = array( |
| 12 | - __DIR__ . '/../../README.md' |
|
| 12 | + __DIR__ . '/../../README.md' |
|
| 13 | 13 | ); |
| 14 | 14 | |
| 15 | 15 | $sets['inigo'] = array( |