Add ability to pass in parameters to an Award class #155
This commit is contained in:
@@ -12,6 +12,24 @@ class Utils extends Facade
|
||||
return 'utils';
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple check on the first character if it's an object or not
|
||||
* @param $obj
|
||||
* @return bool
|
||||
*/
|
||||
public static function isObject($obj)
|
||||
{
|
||||
if(!$obj) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if($obj[0] === '{' || $obj[0] === '[') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Download a URI. If a file is given, it will save the downloaded
|
||||
* content into that file
|
||||
|
||||
Reference in New Issue
Block a user