0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-02 23:40:04 +00:00

Applied changes from styleci

This commit is contained in:
Dan Brown 2021-10-08 22:23:17 +01:00
parent c2339ac9db
commit a9b3df537f
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
7 changed files with 9 additions and 6 deletions

View file

@ -43,7 +43,9 @@ class PageEditActivity
/** /**
* Get any editor clash warning messages to show for the given draft revision. * Get any editor clash warning messages to show for the given draft revision.
*
* @param PageRevision|Page $draft * @param PageRevision|Page $draft
*
* @return string[] * @return string[]
*/ */
public function getWarningMessagesForDraft($draft): array public function getWarningMessagesForDraft($draft): array

View file

@ -4,7 +4,6 @@ namespace BookStack\Http\Controllers;
use BookStack\Actions\View; use BookStack\Actions\View;
use BookStack\Entities\Models\Page; use BookStack\Entities\Models\Page;
use BookStack\Entities\Models\PageRevision;
use BookStack\Entities\Repos\PageRepo; use BookStack\Entities\Repos\PageRepo;
use BookStack\Entities\Tools\BookContents; use BookStack\Entities\Tools\BookContents;
use BookStack\Entities\Tools\NextPreviousContentLocator; use BookStack\Entities\Tools\NextPreviousContentLocator;

View file

@ -2,7 +2,6 @@
namespace BookStack\Http; namespace BookStack\Http;
use BookStack\Http\Middleware\PreventAuthenticatedResponseCaching;
use Illuminate\Foundation\Http\Kernel as HttpKernel; use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel class Kernel extends HttpKernel

View file

@ -10,8 +10,9 @@ class PreventAuthenticatedResponseCaching
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Closure $next * @param \Closure $next
*
* @return mixed * @return mixed
*/ */
public function handle($request, Closure $next) public function handle($request, Closure $next)

View file

@ -75,6 +75,7 @@ class AttachmentService
/** /**
* Store a new attachment upon user upload. * Store a new attachment upon user upload.
*
* @throws FileUploadException * @throws FileUploadException
*/ */
public function saveNewUpload(UploadedFile $uploadedFile, int $page_id): Attachment public function saveNewUpload(UploadedFile $uploadedFile, int $page_id): Attachment
@ -174,6 +175,7 @@ class AttachmentService
/** /**
* Delete a File from the database and storage. * Delete a File from the database and storage.
*
* @throws Exception * @throws Exception
*/ */
public function deleteFile(Attachment $attachment) public function deleteFile(Attachment $attachment)
@ -205,6 +207,7 @@ class AttachmentService
/** /**
* Store a file in storage with the given filename. * Store a file in storage with the given filename.
*
* @throws FileUploadException * @throws FileUploadException
*/ */
protected function putFileInStorage(UploadedFile $uploadedFile): string protected function putFileInStorage(UploadedFile $uploadedFile): string

View file

@ -308,6 +308,7 @@ class ImageService
public function getImageData(Image $image): string public function getImageData(Image $image): string
{ {
$storage = $this->getStorage(); $storage = $this->getStorage();
return $storage->get($this->adjustPathForStorageDisk($image->path, $image->type)); return $storage->get($this->adjustPathForStorageDisk($image->path, $image->type));
} }

View file

@ -138,8 +138,6 @@ class PageDraftTest extends TestCase
]); ]);
} }
public function test_draft_pages_show_on_homepage() public function test_draft_pages_show_on_homepage()
{ {
/** @var Book $book */ /** @var Book $book */