Skip to content

Commit

Permalink
feat: Updated helpers to force useage of collect function
Browse files Browse the repository at this point in the history
feat: Updated composer to have the correct package version
ons Please enter the commit message for your changes. Lines starting
  • Loading branch information
Paul Laney committed Jun 7, 2018
1 parent b71e926 commit 5ea774e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "5.7-dev"
"dev-master": "1.0.1"
}
},
"suggest": {
Expand Down
21 changes: 10 additions & 11 deletions helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
use Monkii\Support\Collection;
use Monkii\Support\Str;

if (!function_exists('collect')) {
/**
* Create a collection from the given value.
*
* @param mixed $value
* @return \Illuminate\Support\Collection
*/
function collect($value = null)
{
return new Collection($value);
}
/**
* Create a collection from the given value.
*
* @param mixed $value
* @return \Illuminate\Support\Collection
*/
function collect($value = null)
{
return new Collection($value);
}

if (! function_exists('camel_case')) {
/**
* Convert a value to camel case.
Expand Down

0 comments on commit 5ea774e

Please sign in to comment.