Update Laravel Pint, fix files in codebase

This commit is contained in:
Jonny Barnes 2023-02-16 16:57:06 +00:00
parent 672e724784
commit 6d6e719f52
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
64 changed files with 10 additions and 411 deletions

View file

@ -51,7 +51,6 @@ class ParseCachedWebMentions extends Command
* Determine the source URL from a filename. * Determine the source URL from a filename.
* *
* @param string * @param string
* @return string
*/ */
private function urlFromFilename(string $filepath): string private function urlFromFilename(string $filepath): string
{ {

View file

@ -20,7 +20,6 @@ class Kernel extends ConsoleKernel
/** /**
* Define the application's command schedule. * Define the application's command schedule.
* *
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void * @return void
* *
* @codeCoverageIgnore * @codeCoverageIgnore

View file

@ -43,7 +43,6 @@ class Handler extends ExceptionHandler
* *
* This is a great spot to send exceptions to Sentry, Bugsnag, etc. * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
* *
* @param Throwable $throwable
* @return void * @return void
* *
* @throws Exception * @throws Exception
@ -89,7 +88,6 @@ class Handler extends ExceptionHandler
* Render an exception into an HTTP response. * Render an exception into an HTTP response.
* *
* @param Request $request * @param Request $request
* @param Throwable $throwable
* @return Response * @return Response
* *
* @throws Throwable * @throws Throwable

View file

@ -14,8 +14,6 @@ class ClientsController extends Controller
{ {
/** /**
* Show a list of known clients. * Show a list of known clients.
*
* @return \Illuminate\View\View
*/ */
public function index(): View public function index(): View
{ {
@ -26,8 +24,6 @@ class ClientsController extends Controller
/** /**
* Show form to add a client name. * Show form to add a client name.
*
* @return \Illuminate\View\View
*/ */
public function create(): View public function create(): View
{ {
@ -36,8 +32,6 @@ class ClientsController extends Controller
/** /**
* Process the request to adda new client name. * Process the request to adda new client name.
*
* @return \Illuminate\Http\RedirectResponse
*/ */
public function store(): RedirectResponse public function store(): RedirectResponse
{ {
@ -51,9 +45,6 @@ class ClientsController extends Controller
/** /**
* Show a form to edit a client name. * Show a form to edit a client name.
*
* @param int $clientId
* @return \Illuminate\View\View
*/ */
public function edit(int $clientId): View public function edit(int $clientId): View
{ {
@ -68,9 +59,6 @@ class ClientsController extends Controller
/** /**
* Process the request to edit a client name. * Process the request to edit a client name.
*
* @param int $clientId
* @return \Illuminate\Http\RedirectResponse
*/ */
public function update(int $clientId): RedirectResponse public function update(int $clientId): RedirectResponse
{ {
@ -84,9 +72,6 @@ class ClientsController extends Controller
/** /**
* Process a request to delete a client. * Process a request to delete a client.
*
* @param int $clientId
* @return \Illuminate\Http\RedirectResponse
*/ */
public function destroy(int $clientId): RedirectResponse public function destroy(int $clientId): RedirectResponse
{ {

View file

@ -17,8 +17,6 @@ class ContactsController extends Controller
{ {
/** /**
* List the currect contacts that can be edited. * List the currect contacts that can be edited.
*
* @return \Illuminate\View\View
*/ */
public function index(): View public function index(): View
{ {
@ -29,8 +27,6 @@ class ContactsController extends Controller
/** /**
* Display the form to add a new contact. * Display the form to add a new contact.
*
* @return \Illuminate\View\View
*/ */
public function create(): View public function create(): View
{ {
@ -39,8 +35,6 @@ class ContactsController extends Controller
/** /**
* Process the request to add a new contact. * Process the request to add a new contact.
*
* @return \Illuminate\Http\RedirectResponse
*/ */
public function store(): RedirectResponse public function store(): RedirectResponse
{ {
@ -57,9 +51,6 @@ class ContactsController extends Controller
/** /**
* Show the form to edit an existing contact. * Show the form to edit an existing contact.
*
* @param int $contactId
* @return \Illuminate\View\View
*/ */
public function edit(int $contactId): View public function edit(int $contactId): View
{ {
@ -72,9 +63,6 @@ class ContactsController extends Controller
* Process the request to edit a contact. * Process the request to edit a contact.
* *
* @todo Allow saving profile pictures for people without homepages * @todo Allow saving profile pictures for people without homepages
*
* @param int $contactId
* @return \Illuminate\Http\RedirectResponse
*/ */
public function update(int $contactId): RedirectResponse public function update(int $contactId): RedirectResponse
{ {
@ -101,9 +89,6 @@ class ContactsController extends Controller
/** /**
* Process the request to delete a contact. * Process the request to delete a contact.
*
* @param int $contactId
* @return \Illuminate\Http\RedirectResponse
*/ */
public function destroy(int $contactId): RedirectResponse public function destroy(int $contactId): RedirectResponse
{ {
@ -119,7 +104,6 @@ class ContactsController extends Controller
* This method attempts to find the microformat marked-up profile image * This method attempts to find the microformat marked-up profile image
* from a given homepage and save it accordingly * from a given homepage and save it accordingly
* *
* @param int $contactId
* @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View * @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
*/ */
public function getAvatar(int $contactId) public function getAvatar(int $contactId)

View file

@ -11,8 +11,6 @@ class HomeController extends Controller
{ {
/** /**
* Show the homepage of the admin CP. * Show the homepage of the admin CP.
*
* @return \Illuminate\View\View
*/ */
public function welcome(): View public function welcome(): View
{ {

View file

@ -14,8 +14,6 @@ class LikesController extends Controller
{ {
/** /**
* List the likes that can be edited. * List the likes that can be edited.
*
* @return \Illuminate\View\View
*/ */
public function index(): View public function index(): View
{ {
@ -26,8 +24,6 @@ class LikesController extends Controller
/** /**
* Show the form to make a new like. * Show the form to make a new like.
*
* @return \Illuminate\View\View
*/ */
public function create(): View public function create(): View
{ {
@ -36,8 +32,6 @@ class LikesController extends Controller
/** /**
* Process a request to make a new like. * Process a request to make a new like.
*
* @return \Illuminate\Http\RedirectResponse
*/ */
public function store(): RedirectResponse public function store(): RedirectResponse
{ {
@ -51,9 +45,6 @@ class LikesController extends Controller
/** /**
* Display the form to edit a specific like. * Display the form to edit a specific like.
*
* @param int $likeId
* @return \Illuminate\View\View
*/ */
public function edit(int $likeId): View public function edit(int $likeId): View
{ {
@ -67,9 +58,6 @@ class LikesController extends Controller
/** /**
* Process a request to edit a like. * Process a request to edit a like.
*
* @param int $likeId
* @return \Illuminate\Http\RedirectResponse
*/ */
public function update(int $likeId): RedirectResponse public function update(int $likeId): RedirectResponse
{ {
@ -83,9 +71,6 @@ class LikesController extends Controller
/** /**
* Process the request to delete a like. * Process the request to delete a like.
*
* @param int $likeId
* @return \Illuminate\Http\RedirectResponse
*/ */
public function destroy(int $likeId): RedirectResponse public function destroy(int $likeId): RedirectResponse
{ {

View file

@ -15,8 +15,6 @@ class NotesController extends Controller
{ {
/** /**
* List the notes that can be edited. * List the notes that can be edited.
*
* @return \Illuminate\View\View
*/ */
public function index(): View public function index(): View
{ {
@ -30,8 +28,6 @@ class NotesController extends Controller
/** /**
* Show the form to make a new note. * Show the form to make a new note.
*
* @return \Illuminate\View\View
*/ */
public function create(): View public function create(): View
{ {
@ -40,9 +36,6 @@ class NotesController extends Controller
/** /**
* Process a request to make a new note. * Process a request to make a new note.
*
* @param Request $request
* @return RedirectResponse
*/ */
public function store(Request $request): RedirectResponse public function store(Request $request): RedirectResponse
{ {
@ -56,9 +49,6 @@ class NotesController extends Controller
/** /**
* Display the form to edit a specific note. * Display the form to edit a specific note.
*
* @param int $noteId
* @return \Illuminate\View\View
*/ */
public function edit(int $noteId): View public function edit(int $noteId): View
{ {
@ -71,9 +61,6 @@ class NotesController extends Controller
/** /**
* Process a request to edit a note. Easy since this can only be done * Process a request to edit a note. Easy since this can only be done
* from the admin CP. * from the admin CP.
*
* @param int $noteId
* @return \Illuminate\Http\RedirectResponse
*/ */
public function update(int $noteId): RedirectResponse public function update(int $noteId): RedirectResponse
{ {
@ -92,9 +79,6 @@ class NotesController extends Controller
/** /**
* Delete the note. * Delete the note.
*
* @param int $noteId
* @return \Illuminate\Http\RedirectResponse
*/ */
public function destroy(int $noteId): RedirectResponse public function destroy(int $noteId): RedirectResponse
{ {

View file

@ -21,8 +21,6 @@ class PlacesController extends Controller
/** /**
* List the places that can be edited. * List the places that can be edited.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -33,8 +31,6 @@ class PlacesController extends Controller
/** /**
* Show the form to make a new place. * Show the form to make a new place.
*
* @return View
*/ */
public function create(): View public function create(): View
{ {
@ -43,8 +39,6 @@ class PlacesController extends Controller
/** /**
* Process a request to make a new place. * Process a request to make a new place.
*
* @return RedirectResponse
*/ */
public function store(): RedirectResponse public function store(): RedirectResponse
{ {
@ -62,9 +56,6 @@ class PlacesController extends Controller
/** /**
* Display the form to edit a specific place. * Display the form to edit a specific place.
*
* @param int $placeId
* @return View
*/ */
public function edit(int $placeId): View public function edit(int $placeId): View
{ {
@ -75,9 +66,6 @@ class PlacesController extends Controller
/** /**
* Process a request to edit a place. * Process a request to edit a place.
*
* @param int $placeId
* @return RedirectResponse
*/ */
public function update(int $placeId): RedirectResponse public function update(int $placeId): RedirectResponse
{ {
@ -94,9 +82,6 @@ class PlacesController extends Controller
/** /**
* List the places we can merge with the current place. * List the places we can merge with the current place.
*
* @param int $placeId
* @return View
*/ */
public function mergeIndex(int $placeId): View public function mergeIndex(int $placeId): View
{ {
@ -114,10 +99,6 @@ class PlacesController extends Controller
/** /**
* Show a form for merging two specific places. * Show a form for merging two specific places.
*
* @param int $placeId1
* @param int $placeId2
* @return View
*/ */
public function mergeEdit(int $placeId1, int $placeId2): View public function mergeEdit(int $placeId1, int $placeId2): View
{ {
@ -129,8 +110,6 @@ class PlacesController extends Controller
/** /**
* Process the request to merge two places. * Process the request to merge two places.
*
* @return RedirectResponse
*/ */
public function mergeStore(): RedirectResponse public function mergeStore(): RedirectResponse
{ {

View file

@ -14,8 +14,6 @@ class SyndicationTargetsController extends Controller
{ {
/** /**
* Show a list of known syndication targets. * Show a list of known syndication targets.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -26,8 +24,6 @@ class SyndicationTargetsController extends Controller
/** /**
* Show form to add a syndication target. * Show form to add a syndication target.
*
* @return View
*/ */
public function create(): View public function create(): View
{ {
@ -36,9 +32,6 @@ class SyndicationTargetsController extends Controller
/** /**
* Process the request to adda new syndication target. * Process the request to adda new syndication target.
*
* @param Request $request
* @return RedirectResponse
*/ */
public function store(Request $request): RedirectResponse public function store(Request $request): RedirectResponse
{ {
@ -60,9 +53,6 @@ class SyndicationTargetsController extends Controller
/** /**
* Show a form to edit a syndication target. * Show a form to edit a syndication target.
*
* @param SyndicationTarget $syndicationTarget
* @return View
*/ */
public function edit(SyndicationTarget $syndicationTarget): View public function edit(SyndicationTarget $syndicationTarget): View
{ {
@ -73,10 +63,6 @@ class SyndicationTargetsController extends Controller
/** /**
* Process the request to edit a client name. * Process the request to edit a client name.
*
* @param Request $request
* @param SyndicationTarget $syndicationTarget
* @return RedirectResponse
*/ */
public function update(Request $request, SyndicationTarget $syndicationTarget): RedirectResponse public function update(Request $request, SyndicationTarget $syndicationTarget): RedirectResponse
{ {
@ -98,9 +84,6 @@ class SyndicationTargetsController extends Controller
/** /**
* Process a request to delete a client. * Process a request to delete a client.
*
* @param SyndicationTarget $syndicationTarget
* @return RedirectResponse
*/ */
public function destroy(SyndicationTarget $syndicationTarget): RedirectResponse public function destroy(SyndicationTarget $syndicationTarget): RedirectResponse
{ {

View file

@ -14,10 +14,6 @@ class ArticlesController extends Controller
{ {
/** /**
* Show all articles (with pagination). * Show all articles (with pagination).
*
* @param int|null $year
* @param int|null $month
* @return View
*/ */
public function index(int $year = null, int $month = null): View public function index(int $year = null, int $month = null): View
{ {
@ -32,9 +28,6 @@ class ArticlesController extends Controller
/** /**
* Show a single article. * Show a single article.
* *
* @param int $year
* @param int $month
* @param string $slug
* @return RedirectResponse|View * @return RedirectResponse|View
*/ */
public function show(int $year, int $month, string $slug) public function show(int $year, int $month, string $slug)
@ -58,9 +51,6 @@ class ArticlesController extends Controller
/** /**
* We only have the ID, work out post title, year and month * We only have the ID, work out post title, year and month
* and redirect to it. * and redirect to it.
*
* @param string $idFromUrl
* @return RedirectResponse
*/ */
public function onlyIdInUrl(string $idFromUrl): RedirectResponse public function onlyIdInUrl(string $idFromUrl): RedirectResponse
{ {

View file

@ -27,8 +27,6 @@ class AuthController extends Controller
/** /**
* Log in a user, set a session variable, check credentials against * Log in a user, set a session variable, check credentials against
* the .env file. * the .env file.
*
* @return RedirectResponse
*/ */
public function login(): RedirectResponse public function login(): RedirectResponse
{ {

View file

@ -11,8 +11,6 @@ class BookmarksController extends Controller
{ {
/** /**
* Show the most recent bookmarks. * Show the most recent bookmarks.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -23,9 +21,6 @@ class BookmarksController extends Controller
/** /**
* Show a single bookmark. * Show a single bookmark.
*
* @param Bookmark $bookmark
* @return View
*/ */
public function show(Bookmark $bookmark): View public function show(Bookmark $bookmark): View
{ {
@ -36,9 +31,6 @@ class BookmarksController extends Controller
/** /**
* Show bookmarks tagged with a specific tag. * Show bookmarks tagged with a specific tag.
*
* @param string $tag
* @return View
*/ */
public function tagged(string $tag): View public function tagged(string $tag): View
{ {

View file

@ -12,8 +12,6 @@ class ContactsController extends Controller
{ {
/** /**
* Show all the contacts. * Show all the contacts.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -33,9 +31,6 @@ class ContactsController extends Controller
/** /**
* Show a single contact. * Show a single contact.
*
* @param Contact $contact
* @return View
*/ */
public function show(Contact $contact): View public function show(Contact $contact): View
{ {

View file

@ -13,8 +13,6 @@ class FeedsController extends Controller
{ {
/** /**
* Returns the blog RSS feed. * Returns the blog RSS feed.
*
* @return Response
*/ */
public function blogRss(): Response public function blogRss(): Response
{ {
@ -28,8 +26,6 @@ class FeedsController extends Controller
/** /**
* Returns the blog Atom feed. * Returns the blog Atom feed.
*
* @return Response
*/ */
public function blogAtom(): Response public function blogAtom(): Response
{ {
@ -42,8 +38,6 @@ class FeedsController extends Controller
/** /**
* Returns the notes RSS feed. * Returns the notes RSS feed.
*
* @return Response
*/ */
public function notesRss(): Response public function notesRss(): Response
{ {
@ -57,8 +51,6 @@ class FeedsController extends Controller
/** /**
* Returns the notes Atom feed. * Returns the notes Atom feed.
*
* @return Response
*/ */
public function notesAtom(): Response public function notesAtom(): Response
{ {
@ -73,8 +65,6 @@ class FeedsController extends Controller
/** /**
* Returns the blog JSON feed. * Returns the blog JSON feed.
*
* @return array
*/ */
public function blogJson(): array public function blogJson(): array
{ {
@ -138,8 +128,6 @@ class FeedsController extends Controller
/** /**
* Returns the blog JF2 feed. * Returns the blog JF2 feed.
*
* @return JsonResponse
*/ */
public function blogJf2(): JsonResponse public function blogJf2(): JsonResponse
{ {
@ -176,8 +164,6 @@ class FeedsController extends Controller
/** /**
* Returns the notes JF2 feed. * Returns the notes JF2 feed.
*
* @return JsonResponse
*/ */
public function notesJf2(): JsonResponse public function notesJf2(): JsonResponse
{ {

View file

@ -11,8 +11,6 @@ class LikesController extends Controller
{ {
/** /**
* Show the latest likes. * Show the latest likes.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -23,9 +21,6 @@ class LikesController extends Controller
/** /**
* Show a single like. * Show a single like.
*
* @param Like $like
* @return View
*/ */
public function show(Like $like): View public function show(Like $like): View
{ {

View file

@ -44,9 +44,6 @@ class MicropubController extends Controller
/** /**
* This function receives an API request, verifies the authenticity * This function receives an API request, verifies the authenticity
* then passes over the info to the relevant Service class. * then passes over the info to the relevant Service class.
*
* @param Request $request
* @return JsonResponse
*/ */
public function post(Request $request): JsonResponse public function post(Request $request): JsonResponse
{ {
@ -117,8 +114,6 @@ class MicropubController extends Controller
* token, here we check whether the token is valid and respond * token, here we check whether the token is valid and respond
* appropriately. Further if the request has the query parameter * appropriately. Further if the request has the query parameter
* syndicate-to we respond with the known syndication endpoints. * syndicate-to we respond with the known syndication endpoints.
*
* @return JsonResponse
*/ */
public function get(): JsonResponse public function get(): JsonResponse
{ {
@ -173,7 +168,6 @@ class MicropubController extends Controller
/** /**
* Determine the client id from the access token sent with the request. * Determine the client id from the access token sent with the request.
* *
* @return string
* *
* @throws RequiredConstraintsViolated * @throws RequiredConstraintsViolated
*/ */

View file

@ -98,7 +98,6 @@ class MicropubMediaController extends Controller
/** /**
* Process a media item posted to the media endpoint. * Process a media item posted to the media endpoint.
* *
* @return JsonResponse
* *
* @throws BindingResolutionException * @throws BindingResolutionException
* @throws Exception * @throws Exception
@ -176,8 +175,6 @@ class MicropubMediaController extends Controller
/** /**
* Return the relevant CORS headers to a pre-flight OPTIONS request. * Return the relevant CORS headers to a pre-flight OPTIONS request.
*
* @return Response
*/ */
public function mediaOptionsResponse(): Response public function mediaOptionsResponse(): Response
{ {
@ -186,9 +183,6 @@ class MicropubMediaController extends Controller
/** /**
* Get the file type from the mime-type of the uploaded file. * Get the file type from the mime-type of the uploaded file.
*
* @param string $mimeType
* @return string
*/ */
private function getFileTypeFromMimeType(string $mimeType): string private function getFileTypeFromMimeType(string $mimeType): string
{ {
@ -232,8 +226,6 @@ class MicropubMediaController extends Controller
/** /**
* Save an uploaded file to the local disk. * Save an uploaded file to the local disk.
* *
* @param UploadedFile $file
* @return string
* *
* @throws Exception * @throws Exception
*/ */

View file

@ -62,7 +62,6 @@ class NotesController extends Controller
* Redirect /note/{decID} to /notes/{nb60id}. * Redirect /note/{decID} to /notes/{nb60id}.
* *
* @param int $decId The decimal id of the note * @param int $decId The decimal id of the note
* @return RedirectResponse
*/ */
public function redirect(int $decId): RedirectResponse public function redirect(int $decId): RedirectResponse
{ {
@ -71,9 +70,6 @@ class NotesController extends Controller
/** /**
* Show all notes tagged with {tag}. * Show all notes tagged with {tag}.
*
* @param string $tag
* @return View
*/ */
public function tagged(string $tag): View public function tagged(string $tag): View
{ {
@ -88,8 +84,6 @@ class NotesController extends Controller
* Page to create a new note. * Page to create a new note.
* *
* Dummy page for now. * Dummy page for now.
*
* @return View
*/ */
public function create(): View public function create(): View
{ {

View file

@ -11,8 +11,6 @@ class PlacesController extends Controller
{ {
/** /**
* Show all the places. * Show all the places.
*
* @return View
*/ */
public function index(): View public function index(): View
{ {
@ -23,9 +21,6 @@ class PlacesController extends Controller
/** /**
* Show a specific place. * Show a specific place.
*
* @param Place $place
* @return View
*/ */
public function show(Place $place): View public function show(Place $place): View
{ {

View file

@ -19,8 +19,6 @@ class ShortURLsController extends Controller
/** /**
* Redirect from '/' to the long url. * Redirect from '/' to the long url.
*
* @return RedirectResponse
*/ */
public function baseURL(): RedirectResponse public function baseURL(): RedirectResponse
{ {
@ -29,8 +27,6 @@ class ShortURLsController extends Controller
/** /**
* Redirect from '/@' to a twitter profile. * Redirect from '/@' to a twitter profile.
*
* @return RedirectResponse
*/ */
public function twitter(): RedirectResponse public function twitter(): RedirectResponse
{ {
@ -43,7 +39,6 @@ class ShortURLsController extends Controller
* *
* @param string Post type * @param string Post type
* @param string Post ID * @param string Post ID
* @return RedirectResponse
*/ */
public function expandType(string $type, string $postId): RedirectResponse public function expandType(string $type, string $postId): RedirectResponse
{ {

View file

@ -31,10 +31,6 @@ class TokenEndpointController extends Controller
/** /**
* Inject the dependencies. * Inject the dependencies.
*
* @param Client $client
* @param GuzzleClient $guzzle
* @param TokenService $tokenService
*/ */
public function __construct( public function __construct(
Client $client, Client $client,
@ -48,9 +44,6 @@ class TokenEndpointController extends Controller
/** /**
* If the user has authd via the IndieAuth protocol, issue a valid token. * If the user has authd via the IndieAuth protocol, issue a valid token.
*
* @param Request $request
* @return JsonResponse
*/ */
public function create(Request $request): JsonResponse public function create(Request $request): JsonResponse
{ {

View file

@ -18,8 +18,6 @@ class WebMentionsController extends Controller
* *
* This is probably someone looking for information about what * This is probably someone looking for information about what
* webmentions are, or about my particular implementation. * webmentions are, or about my particular implementation.
*
* @return View
*/ */
public function get(): View public function get(): View
{ {
@ -28,8 +26,6 @@ class WebMentionsController extends Controller
/** /**
* Receive and process a webmention. * Receive and process a webmention.
*
* @return Response
*/ */
public function receive(): Response public function receive(): Response
{ {

View file

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

View file

@ -12,7 +12,6 @@ class CSPHeader
* Handle an incoming request. * Handle an incoming request.
* *
* @param Request $request * @param Request $request
* @param Closure $next
* @return mixed * @return mixed
*/ */
public function handle($request, Closure $next) public function handle($request, Closure $next)

View file

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

View file

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

View file

@ -14,8 +14,6 @@ class LocalhostSessionMiddleware
* `['me' => config('app.url')]` as I cant manually log in as * `['me' => config('app.url')]` as I cant manually log in as
* a .localhost domain. * a .localhost domain.
* *
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed * @return mixed
*/ */
public function handle(Request $request, Closure $next) public function handle(Request $request, Closure $next)

View file

@ -13,8 +13,6 @@ class MyAuthMiddleware
/** /**
* Check the user is logged in. * Check the user is logged in.
* *
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed * @return mixed
*/ */
public function handle(Request $request, Closure $next) public function handle(Request $request, Closure $next)

View file

@ -15,8 +15,6 @@ class RedirectIfAuthenticated
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null ...$guards * @param string|null ...$guards
* @return mixed * @return mixed
*/ */

View file

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

View file

@ -10,8 +10,6 @@ class MicropubResponses
{ {
/** /**
* Generate a response to be returned when the token has insufficient scope. * Generate a response to be returned when the token has insufficient scope.
*
* @return JsonResponse
*/ */
public function insufficientScopeResponse(): JsonResponse public function insufficientScopeResponse(): JsonResponse
{ {
@ -24,8 +22,6 @@ class MicropubResponses
/** /**
* Generate a response to be returned when the token is invalid. * Generate a response to be returned when the token is invalid.
*
* @return JsonResponse
*/ */
public function invalidTokenResponse(): JsonResponse public function invalidTokenResponse(): JsonResponse
{ {
@ -38,8 +34,6 @@ class MicropubResponses
/** /**
* Generate a response to be returned when the token has no scope. * Generate a response to be returned when the token has no scope.
*
* @return JsonResponse
*/ */
public function tokenHasNoScopeResponse(): JsonResponse public function tokenHasNoScopeResponse(): JsonResponse
{ {

View file

@ -22,8 +22,6 @@ class AddClientToDatabase implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param string $client_id
*/ */
public function __construct(string $client_id) public function __construct(string $client_id)
{ {

View file

@ -28,8 +28,6 @@ class DownloadWebMention implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param string $source
*/ */
public function __construct(string $source) public function __construct(string $source)
{ {
@ -39,7 +37,6 @@ class DownloadWebMention implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
* *
* @param Client $guzzle
* *
* @throws GuzzleException * @throws GuzzleException
* @throws FileNotFoundException * @throws FileNotFoundException
@ -82,7 +79,6 @@ class DownloadWebMention implements ShouldQueue
/** /**
* Create a file path from a URL. This is used when caching the HTML response. * Create a file path from a URL. This is used when caching the HTML response.
* *
* @param string $url
* @return string The path name * @return string The path name
*/ */
private function createFilenameFromURL(string $url) private function createFilenameFromURL(string $url)

View file

@ -24,8 +24,6 @@ class ProcessBookmark implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param Bookmark $bookmark
*/ */
public function __construct(Bookmark $bookmark) public function __construct(Bookmark $bookmark)
{ {
@ -34,8 +32,6 @@ class ProcessBookmark implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @return void
*/ */
public function handle(): void public function handle(): void
{ {

View file

@ -30,8 +30,6 @@ class ProcessLike implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param Like $like
*/ */
public function __construct(Like $like) public function __construct(Like $like)
{ {
@ -41,9 +39,6 @@ class ProcessLike implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
* *
* @param Client $client
* @param Authorship $authorship
* @return int
* *
* @throws GuzzleException * @throws GuzzleException
*/ */
@ -104,9 +99,6 @@ class ProcessLike implements ShouldQueue
/** /**
* Determine if a given URL is that of a Tweet. * Determine if a given URL is that of a Tweet.
*
* @param string $url
* @return bool
*/ */
private function isTweet(string $url): bool private function isTweet(string $url): bool
{ {

View file

@ -25,8 +25,6 @@ class ProcessMedia implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param string $filename
*/ */
public function __construct(string $filename) public function __construct(string $filename)
{ {
@ -35,8 +33,6 @@ class ProcessMedia implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @param ImageManager $manager
*/ */
public function handle(ImageManager $manager) public function handle(ImageManager $manager)
{ {

View file

@ -32,9 +32,6 @@ class ProcessWebMention implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param Note $note
* @param string $source
*/ */
public function __construct(Note $note, string $source) public function __construct(Note $note, string $source)
{ {
@ -45,8 +42,6 @@ class ProcessWebMention implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
* *
* @param Parser $parser
* @param Client $guzzle
* *
* @throws RemoteContentNotFoundException * @throws RemoteContentNotFoundException
* @throws GuzzleException * @throws GuzzleException

View file

@ -24,8 +24,6 @@ class SaveProfileImage implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param array $microformats
*/ */
public function __construct(array $microformats) public function __construct(array $microformats)
{ {
@ -34,8 +32,6 @@ class SaveProfileImage implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
*
* @param Authorship $authorship
*/ */
public function handle(Authorship $authorship) public function handle(Authorship $authorship)
{ {

View file

@ -33,7 +33,6 @@ class SaveScreenshot implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
* *
* @return void
* *
* @throws JsonException * @throws JsonException
*/ */

View file

@ -26,8 +26,6 @@ class SendWebMentions implements ShouldQueue
/** /**
* Create the job instance, inject dependencies. * Create the job instance, inject dependencies.
*
* @param Note $note
*/ */
public function __construct(Note $note) public function __construct(Note $note)
{ {
@ -37,7 +35,6 @@ class SendWebMentions implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
* *
* @return void
* *
* @throws GuzzleException * @throws GuzzleException
*/ */
@ -63,8 +60,6 @@ class SendWebMentions implements ShouldQueue
/** /**
* Discover if a URL has a webmention endpoint. * Discover if a URL has a webmention endpoint.
* *
* @param string $url
* @return string|null
* *
* @throws GuzzleException * @throws GuzzleException
*/ */
@ -111,9 +106,6 @@ class SendWebMentions implements ShouldQueue
/** /**
* Get the URLs from a note. * Get the URLs from a note.
*
* @param string|null $html
* @return array
*/ */
public function getLinks(?string $html): array public function getLinks(?string $html): array
{ {
@ -135,9 +127,7 @@ class SendWebMentions implements ShouldQueue
/** /**
* Resolve a URI if necessary. * Resolve a URI if necessary.
* *
* @param string $url
* @param string $base The base of the URL * @param string $base The base of the URL
* @return string
*/ */
public function resolveUri(string $url, string $base): string public function resolveUri(string $url, string $base): string
{ {

View file

@ -25,8 +25,6 @@ class SyndicateBookmarkToTwitter implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param Bookmark $bookmark
*/ */
public function __construct(Bookmark $bookmark) public function __construct(Bookmark $bookmark)
{ {
@ -36,7 +34,6 @@ class SyndicateBookmarkToTwitter implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
* *
* @param Client $guzzle
* *
* @throws GuzzleException * @throws GuzzleException
*/ */

View file

@ -20,7 +20,6 @@ class SyndicateNoteToMastodon implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
* *
* @param Note $note
* @return void * @return void
*/ */
public function __construct( public function __construct(
@ -31,8 +30,6 @@ class SyndicateNoteToMastodon implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
* *
* @param Client $guzzle
* @return void
* *
* @throws GuzzleException * @throws GuzzleException
*/ */

View file

@ -23,8 +23,6 @@ class SyndicateNoteToTwitter implements ShouldQueue
/** /**
* Create a new job instance. * Create a new job instance.
*
* @param Note $note
*/ */
public function __construct(Note $note) public function __construct(Note $note)
{ {
@ -34,7 +32,6 @@ class SyndicateNoteToTwitter implements ShouldQueue
/** /**
* Execute the job. * Execute the job.
* *
* @param Client $guzzle
* *
* @throws GuzzleException * @throws GuzzleException
*/ */

View file

@ -40,8 +40,6 @@ class Article extends Model
/** /**
* Return the sluggable configuration array for this model. * Return the sluggable configuration array for this model.
*
* @return array
*/ */
public function sluggable(): array public function sluggable(): array
{ {
@ -116,11 +114,6 @@ class Article extends Model
/** /**
* Scope a query to only include articles from a particular year/month. * Scope a query to only include articles from a particular year/month.
*
* @param Builder $query
* @param int|null $year
* @param int|null $month
* @return Builder
*/ */
public function scopeDate(Builder $query, int $year = null, int $month = null): Builder public function scopeDate(Builder $query, int $year = null, int $month = null): Builder
{ {

View file

@ -30,8 +30,6 @@ class Media extends Model
/** /**
* Get the note that owns this media. * Get the note that owns this media.
*
* @return BelongsTo
*/ */
public function note(): BelongsTo public function note(): BelongsTo
{ {

View file

@ -28,8 +28,6 @@ class MicropubClient extends Model
/** /**
* Define the relationship with notes. * Define the relationship with notes.
*
* @return HasMany
*/ */
public function notes(): HasMany public function notes(): HasMany
{ {

View file

@ -51,8 +51,6 @@ class Note extends Model
/** /**
* Set our contacts variable to null. * Set our contacts variable to null.
*
* @param array $attributes
*/ */
public function __construct(array $attributes = []) public function __construct(array $attributes = [])
{ {
@ -87,8 +85,6 @@ class Note extends Model
/** /**
* Define the relationship with tags. * Define the relationship with tags.
*
* @return BelongsToMany
*/ */
public function tags(): BelongsToMany public function tags(): BelongsToMany
{ {
@ -97,8 +93,6 @@ class Note extends Model
/** /**
* Define the relationship with clients. * Define the relationship with clients.
*
* @return BelongsTo
*/ */
public function client(): BelongsTo public function client(): BelongsTo
{ {
@ -107,8 +101,6 @@ class Note extends Model
/** /**
* Define the relationship with webmentions. * Define the relationship with webmentions.
*
* @return MorphMany
*/ */
public function webmentions(): MorphMany public function webmentions(): MorphMany
{ {
@ -117,8 +109,6 @@ class Note extends Model
/** /**
* Define the relationship with places. * Define the relationship with places.
*
* @return BelongsTo
*/ */
public function place(): BelongsTo public function place(): BelongsTo
{ {
@ -127,8 +117,6 @@ class Note extends Model
/** /**
* Define the relationship with media. * Define the relationship with media.
*
* @return HasMany
*/ */
public function media(): HasMany public function media(): HasMany
{ {
@ -137,8 +125,6 @@ class Note extends Model
/** /**
* Set the attributes to be indexed for searching with Scout. * Set the attributes to be indexed for searching with Scout.
*
* @return array
*/ */
public function toSearchableArray(): array public function toSearchableArray(): array
{ {
@ -149,8 +135,6 @@ class Note extends Model
/** /**
* Normalize the note to Unicode FORM C. * Normalize the note to Unicode FORM C.
*
* @param string|null $value
*/ */
public function setNoteAttribute(?string $value): void public function setNoteAttribute(?string $value): void
{ {
@ -165,9 +149,6 @@ class Note extends Model
/** /**
* Pre-process notes for web-view. * Pre-process notes for web-view.
*
* @param string|null $value
* @return string|null
*/ */
public function getNoteAttribute(?string $value): ?string public function getNoteAttribute(?string $value): ?string
{ {
@ -189,8 +170,6 @@ class Note extends Model
* Provide the content_html for JSON feed. * Provide the content_html for JSON feed.
* *
* In particular, we want to include media links such as images. * In particular, we want to include media links such as images.
*
* @return string
*/ */
public function getContentAttribute(): string public function getContentAttribute(): string
{ {
@ -218,8 +197,6 @@ class Note extends Model
/** /**
* Generate the NewBase60 ID from primary ID. * Generate the NewBase60 ID from primary ID.
*
* @return string
*/ */
public function getNb60idAttribute(): string public function getNb60idAttribute(): string
{ {
@ -229,8 +206,6 @@ class Note extends Model
/** /**
* The Long URL for a note. * The Long URL for a note.
*
* @return string
*/ */
public function getLongurlAttribute(): string public function getLongurlAttribute(): string
{ {
@ -239,8 +214,6 @@ class Note extends Model
/** /**
* The Short URL for a note. * The Short URL for a note.
*
* @return string
*/ */
public function getShorturlAttribute(): string public function getShorturlAttribute(): string
{ {
@ -249,8 +222,6 @@ class Note extends Model
/** /**
* Get the ISO8601 value for mf2. * Get the ISO8601 value for mf2.
*
* @return string
*/ */
public function getIso8601Attribute(): string public function getIso8601Attribute(): string
{ {
@ -259,8 +230,6 @@ class Note extends Model
/** /**
* Get the ISO8601 value for mf2. * Get the ISO8601 value for mf2.
*
* @return string
*/ */
public function getHumandiffAttribute(): string public function getHumandiffAttribute(): string
{ {
@ -269,8 +238,6 @@ class Note extends Model
/** /**
* Get the publish date value for RSS feeds. * Get the publish date value for RSS feeds.
*
* @return string
*/ */
public function getPubdateAttribute(): string public function getPubdateAttribute(): string
{ {
@ -279,8 +246,6 @@ class Note extends Model
/** /**
* Get the latitude value. * Get the latitude value.
*
* @return float|null
*/ */
public function getLatitudeAttribute(): ?float public function getLatitudeAttribute(): ?float
{ {
@ -299,8 +264,6 @@ class Note extends Model
/** /**
* Get the longitude value. * Get the longitude value.
*
* @return float|null
*/ */
public function getLongitudeAttribute(): ?float public function getLongitudeAttribute(): ?float
{ {
@ -320,8 +283,6 @@ class Note extends Model
/** /**
* Get the address for a note. This is either a reverse geo-code from the * Get the address for a note. This is either a reverse geo-code from the
* location, or is derived from the associated place. * location, or is derived from the associated place.
*
* @return string|null
*/ */
public function getAddressAttribute(): ?string public function getAddressAttribute(): ?string
{ {
@ -337,8 +298,6 @@ class Note extends Model
/** /**
* Get the OEmbed html for a tweet the note is a reply to. * Get the OEmbed html for a tweet the note is a reply to.
*
* @return object|null
*/ */
public function getTwitterAttribute(): ?object public function getTwitterAttribute(): ?object
{ {
@ -379,7 +338,6 @@ class Note extends Model
* *
* That is we swap the contacts names for their known Twitter handles. * That is we swap the contacts names for their known Twitter handles.
* *
* @return string
* *
* @throws TwitterContentException * @throws TwitterContentException
*/ */
@ -424,10 +382,6 @@ class Note extends Model
/** /**
* Scope a query to select a note via a NewBase60 id. * Scope a query to select a note via a NewBase60 id.
*
* @param Builder $query
* @param string $nb60id
* @return Builder
*/ */
public function scopeNb60(Builder $query, string $nb60id): Builder public function scopeNb60(Builder $query, string $nb60id): Builder
{ {
@ -441,9 +395,6 @@ class Note extends Model
* we try to create a fancy hcard from our contact info. If this is not possible * we try to create a fancy hcard from our contact info. If this is not possible
* due to lack of contact info, we assume @username is a twitter handle and link it * due to lack of contact info, we assume @username is a twitter handle and link it
* as such. * as such.
*
* @param string $text
* @return string
*/ */
private function makeHCards(string $text): string private function makeHCards(string $text): string
{ {
@ -475,8 +426,6 @@ class Note extends Model
/** /**
* Get the value of the `contacts` property. * Get the value of the `contacts` property.
*
* @return array
*/ */
public function getContacts(): array public function getContacts(): array
{ {
@ -489,8 +438,6 @@ class Note extends Model
/** /**
* Process the note and save the contacts to the `contacts` property. * Process the note and save the contacts to the `contacts` property.
*
* @return void
*/ */
public function setContacts(): void public function setContacts(): void
{ {
@ -512,9 +459,6 @@ class Note extends Model
* Given a string and section, finds all hashtags matching * Given a string and section, finds all hashtags matching
* `#[\-_a-zA-Z0-9]+` and wraps them in an `a` element with * `#[\-_a-zA-Z0-9]+` and wraps them in an `a` element with
* `rel=tag` set and a `href` of 'section/tagged/' + tagname without the #. * `rel=tag` set and a `href` of 'section/tagged/' + tagname without the #.
*
* @param string $note
* @return string
*/ */
public function autoLinkHashtag(string $note): string public function autoLinkHashtag(string $note): string
{ {
@ -531,9 +475,6 @@ class Note extends Model
/** /**
* Pass a note through the commonmark library. * Pass a note through the commonmark library.
*
* @param string $note
* @return string
*/ */
private function convertMarkdown(string $note): string private function convertMarkdown(string $note): string
{ {
@ -561,10 +502,6 @@ class Note extends Model
/** /**
* Do a reverse geocode lookup of a `lat,lng` value. * Do a reverse geocode lookup of a `lat,lng` value.
*
* @param float $latitude
* @param float $longitude
* @return string
*/ */
public function reverseGeoCode(float $latitude, float $longitude): string public function reverseGeoCode(float $latitude, float $longitude): string
{ {

View file

@ -46,8 +46,6 @@ class Place extends Model
/** /**
* Return the sluggable configuration array for this model. * Return the sluggable configuration array for this model.
*
* @return array
*/ */
public function sluggable(): array public function sluggable(): array
{ {
@ -71,11 +69,6 @@ class Place extends Model
/** /**
* Select places near a given location. * Select places near a given location.
*
* @param Builder $query
* @param object $location
* @param int $distance
* @return Builder
*/ */
public function scopeNear(Builder $query, object $location, int $distance = 1000): Builder public function scopeNear(Builder $query, object $location, int $distance = 1000): Builder
{ {
@ -94,10 +87,6 @@ class Place extends Model
/** /**
* Select places based on a URL. * Select places based on a URL.
*
* @param Builder $query
* @param string $url
* @return Builder
*/ */
public function scopeWhereExternalURL(Builder $query, string $url): Builder public function scopeWhereExternalURL(Builder $query, string $url): Builder
{ {
@ -150,9 +139,6 @@ class Place extends Model
/** /**
* Given a URL, see if it is one of our known types. * Given a URL, see if it is one of our known types.
*
* @param string $url
* @return string
*/ */
private function getType(string $url): string private function getType(string $url): string
{ {

View file

@ -51,9 +51,6 @@ class Tag extends Model
/** /**
* This method actually normalizes a tag. That means lowercase-ing and * This method actually normalizes a tag. That means lowercase-ing and
* removing fancy diatric characters. * removing fancy diatric characters.
*
* @param string $tag
* @return string
*/ */
public static function normalize(string $tag): string public static function normalize(string $tag): string
{ {

View file

@ -121,9 +121,6 @@ class WebMention extends Model
/** /**
* Create the photo link. * Create the photo link.
*
* @param string $url
* @return string
*/ */
public function createPhotoLink(string $url): string public function createPhotoLink(string $url): string
{ {

View file

@ -13,8 +13,6 @@ class NoteObserver
{ {
/** /**
* Listen to the Note created event. * Listen to the Note created event.
*
* @param Note $note
*/ */
public function created(Note $note) public function created(Note $note)
{ {
@ -37,8 +35,6 @@ class NoteObserver
/** /**
* Listen to the Note updated event. * Listen to the Note updated event.
*
* @param Note $note
*/ */
public function updated(Note $note) public function updated(Note $note)
{ {
@ -63,8 +59,6 @@ class NoteObserver
/** /**
* Listen to the Note deleting event. * Listen to the Note deleting event.
*
* @param Note $note
*/ */
public function deleting(Note $note) public function deleting(Note $note)
{ {
@ -73,9 +67,6 @@ class NoteObserver
/** /**
* Retrieve the tags from a notes text, tag for form #tag. * Retrieve the tags from a notes text, tag for form #tag.
*
* @param string $note
* @return Collection
*/ */
private function getTagsFromNote(string $note): Collection private function getTagsFromNote(string $note): Collection
{ {

View file

@ -29,7 +29,6 @@ class ActivityStreamsService
/** /**
* Return the relevant data to an AS2.0 request for a particular note. * Return the relevant data to an AS2.0 request for a particular note.
* *
* @param \App\Models\Note $note
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function singleNoteResponse(Note $note) public function singleNoteResponse(Note $note)

View file

@ -21,8 +21,6 @@ class BookmarkService extends Service
* Create a new Bookmark. * Create a new Bookmark.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @param string|null $client
* @return Bookmark
*/ */
public function create(array $request, ?string $client = null): Bookmark public function create(array $request, ?string $client = null): Bookmark
{ {
@ -76,8 +74,6 @@ class BookmarkService extends Service
/** /**
* Given a URL, attempt to save it to the Internet Archive. * Given a URL, attempt to save it to the Internet Archive.
* *
* @param string $url
* @return string
* *
* @throws InternetArchiveException * @throws InternetArchiveException
*/ */

View file

@ -13,7 +13,6 @@ class LikeService extends Service
/** /**
* Create a new Like. * Create a new Like.
* *
* @param array $request
* @return Like $like * @return Like $like
*/ */
public function create(array $request, ?string $client = null): Like public function create(array $request, ?string $client = null): Like

View file

@ -13,7 +13,6 @@ class HCardService
* Create a Place from h-card data, return the URL. * Create a Place from h-card data, return the URL.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @return string
*/ */
public function process(array $request): string public function process(array $request): string
{ {

View file

@ -17,7 +17,6 @@ class HEntryService
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @param string|null $client The micropub client that made the request * @param string|null $client The micropub client that made the request
* @return string|null
*/ */
public function process(array $request, ?string $client = null): ?string public function process(array $request, ?string $client = null): ?string
{ {

View file

@ -20,8 +20,6 @@ class NoteService extends Service
* Create a new note. * Create a new note.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @param string|null $client
* @return Note
*/ */
public function create(array $request, ?string $client = null): Note public function create(array $request, ?string $client = null): Note
{ {
@ -70,7 +68,6 @@ class NoteService extends Service
* Get the published time from the request to create a new note. * Get the published time from the request to create a new note.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @return string|null
*/ */
private function getPublished(array $request): ?string private function getPublished(array $request): ?string
{ {
@ -89,7 +86,6 @@ class NoteService extends Service
* Get the location data from the request to create a new note. * Get the location data from the request to create a new note.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @return string|null
*/ */
private function getLocation(array $request): ?string private function getLocation(array $request): ?string
{ {
@ -111,7 +107,6 @@ class NoteService extends Service
* Get the checkin data from the request to create a new note. This will be a Place. * Get the checkin data from the request to create a new note. This will be a Place.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @return Place|null
*/ */
private function getCheckin(array $request): ?Place private function getCheckin(array $request): ?Place
{ {
@ -157,7 +152,6 @@ class NoteService extends Service
* Get the Swarm URL from the syndication data in the request to create a new note. * Get the Swarm URL from the syndication data in the request to create a new note.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @return string|null
*/ */
private function getSwarmUrl(array $request): ?string private function getSwarmUrl(array $request): ?string
{ {
@ -172,7 +166,6 @@ class NoteService extends Service
* Get the syndication targets from the request to create a new note. * Get the syndication targets from the request to create a new note.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @return array
*/ */
private function getSyndicationTargets(array $request): array private function getSyndicationTargets(array $request): array
{ {
@ -196,7 +189,6 @@ class NoteService extends Service
* Get the media URLs from the request to create a new note. * Get the media URLs from the request to create a new note.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @return array
*/ */
private function getMedia(array $request): array private function getMedia(array $request): array
{ {
@ -226,7 +218,6 @@ class NoteService extends Service
* Get the Instagram photo URL from the request to create a new note. * Get the Instagram photo URL from the request to create a new note.
* *
* @param array $request Data from request()->all() * @param array $request Data from request()->all()
* @return string|null
*/ */
private function getInstagramUrl(array $request): ?string private function getInstagramUrl(array $request): ?string
{ {

View file

@ -11,9 +11,6 @@ class PlaceService
{ {
/** /**
* Create a place. * Create a place.
*
* @param array $data
* @return Place
*/ */
public function createPlace(array $data): Place public function createPlace(array $data): Place
{ {
@ -42,7 +39,6 @@ class PlaceService
* Create a place from a h-card checkin, for example from OwnYourSwarm. * Create a place from a h-card checkin, for example from OwnYourSwarm.
* *
* @param array * @param array
* @return Place
*/ */
public function createPlaceFromCheckin(array $checkin): Place public function createPlaceFromCheckin(array $checkin): Place
{ {

20
composer.lock generated
View file

@ -8886,16 +8886,16 @@
}, },
{ {
"name": "laravel/pint", "name": "laravel/pint",
"version": "v1.4.1", "version": "v1.5.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/pint.git", "url": "https://github.com/laravel/pint.git",
"reference": "80ddf23a5d97825e79bb1018eebb6f3f985d4fa8" "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/80ddf23a5d97825e79bb1018eebb6f3f985d4fa8", "url": "https://api.github.com/repos/laravel/pint/zipball/e0a8cef58b74662f27355be9cdea0e726bbac362",
"reference": "80ddf23a5d97825e79bb1018eebb6f3f985d4fa8", "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -8906,13 +8906,13 @@
"php": "^8.0" "php": "^8.0"
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^3.14", "friendsofphp/php-cs-fixer": "^3.14.4",
"illuminate/view": "^9.32.0", "illuminate/view": "^9.51.0",
"laravel-zero/framework": "^9.2.0", "laravel-zero/framework": "^9.2.0",
"mockery/mockery": "^1.5.1", "mockery/mockery": "^1.5.1",
"nunomaduro/larastan": "^2.2.0", "nunomaduro/larastan": "^2.4.0",
"nunomaduro/termwind": "^1.14.0", "nunomaduro/termwind": "^1.15.1",
"pestphp/pest": "^1.22.1" "pestphp/pest": "^1.22.4"
}, },
"bin": [ "bin": [
"builds/pint" "builds/pint"
@ -8948,7 +8948,7 @@
"issues": "https://github.com/laravel/pint/issues", "issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint" "source": "https://github.com/laravel/pint"
}, },
"time": "2023-01-31T15:50:45+00:00" "time": "2023-02-14T16:31:02+00:00"
}, },
{ {
"name": "laravel/sail", "name": "laravel/sail",

View file

@ -11,8 +11,6 @@ class HorizonTest extends TestCase
* Horizon has its own test suite, here we just test it has been installed successfully. * Horizon has its own test suite, here we just test it has been installed successfully.
* *
* @test * @test
*
* @return void
*/ */
public function horizonIsInstalled(): void public function horizonIsInstalled(): void
{ {

View file

@ -19,9 +19,6 @@ class HelpersTest extends TestCase
* @test * @test
* *
* @dataProvider urlProvider * @dataProvider urlProvider
*
* @param string $input
* @param string $output
*/ */
public function normalizeUrlOnDataProvider(string $input, string $output): void public function normalizeUrlOnDataProvider(string $input, string $output): void
{ {

View file

@ -27,8 +27,6 @@ class NotesTest extends TestCase
* relevant sub-methods. * relevant sub-methods.
* *
* @test * @test
*
* @return void
*/ */
public function getNoteAttributeMethodCallsSubMethods(): void public function getNoteAttributeMethodCallsSubMethods(): void
{ {
@ -44,8 +42,6 @@ class NotesTest extends TestCase
* Look for a default image in the contacts h-card for the makeHCards method. * Look for a default image in the contacts h-card for the makeHCards method.
* *
* @test * @test
*
* @return void
*/ */
public function defaultImageUsedAsFallbackInMakehcardsMethod(): void public function defaultImageUsedAsFallbackInMakehcardsMethod(): void
{ {
@ -68,8 +64,6 @@ class NotesTest extends TestCase
* Look for a specific profile image in the contacts h-card. * Look for a specific profile image in the contacts h-card.
* *
* @test * @test
*
* @return void
*/ */
public function specificProfileImageUsedInMakehcardsMethod(): void public function specificProfileImageUsedInMakehcardsMethod(): void
{ {
@ -98,8 +92,6 @@ class NotesTest extends TestCase
* Look for twitter URL when theres no associated contact. * Look for twitter URL when theres no associated contact.
* *
* @test * @test
*
* @return void
*/ */
public function twitterLinkIsCreatedWhenNoContactFound(): void public function twitterLinkIsCreatedWhenNoContactFound(): void
{ {

View file

@ -36,9 +36,6 @@ class TagsTest extends TestCase
* @test * @test
* *
* @dataProvider tagsProvider * @dataProvider tagsProvider
*
* @param string $input
* @param string $expected
*/ */
public function canNormalize(string $input, string $expected): void public function canNormalize(string $input, string $expected): void
{ {