1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Applied styleci changes for conversion work

This commit is contained in:
Dan Brown
2022-06-19 18:14:53 +01:00
parent 85f59b5275
commit ba25dda031
12 changed files with 12 additions and 14 deletions

View File

@ -89,7 +89,8 @@ class BookApiController extends ApiController
return response('', 204);
}
protected function rules(): array {
protected function rules(): array
{
return [
'create' => [
'name' => ['required', 'string', 'max:255'],

View File

@ -167,7 +167,7 @@ class BookController extends Controller
if ($request->has('image_reset')) {
$validated['image'] = null;
} else if (array_key_exists('image', $validated) && is_null($validated['image'])) {
} elseif (array_key_exists('image', $validated) && is_null($validated['image'])) {
unset($validated['image']);
}

View File

@ -167,7 +167,7 @@ class BookshelfController extends Controller
if ($request->has('image_reset')) {
$validated['image'] = null;
} else if (array_key_exists('image', $validated) && is_null($validated['image'])) {
} elseif (array_key_exists('image', $validated) && is_null($validated['image'])) {
unset($validated['image']);
}

View File

@ -274,7 +274,6 @@ class ChapterController extends Controller
return redirect($chapter->getUrl());
}
/**
* Convert the chapter to a book.
*/