@@ -135,6 +135,9 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | + /** |
|
| 139 | + * @param DOMNode $var |
|
| 140 | + */ |
|
| 138 | 141 | protected function parseNode(&$var, InstanceObject &$o) |
| 139 | 142 | { |
| 140 | 143 | // Fill the properties |
@@ -240,6 +243,9 @@ discard block |
||
| 240 | 243 | } |
| 241 | 244 | } |
| 242 | 245 | |
| 246 | + /** |
|
| 247 | + * @param string $prop |
|
| 248 | + */ |
|
| 243 | 249 | protected function parseProperty(InstanceObject $o, $prop, &$var) |
| 244 | 250 | { |
| 245 | 251 | // Duplicating (And slightly optimizing) the Parser::parseObject() code here |
@@ -59,6 +59,10 @@ |
||
| 59 | 59 | $o->addRepresentation($r, 0); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $var |
|
| 64 | + * @param string|null $parent_path |
|
| 65 | + */ |
|
| 62 | 66 | protected static function xmlToSimpleXML($var, $parent_path) |
| 63 | 67 | { |
| 64 | 68 | try { |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | return "<a {$class}href=\"{$ideLink}\">{$shortenedPath}:{$line}</a>"; |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $string |
|
| 150 | + */ |
|
| 148 | 151 | public function escape($string, $encoding = false) |
| 149 | 152 | { |
| 150 | 153 | if ($encoding === false) { |
@@ -6,5 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface ObjectPluginInterface extends PluginInterface |
| 8 | 8 | { |
| 9 | + /** |
|
| 10 | + * @return string|null |
|
| 11 | + */ |
|
| 9 | 12 | public function renderObject(BasicObject $o); |
| 10 | 13 | } |
@@ -16,6 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * Renders a locked header. |
| 19 | + * @param string $content |
|
| 19 | 20 | */ |
| 20 | 21 | public function renderLockedHeader(BasicObject $o, $content) |
| 21 | 22 | { |
@@ -6,5 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface PluginInterface |
| 8 | 8 | { |
| 9 | + /** |
|
| 10 | + * @return void |
|
| 11 | + */ |
|
| 9 | 12 | public function __construct(RichRenderer $r); |
| 10 | 13 | } |
@@ -155,6 +155,9 @@ discard block |
||
| 155 | 155 | return '<dl>'.$header.$children.'</dl>'; |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | + /** |
|
| 159 | + * @param boolean $has_children |
|
| 160 | + */ |
|
| 158 | 161 | public function renderHeaderWrapper(BasicObject $o, $has_children, $contents) |
| 159 | 162 | { |
| 160 | 163 | $out = '<dt'; |
@@ -281,6 +284,9 @@ discard block |
||
| 281 | 284 | return $output.'</dd>'; |
| 282 | 285 | } |
| 283 | 286 | |
| 287 | + /** |
|
| 288 | + * @return string |
|
| 289 | + */ |
|
| 284 | 290 | protected function renderTab(BasicObject $o, Representation $rep) |
| 285 | 291 | { |
| 286 | 292 | if ($plugin = $this->getPlugin(self::$tab_plugins, $rep->hints)) { |
@@ -103,6 +103,9 @@ |
||
| 103 | 103 | return $out; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @param integer $width |
|
| 108 | + */ |
|
| 106 | 109 | public function boxText($text, $width) |
| 107 | 110 | { |
| 108 | 111 | if (BlobObject::strlen($text) > $width - 4) { |