mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Whitespace
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
bbabbe1b87
commit
d4e227f003
|
@ -127,7 +127,7 @@ class Handler extends ExceptionHandler
|
||||||
if ($e instanceof \Illuminate\Database\Eloquent\ModelNotFoundException) {
|
if ($e instanceof \Illuminate\Database\Eloquent\ModelNotFoundException) {
|
||||||
|
|
||||||
// This gets the MVC model name from the exception and formats in a way that's less fugly
|
// This gets the MVC model name from the exception and formats in a way that's less fugly
|
||||||
$model_name = implode("",preg_split('/(?=[A-Z])/',last(explode('\\', $e->getModel()))));
|
$model_name = implode(" ", preg_split('/(?=[A-Z])/', last(explode('\\', $e->getModel()))));
|
||||||
$route = str_plural(strtolower(last(explode('\\', $e->getModel())))).'.index';
|
$route = str_plural(strtolower(last(explode('\\', $e->getModel())))).'.index';
|
||||||
|
|
||||||
// Sigh.
|
// Sigh.
|
||||||
|
|
Loading…
Reference in a new issue