mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Applied changes from styleci
This commit is contained in:
parent
c2339ac9db
commit
a9b3df537f
@ -43,7 +43,9 @@ class PageEditActivity
|
||||
|
||||
/**
|
||||
* Get any editor clash warning messages to show for the given draft revision.
|
||||
*
|
||||
* @param PageRevision|Page $draft
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getWarningMessagesForDraft($draft): array
|
||||
|
@ -4,7 +4,6 @@ namespace BookStack\Http\Controllers;
|
||||
|
||||
use BookStack\Actions\View;
|
||||
use BookStack\Entities\Models\Page;
|
||||
use BookStack\Entities\Models\PageRevision;
|
||||
use BookStack\Entities\Repos\PageRepo;
|
||||
use BookStack\Entities\Tools\BookContents;
|
||||
use BookStack\Entities\Tools\NextPreviousContentLocator;
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
namespace BookStack\Http;
|
||||
|
||||
use BookStack\Http\Middleware\PreventAuthenticatedResponseCaching;
|
||||
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
||||
|
||||
class Kernel extends HttpKernel
|
||||
|
@ -12,6 +12,7 @@ class PreventAuthenticatedResponseCaching
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
|
@ -75,6 +75,7 @@ class AttachmentService
|
||||
|
||||
/**
|
||||
* Store a new attachment upon user upload.
|
||||
*
|
||||
* @throws FileUploadException
|
||||
*/
|
||||
public function saveNewUpload(UploadedFile $uploadedFile, int $page_id): Attachment
|
||||
@ -174,6 +175,7 @@ class AttachmentService
|
||||
|
||||
/**
|
||||
* Delete a File from the database and storage.
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function deleteFile(Attachment $attachment)
|
||||
@ -205,6 +207,7 @@ class AttachmentService
|
||||
|
||||
/**
|
||||
* Store a file in storage with the given filename.
|
||||
*
|
||||
* @throws FileUploadException
|
||||
*/
|
||||
protected function putFileInStorage(UploadedFile $uploadedFile): string
|
||||
|
@ -308,6 +308,7 @@ class ImageService
|
||||
public function getImageData(Image $image): string
|
||||
{
|
||||
$storage = $this->getStorage();
|
||||
|
||||
return $storage->get($this->adjustPathForStorageDisk($image->path, $image->type));
|
||||
}
|
||||
|
||||
|
@ -138,8 +138,6 @@ class PageDraftTest extends TestCase
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function test_draft_pages_show_on_homepage()
|
||||
{
|
||||
/** @var Book $book */
|
||||
|
Loading…
Reference in New Issue
Block a user