Skip to content

Commit

Permalink
docs: Fix some function definitions in helpers/html_helper.rst
Browse files Browse the repository at this point in the history
Fix some function definitions in helpers/html_helper.rst
  • Loading branch information
obozdag authored Sep 2, 2024
1 parent c326cd1 commit 31b4508
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user_guide_src/source/helpers/html_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The following functions are available:

.. literalinclude:: html_helper/004.php

.. php:function:: img_data([$src = ''[, $indexPage = false[, $attributes = '']]])
.. php:function:: img_data($path[, $mime = null])
:param string $path: Path to the image file
:param string|null $mime: MIME type to use, or null to guess
Expand Down Expand Up @@ -261,7 +261,7 @@ The following functions are available:

Identical to :php:func:`video()`, only it produces ``<audio>`` element instead of ``<video>``.

.. php:function:: source($src = ''[, $type = false[, $attributes = '']])
.. php:function:: source($src[, $type = false[, $attributes = '']])
:param string $src: The path of the media resource
:param bool $type: The MIME-type of the resource with optional codecs parameters
Expand All @@ -288,7 +288,7 @@ The following functions are available:

.. literalinclude:: html_helper/016.php

.. php:function:: object($data = ''[, $type = false[, $attributes = '']])
.. php:function:: object($data[, $type = 'unknown'[, $attributes = ''[, $params = [][, $indexPage = false]]]])
:param string $data: A resource URL
:param bool $type: Content-type of the resource
Expand All @@ -313,7 +313,7 @@ The following functions are available:
<param name="hello" type="ref" value="world" class="test" />
</object>

.. php:function:: param($name = ''[, $type = false[, $attributes = '']])
.. php:function:: param($name = ''[, $value = ''[, $type = 'ref'[, $attributes = '']]])
:param string $name: The name of the parameter
:param string $value: The value of the parameter
Expand Down

0 comments on commit 31b4508

Please sign in to comment.