Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2023-01-06 11:53:02 +00:00
parent af15afd97d
commit 21910f2106
235 changed files with 14381 additions and 14773 deletions

View File

@@ -41,8 +41,7 @@ class Handler extends ExceptionHandler
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $e
*
* @param \Exception $e
* @return void
*/
public function report(Exception $e)
@@ -68,9 +67,8 @@ class Handler extends ExceptionHandler
/**
* Convert a validation exception into a JSON response.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Validation\ValidationException $exception
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Validation\ValidationException $exception
* @return \Illuminate\Http\JsonResponse
*/
protected function invalidJson($request, ValidationException $exception)
@@ -81,9 +79,8 @@ class Handler extends ExceptionHandler
/**
* Render an exception into an HTTP response.
*
* @param type $request
* @param Exception $e
*
* @param type $request
* @param Exception $e
* @return type mixed
*/
public function render($request, Exception $e)
@@ -111,9 +108,8 @@ class Handler extends ExceptionHandler
/**
* Function to render 500 error page.
*
* @param type $request
* @param type $e
*
* @param type $request
* @param type $e
* @return type mixed
*/
public function render500($request, $e)
@@ -141,9 +137,8 @@ class Handler extends ExceptionHandler
/**
* Function to render 404 error page.
*
* @param type $request
* @param type $e
*
* @param type $request
* @param type $e
* @return type mixed
*/
public function render404($request, $e)
@@ -166,9 +161,8 @@ class Handler extends ExceptionHandler
/**
* Function to render database connection failed.
*
* @param type $request
* @param type $e
*
* @param type $request
* @param type $e
* @return type mixed
*/
public function renderDB($request, $e)
@@ -187,9 +181,8 @@ class Handler extends ExceptionHandler
/**
* Common finction to render both types of codes.
*
* @param type $request
* @param type $e
*
* @param type $request
* @param type $e
* @return type mixed
*/
public function common($request, $e)