|
42 | 42 | /** |
43 | 43 | * WebView represents an instance of a view for use in a WEB environment. |
44 | 44 | * |
45 | | - * WebView provides a set of methods (e.g. {@see WebView::render()} for rendering purpose. |
| 45 | + * WebView provides a set of methods (e.g. {@see WebView::render()}) for rendering purpose. |
46 | 46 | */ |
47 | 47 | final class WebView extends BaseView |
48 | 48 | { |
@@ -169,7 +169,7 @@ public function endBody(): void |
169 | 169 | } |
170 | 170 |
|
171 | 171 | /** |
172 | | - * Marks the beginning of a HTML page. |
| 172 | + * Marks the beginning of an HTML page. |
173 | 173 | */ |
174 | 174 | public function beginPage(): void |
175 | 175 | { |
@@ -289,7 +289,7 @@ public function clear(): void |
289 | 289 | * will result in the meta tag `<meta name="description" content="This website is about funny raccoons.">`. |
290 | 290 | * |
291 | 291 | * @param array $attributes The HTML attributes for the meta tag. |
292 | | - * @param string $key The key that identifies the meta tag. If two meta tags are registered with the same key, the |
| 292 | + * @param string|null $key The key that identifies the meta tag. If two meta tags are registered with the same key, the |
293 | 293 | * latter will overwrite the former. If this is null, the new meta tag will be appended to the |
294 | 294 | * existing ones. |
295 | 295 | */ |
@@ -408,7 +408,7 @@ public function registerStyleTag(Style $style, int $position = self::POSITION_HE |
408 | 408 | * @param string $url The CSS file to be registered. |
409 | 409 | * @param array $options the HTML attributes for the link tag. Please refer to {@see \Yiisoft\Html\Html::cssFile()} |
410 | 410 | * for the supported options. |
411 | | - * @param string $key The key that identifies the CSS script file. If null, it will use $url as the key. If two CSS |
| 411 | + * @param string|null $key The key that identifies the CSS script file. If null, it will use $url as the key. If two CSS |
412 | 412 | * files are registered with the same key, the latter will overwrite the former. |
413 | 413 | */ |
414 | 414 | public function registerCssFile( |
@@ -437,7 +437,7 @@ public function registerCssFile( |
437 | 437 | * - {@see POSITION_END}: at the end of the body section. This is the default value. |
438 | 438 | * - {@see POSITION_LOAD}: executed when HTML page is completely loaded. |
439 | 439 | * - {@see POSITION_READY}: executed when HTML document composition is ready. |
440 | | - * @param string $key The key that identifies the JS code block. If null, it will use $js as the key. If two JS code |
| 440 | + * @param string|null $key The key that identifies the JS code block. If null, it will use $js as the key. If two JS code |
441 | 441 | * blocks are registered with the same key, the latter will overwrite the former. |
442 | 442 | */ |
443 | 443 | public function registerJs(string $js, int $position = self::POSITION_END, ?string $key = null): void |
@@ -474,7 +474,7 @@ public function registerScriptTag(Script $script, int $position = self::POSITION |
474 | 474 | * * {@see POSITION_END}: at the end of the body section. This is the default value. |
475 | 475 | * |
476 | 476 | * Please refer to {@see \Yiisoft\Html\Html::javaScriptFile()} for other supported options. |
477 | | - * @param string $key The key that identifies the JS script file. If null, it will use $url as the key. If two JS |
| 477 | + * @param string|null $key The key that identifies the JS script file. If null, it will use $url as the key. If two JS |
478 | 478 | * files are registered with the same key at the same position, the latter will overwrite the former. |
479 | 479 | * Note that position option takes precedence, thus files registered with the same key, but different |
480 | 480 | * position option will not override each other. |
|
0 commit comments