Skip to content

Commit a2ca19e

Browse files
committed
Minor corrections
1 parent 37ebce8 commit a2ca19e

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/use-in-web-environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ $view->registerLinkTag(\Yiisoft\Html\Html::link('/myicon.png', [
170170
The code above will result in:
171171

172172
```html
173-
<link title="Live News for Yii" rel="alternate" type="application/rss+xml" href="http://www.yiiframework.com/rss.xml">
173+
<link title="Live News for Yii" rel="alternate" type="application/rss+xml" href="https://www.yiiframework.com/rss.xml">
174174
<link rel="icon" type="image/png">
175175
```
176176

src/BaseView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public function renderFile(string $viewFile, array $parameters = []): string
428428
*
429429
* The searching is based on the specified language code. In particular, a file with the same name will be looked
430430
* for under the subdirectory whose name is the same as the language code. For example, given the file
431-
* "path/to/view.php" and language code "zh-CN", the localized file will be looked for as path/to/zh-CN/view.php".
431+
* "path/to/view.php" and language code "zh-CN", the localized file will be looked for as "path/to/zh-CN/view.php".
432432
* If the file is not found, it will try a fallback with just a language code that is "zh"
433433
* i.e. "path/to/zh/view.php".
434434
* If it is not found as well the original file will be returned.

src/Cache/DynamicContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(string $id, callable $contentGenerator, array $param
3030
}
3131

3232
/**
33-
* Returns the he unique identifier of the dynamic content.
33+
* Returns a unique identifier of the dynamic content.
3434
*
3535
* @return string The unique identifier of the dynamic content.
3636
*/

src/TemplateRendererInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Yiisoft\View;
66

77
/**
8-
* TemplateRendererInterface is the interface that should implemented by view template renderers.
8+
* TemplateRendererInterface is the interface that should be implemented by view template renderers.
99
*/
1010
interface TemplateRendererInterface
1111
{

src/ViewContextInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Yiisoft\View;
66

77
/**
8-
* ViewContextInterface is the interface that should implemented by classes who want to support relative view names.
8+
* ViewContextInterface is the interface that should be implemented by classes who want to support relative view names.
99
*
1010
* The method {@see ViewContextInterface::getViewPath()} should be implemented to return the view path
1111
* that may be prefixed to a relative view name.

src/WebView.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/**
4343
* WebView represents an instance of a view for use in a WEB environment.
4444
*
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.
4646
*/
4747
final class WebView extends BaseView
4848
{
@@ -169,7 +169,7 @@ public function endBody(): void
169169
}
170170

171171
/**
172-
* Marks the beginning of a HTML page.
172+
* Marks the beginning of an HTML page.
173173
*/
174174
public function beginPage(): void
175175
{
@@ -289,7 +289,7 @@ public function clear(): void
289289
* will result in the meta tag `<meta name="description" content="This website is about funny raccoons.">`.
290290
*
291291
* @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
293293
* latter will overwrite the former. If this is null, the new meta tag will be appended to the
294294
* existing ones.
295295
*/
@@ -408,7 +408,7 @@ public function registerStyleTag(Style $style, int $position = self::POSITION_HE
408408
* @param string $url The CSS file to be registered.
409409
* @param array $options the HTML attributes for the link tag. Please refer to {@see \Yiisoft\Html\Html::cssFile()}
410410
* 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
412412
* files are registered with the same key, the latter will overwrite the former.
413413
*/
414414
public function registerCssFile(
@@ -437,7 +437,7 @@ public function registerCssFile(
437437
* - {@see POSITION_END}: at the end of the body section. This is the default value.
438438
* - {@see POSITION_LOAD}: executed when HTML page is completely loaded.
439439
* - {@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
441441
* blocks are registered with the same key, the latter will overwrite the former.
442442
*/
443443
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
474474
* * {@see POSITION_END}: at the end of the body section. This is the default value.
475475
*
476476
* 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
478478
* files are registered with the same key at the same position, the latter will overwrite the former.
479479
* Note that position option takes precedence, thus files registered with the same key, but different
480480
* position option will not override each other.

0 commit comments

Comments
 (0)