Skip to content

Commit 36443d3

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 75158ea commit 36443d3

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

src/app/Http/Controllers/Operations/ReorderOperation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function setupReorderDefaults()
5050
*
5151
* Database columns needed: id, parent_id, lft, rgt, depth, name/title
5252
*
53-
* @return \Illuminate\Contracts\View\View
53+
* @return \Illuminate\Contracts\View\View
5454
*/
5555
public function reorder()
5656
{

src/app/Http/Requests/CrudRequest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ public function rules()
3535
// OPTIONAL OVERRIDE
3636
// public function forbiddenResponse()
3737
// {
38-
// Optionally, send a custom response on authorize failure
39-
// (default is to just redirect to initial page with errors)
38+
// Optionally, send a custom response on authorize failure
39+
// (default is to just redirect to initial page with errors)
4040
//
41-
// Can return a response, a view, a redirect, or whatever else
42-
// return Response::make('Permission denied foo!', 403);
41+
// Can return a response, a view, a redirect, or whatever else
42+
// return Response::make('Permission denied foo!', 403);
4343
// }
4444

4545
// OPTIONAL OVERRIDE
4646
// public function response()
4747
// {
48-
// If you want to customize what happens on a failed validation,
49-
// override this method.
50-
// See what it does natively here:
51-
// https://github.com/laravel/framework/blob/master/src/Illuminate/Foundation/Http/FormRequest.php
48+
// If you want to customize what happens on a failed validation,
49+
// override this method.
50+
// See what it does natively here:
51+
// https://github.com/laravel/framework/blob/master/src/Illuminate/Foundation/Http/FormRequest.php
5252
// }
5353
}

src/helpers.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ function backpack_view($view)
259259

260260
$errorMessage = 'The view: ['.$view.'] was not found in any of the following view paths: ['.implode(' ], [ ', $viewPaths).']';
261261

262-
$errorDetails = (function() {
263-
if (env('APP_ENV') === 'production' || !env('APP_DEBUG')) {
262+
$errorDetails = (function () {
263+
if (env('APP_ENV') === 'production' || ! env('APP_DEBUG')) {
264264
return '';
265265
}
266266

@@ -271,8 +271,7 @@ function backpack_view($view)
271271

272272
return '- Called in: '.Str::after($functionFile, base_path()).' on line: '.$functionLine;
273273
})();
274-
275-
274+
276275
abort(500, $errorMessage.$errorDetails);
277276
}
278277
}

0 commit comments

Comments
 (0)