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.
*
* @param PageRevision|Page $draft
*
* @return string[]
*/
public function getWarningMessagesForDraft($draft): array

View File

@ -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;

View File

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

View File

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

View File

@ -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

View File

@ -308,6 +308,7 @@ class ImageService
public function getImageData(Image $image): string
{
$storage = $this->getStorage();
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()
{
/** @var Book $book */