Apply fixes from StyleCI
This commit is contained in:
@@ -1048,7 +1048,7 @@ class TicketController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\Event::fire('after.ticket.created', array(['ticket' => $ticket, 'form_data' => $form_data]));
|
\Event::fire('after.ticket.created', [['ticket' => $ticket, 'form_data' => $form_data]]);
|
||||||
|
|
||||||
// store collaborators
|
// store collaborators
|
||||||
$this->storeCollaborators($headers, $id);
|
$this->storeCollaborators($headers, $id);
|
||||||
|
@@ -206,6 +206,7 @@ function faveoDate($date = '', $format = '', $tz = '')
|
|||||||
if ($format == 'human-read') {
|
if ($format == 'human-read') {
|
||||||
return $date->tz($tz)->diffForHumans();
|
return $date->tz($tz)->diffForHumans();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $date->tz($tz)->format($format);
|
return $date->tz($tz)->format($format);
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
return 'invalid';
|
return 'invalid';
|
||||||
@@ -292,8 +293,10 @@ function createDB(string $dbName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* parse the carbon
|
* parse the carbon.
|
||||||
|
*
|
||||||
* @param string $date
|
* @param string $date
|
||||||
|
*
|
||||||
* @return \Carbon\Carbon
|
* @return \Carbon\Carbon
|
||||||
*/
|
*/
|
||||||
function carbon($date)
|
function carbon($date)
|
||||||
|
Reference in New Issue
Block a user