Skip to content

Commit

Permalink
Arrays 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jul 3, 2022
1 parent b3c8ac5 commit ab0850e
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Glowy\Arrays;

use Glowy\Arrays\Arrays;

if (! function_exists('arrays')) {
/**
* Create a new arrayable object from the given elements.
Expand All @@ -14,9 +12,9 @@
*
* @param mixed $items Items
*
* @return Glowy\Arrays\Arrays<Arrays>
* @return \Glowy\Arrays\Arrays
*/
function arrays($items = null): Arrays
function arrays($items = null): \Glowy\Arrays\Arrays
{
return Arrays::create($items);
}
Expand All @@ -31,9 +29,9 @@ function arrays($items = null): Arrays
* @param int $depth Decode Depth. Set the maximum depth. Must be greater than zero.
* @param int $flags Bitmask consisting of decode options
*
* @return Glowy\Arrays\Arrays<Arrays>
* @return \Glowy\Arrays\Arrays
*/
function arraysFromJson(string $input, bool $assoc = true, int $depth = 512, int $flags = 0): Arrays
function arraysFromJson(string $input, bool $assoc = true, int $depth = 512, int $flags = 0): \Glowy\Arrays\Arrays
{
return Arrays::createFromJson($input, $assoc, $depth, $flags);
}
Expand All @@ -46,9 +44,9 @@ function arraysFromJson(string $input, bool $assoc = true, int $depth = 512, int
* @param string $string Input string.
* @param string $separator Elements separator.
*
* @return Glowy\Arrays\Arrays<Arrays>
* @return \Glowy\Arrays\Arrays
*/
function arraysFromString(string $string, string $separator): Arrays
function arraysFromString(string $string, string $separator): \Glowy\Arrays\Arrays
{
return Arrays::createFromString($string, $separator);
}
Expand All @@ -60,9 +58,9 @@ function arraysFromString(string $string, string $separator): Arrays
*
* @param string $string Input query string.
*
* @return Glowy\Arrays\Arrays<Arrays>
* @return \Glowy\Arrays\Arrays
*/
function arraysFromQueryString(string $string): Arrays
function arraysFromQueryString(string $string): \Glowy\Arrays\Arrays
{
return Arrays::createFromQueryString($string);
}
Expand All @@ -77,9 +75,9 @@ function arraysFromQueryString(string $string): Arrays
* @param int $step If a step value is given, it will be used as the increment between elements in the sequence.
* step should be given as a positive number. If not specified, step will default to 1.
*
* @return Glowy\Arrays\Arrays<Arrays>
* @return \Glowy\Arrays\Arrays
*/
function arraysWithRange($low, $high, int $step = 1): Arrays
function arraysWithRange($low, $high, int $step = 1): \Glowy\Arrays\Arrays
{
return Arrays::createWithRange($low, $high, $step);
}
Expand Down

0 comments on commit ab0850e

Please sign in to comment.