formatting

This commit is contained in:
Nabeel Shahzad
2017-12-31 12:55:29 -06:00
parent 2458c67880
commit 24ca00a325

View File

@@ -3,8 +3,7 @@
/**
* Shortcut for retrieving a setting value
*/
if (!function_exists('setting'))
{
if (!function_exists('setting')) {
function setting($key, $value = null)
{
$settingRepo = app('setting'); // defined in AppServiceProvider
@@ -20,8 +19,7 @@ if (!function_exists('setting'))
* Wrap the asset URL in the publicBaseUrl that's been
* set
*/
if (!function_exists('public_asset'))
{
if (!function_exists('public_asset')) {
function public_asset($path, $parameters = [], $secure = null)
{
$publicBaseUrl = app()->publicUrlPath();
@@ -36,8 +34,7 @@ if (!function_exists('public_asset'))
/**
* Show a date/time in the proper timezone for a user
*/
if(!function_exists('show_datetime'))
{
if(!function_exists('show_datetime')) {
/**
* Format the a Carbon date into the datetime string
* but convert it into the user's timezone