Skip to content

Commit

Permalink
Merge pull request #2516 from najdanovicivan/html-helper-lists-fix
Browse files Browse the repository at this point in the history
HTML Helper - Fix attribute type for lists
  • Loading branch information
lonnieezell authored Jan 27, 2020
2 parents 0550852 + ae971fe commit 2a69569
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions system/Helpers/html_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
* Generates an HTML unordered list from an single or
* multi-dimensional array.
*
* @param array $list
* @param string $attributes HTML attributes
* @param array $list
* @param mixed $attributes HTML attributes string, array, object
* @return string
*/
function ul(array $list, string $attributes = ''): string
function ul(array $list, $attributes = ''): string
{
return _list('ul', $list, $attributes);
}
Expand All @@ -70,11 +70,11 @@ function ul(array $list, string $attributes = ''): string
*
* Generates an HTML ordered list from an single or multi-dimensional array.
*
* @param array $list
* @param string $attributes HTML attributes
* @param array $list
* @param mixed $attributes HTML attributes string, array, object
* @return string
*/
function ol(array $list, string $attributes = ''): string
function ol(array $list, $attributes = ''): string
{
return _list('ol', $list, $attributes);
}
Expand All @@ -91,11 +91,11 @@ function ol(array $list, string $attributes = ''): string
*
* @param string $type
* @param mixed $list
* @param string $attributes
* @param mixed $attributes string, array, object
* @param integer $depth
* @return string
*/
function _list(string $type = 'ul', $list = [], string $attributes = '', int $depth = 0): string
function _list(string $type = 'ul', $list = [], $attributes = '', int $depth = 0): string
{
// Set the indentation based on the depth
$out = str_repeat(' ', $depth)
Expand Down

0 comments on commit 2a69569

Please sign in to comment.