diff --git a/app/Console/Commands/ParseCachedWebMentions.php b/app/Console/Commands/ParseCachedWebMentions.php index 6bdd1862..a7c0b8ca 100644 --- a/app/Console/Commands/ParseCachedWebMentions.php +++ b/app/Console/Commands/ParseCachedWebMentions.php @@ -51,7 +51,6 @@ class ParseCachedWebMentions extends Command * Determine the source URL from a filename. * * @param string - * @return string */ private function urlFromFilename(string $filepath): string { diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 79753739..60f37be6 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -20,7 +20,6 @@ class Kernel extends ConsoleKernel /** * Define the application's command schedule. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void * * @codeCoverageIgnore diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index d82db948..30e8b3e1 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -43,7 +43,6 @@ class Handler extends ExceptionHandler * * This is a great spot to send exceptions to Sentry, Bugsnag, etc. * - * @param Throwable $throwable * @return void * * @throws Exception @@ -89,7 +88,6 @@ class Handler extends ExceptionHandler * Render an exception into an HTTP response. * * @param Request $request - * @param Throwable $throwable * @return Response * * @throws Throwable diff --git a/app/Http/Controllers/Admin/ClientsController.php b/app/Http/Controllers/Admin/ClientsController.php index fd12cba9..f7662519 100644 --- a/app/Http/Controllers/Admin/ClientsController.php +++ b/app/Http/Controllers/Admin/ClientsController.php @@ -14,8 +14,6 @@ class ClientsController extends Controller { /** * Show a list of known clients. - * - * @return \Illuminate\View\View */ public function index(): View { @@ -26,8 +24,6 @@ class ClientsController extends Controller /** * Show form to add a client name. - * - * @return \Illuminate\View\View */ public function create(): View { @@ -36,8 +32,6 @@ class ClientsController extends Controller /** * Process the request to adda new client name. - * - * @return \Illuminate\Http\RedirectResponse */ public function store(): RedirectResponse { @@ -51,9 +45,6 @@ class ClientsController extends Controller /** * Show a form to edit a client name. - * - * @param int $clientId - * @return \Illuminate\View\View */ public function edit(int $clientId): View { @@ -68,9 +59,6 @@ class ClientsController extends Controller /** * Process the request to edit a client name. - * - * @param int $clientId - * @return \Illuminate\Http\RedirectResponse */ public function update(int $clientId): RedirectResponse { @@ -84,9 +72,6 @@ class ClientsController extends Controller /** * Process a request to delete a client. - * - * @param int $clientId - * @return \Illuminate\Http\RedirectResponse */ public function destroy(int $clientId): RedirectResponse { diff --git a/app/Http/Controllers/Admin/ContactsController.php b/app/Http/Controllers/Admin/ContactsController.php index fe0c3cfc..bdcdc90d 100644 --- a/app/Http/Controllers/Admin/ContactsController.php +++ b/app/Http/Controllers/Admin/ContactsController.php @@ -17,8 +17,6 @@ class ContactsController extends Controller { /** * List the currect contacts that can be edited. - * - * @return \Illuminate\View\View */ public function index(): View { @@ -29,8 +27,6 @@ class ContactsController extends Controller /** * Display the form to add a new contact. - * - * @return \Illuminate\View\View */ public function create(): View { @@ -39,8 +35,6 @@ class ContactsController extends Controller /** * Process the request to add a new contact. - * - * @return \Illuminate\Http\RedirectResponse */ public function store(): RedirectResponse { @@ -57,9 +51,6 @@ class ContactsController extends Controller /** * Show the form to edit an existing contact. - * - * @param int $contactId - * @return \Illuminate\View\View */ public function edit(int $contactId): View { @@ -72,9 +63,6 @@ class ContactsController extends Controller * Process the request to edit a contact. * * @todo Allow saving profile pictures for people without homepages - * - * @param int $contactId - * @return \Illuminate\Http\RedirectResponse */ public function update(int $contactId): RedirectResponse { @@ -101,9 +89,6 @@ class ContactsController extends Controller /** * Process the request to delete a contact. - * - * @param int $contactId - * @return \Illuminate\Http\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 * from a given homepage and save it accordingly * - * @param int $contactId * @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View */ public function getAvatar(int $contactId) diff --git a/app/Http/Controllers/Admin/HomeController.php b/app/Http/Controllers/Admin/HomeController.php index ee10e4dc..ae4f4d36 100644 --- a/app/Http/Controllers/Admin/HomeController.php +++ b/app/Http/Controllers/Admin/HomeController.php @@ -11,8 +11,6 @@ class HomeController extends Controller { /** * Show the homepage of the admin CP. - * - * @return \Illuminate\View\View */ public function welcome(): View { diff --git a/app/Http/Controllers/Admin/LikesController.php b/app/Http/Controllers/Admin/LikesController.php index 102c281e..9ebd7e74 100644 --- a/app/Http/Controllers/Admin/LikesController.php +++ b/app/Http/Controllers/Admin/LikesController.php @@ -14,8 +14,6 @@ class LikesController extends Controller { /** * List the likes that can be edited. - * - * @return \Illuminate\View\View */ public function index(): View { @@ -26,8 +24,6 @@ class LikesController extends Controller /** * Show the form to make a new like. - * - * @return \Illuminate\View\View */ public function create(): View { @@ -36,8 +32,6 @@ class LikesController extends Controller /** * Process a request to make a new like. - * - * @return \Illuminate\Http\RedirectResponse */ public function store(): RedirectResponse { @@ -51,9 +45,6 @@ class LikesController extends Controller /** * Display the form to edit a specific like. - * - * @param int $likeId - * @return \Illuminate\View\View */ public function edit(int $likeId): View { @@ -67,9 +58,6 @@ class LikesController extends Controller /** * Process a request to edit a like. - * - * @param int $likeId - * @return \Illuminate\Http\RedirectResponse */ public function update(int $likeId): RedirectResponse { @@ -83,9 +71,6 @@ class LikesController extends Controller /** * Process the request to delete a like. - * - * @param int $likeId - * @return \Illuminate\Http\RedirectResponse */ public function destroy(int $likeId): RedirectResponse { diff --git a/app/Http/Controllers/Admin/NotesController.php b/app/Http/Controllers/Admin/NotesController.php index 31ad4822..ae409291 100644 --- a/app/Http/Controllers/Admin/NotesController.php +++ b/app/Http/Controllers/Admin/NotesController.php @@ -15,8 +15,6 @@ class NotesController extends Controller { /** * List the notes that can be edited. - * - * @return \Illuminate\View\View */ public function index(): View { @@ -30,8 +28,6 @@ class NotesController extends Controller /** * Show the form to make a new note. - * - * @return \Illuminate\View\View */ public function create(): View { @@ -40,9 +36,6 @@ class NotesController extends Controller /** * Process a request to make a new note. - * - * @param Request $request - * @return RedirectResponse */ public function store(Request $request): RedirectResponse { @@ -56,9 +49,6 @@ class NotesController extends Controller /** * Display the form to edit a specific note. - * - * @param int $noteId - * @return \Illuminate\View\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 * from the admin CP. - * - * @param int $noteId - * @return \Illuminate\Http\RedirectResponse */ public function update(int $noteId): RedirectResponse { @@ -92,9 +79,6 @@ class NotesController extends Controller /** * Delete the note. - * - * @param int $noteId - * @return \Illuminate\Http\RedirectResponse */ public function destroy(int $noteId): RedirectResponse { diff --git a/app/Http/Controllers/Admin/PlacesController.php b/app/Http/Controllers/Admin/PlacesController.php index e1025e2f..e5e82bcd 100644 --- a/app/Http/Controllers/Admin/PlacesController.php +++ b/app/Http/Controllers/Admin/PlacesController.php @@ -21,8 +21,6 @@ class PlacesController extends Controller /** * List the places that can be edited. - * - * @return View */ public function index(): View { @@ -33,8 +31,6 @@ class PlacesController extends Controller /** * Show the form to make a new place. - * - * @return View */ public function create(): View { @@ -43,8 +39,6 @@ class PlacesController extends Controller /** * Process a request to make a new place. - * - * @return RedirectResponse */ public function store(): RedirectResponse { @@ -62,9 +56,6 @@ class PlacesController extends Controller /** * Display the form to edit a specific place. - * - * @param int $placeId - * @return View */ public function edit(int $placeId): View { @@ -75,9 +66,6 @@ class PlacesController extends Controller /** * Process a request to edit a place. - * - * @param int $placeId - * @return 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. - * - * @param int $placeId - * @return View */ public function mergeIndex(int $placeId): View { @@ -114,10 +99,6 @@ class PlacesController extends Controller /** * Show a form for merging two specific places. - * - * @param int $placeId1 - * @param int $placeId2 - * @return View */ public function mergeEdit(int $placeId1, int $placeId2): View { @@ -129,8 +110,6 @@ class PlacesController extends Controller /** * Process the request to merge two places. - * - * @return RedirectResponse */ public function mergeStore(): RedirectResponse { diff --git a/app/Http/Controllers/Admin/SyndicationTargetsController.php b/app/Http/Controllers/Admin/SyndicationTargetsController.php index c71140ee..dc14a2d2 100644 --- a/app/Http/Controllers/Admin/SyndicationTargetsController.php +++ b/app/Http/Controllers/Admin/SyndicationTargetsController.php @@ -14,8 +14,6 @@ class SyndicationTargetsController extends Controller { /** * Show a list of known syndication targets. - * - * @return View */ public function index(): View { @@ -26,8 +24,6 @@ class SyndicationTargetsController extends Controller /** * Show form to add a syndication target. - * - * @return View */ public function create(): View { @@ -36,9 +32,6 @@ class SyndicationTargetsController extends Controller /** * Process the request to adda new syndication target. - * - * @param Request $request - * @return RedirectResponse */ public function store(Request $request): RedirectResponse { @@ -60,9 +53,6 @@ class SyndicationTargetsController extends Controller /** * Show a form to edit a syndication target. - * - * @param SyndicationTarget $syndicationTarget - * @return View */ public function edit(SyndicationTarget $syndicationTarget): View { @@ -73,10 +63,6 @@ class SyndicationTargetsController extends Controller /** * Process the request to edit a client name. - * - * @param Request $request - * @param SyndicationTarget $syndicationTarget - * @return RedirectResponse */ public function update(Request $request, SyndicationTarget $syndicationTarget): RedirectResponse { @@ -98,9 +84,6 @@ class SyndicationTargetsController extends Controller /** * Process a request to delete a client. - * - * @param SyndicationTarget $syndicationTarget - * @return RedirectResponse */ public function destroy(SyndicationTarget $syndicationTarget): RedirectResponse { diff --git a/app/Http/Controllers/ArticlesController.php b/app/Http/Controllers/ArticlesController.php index 811ddc38..5ca8a907 100644 --- a/app/Http/Controllers/ArticlesController.php +++ b/app/Http/Controllers/ArticlesController.php @@ -14,10 +14,6 @@ class ArticlesController extends Controller { /** * 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 { @@ -32,9 +28,6 @@ class ArticlesController extends Controller /** * Show a single article. * - * @param int $year - * @param int $month - * @param string $slug * @return RedirectResponse|View */ 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 * and redirect to it. - * - * @param string $idFromUrl - * @return RedirectResponse */ public function onlyIdInUrl(string $idFromUrl): RedirectResponse { diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 6efd237e..01d91602 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -27,8 +27,6 @@ class AuthController extends Controller /** * Log in a user, set a session variable, check credentials against * the .env file. - * - * @return RedirectResponse */ public function login(): RedirectResponse { diff --git a/app/Http/Controllers/BookmarksController.php b/app/Http/Controllers/BookmarksController.php index ee832c05..b4bb3c13 100644 --- a/app/Http/Controllers/BookmarksController.php +++ b/app/Http/Controllers/BookmarksController.php @@ -11,8 +11,6 @@ class BookmarksController extends Controller { /** * Show the most recent bookmarks. - * - * @return View */ public function index(): View { @@ -23,9 +21,6 @@ class BookmarksController extends Controller /** * Show a single bookmark. - * - * @param Bookmark $bookmark - * @return View */ public function show(Bookmark $bookmark): View { @@ -36,9 +31,6 @@ class BookmarksController extends Controller /** * Show bookmarks tagged with a specific tag. - * - * @param string $tag - * @return View */ public function tagged(string $tag): View { diff --git a/app/Http/Controllers/ContactsController.php b/app/Http/Controllers/ContactsController.php index 3a46026e..3f1bfcff 100644 --- a/app/Http/Controllers/ContactsController.php +++ b/app/Http/Controllers/ContactsController.php @@ -12,8 +12,6 @@ class ContactsController extends Controller { /** * Show all the contacts. - * - * @return View */ public function index(): View { @@ -33,9 +31,6 @@ class ContactsController extends Controller /** * Show a single contact. - * - * @param Contact $contact - * @return View */ public function show(Contact $contact): View { diff --git a/app/Http/Controllers/FeedsController.php b/app/Http/Controllers/FeedsController.php index eb8c1a17..16db9bfa 100644 --- a/app/Http/Controllers/FeedsController.php +++ b/app/Http/Controllers/FeedsController.php @@ -13,8 +13,6 @@ class FeedsController extends Controller { /** * Returns the blog RSS feed. - * - * @return Response */ public function blogRss(): Response { @@ -28,8 +26,6 @@ class FeedsController extends Controller /** * Returns the blog Atom feed. - * - * @return Response */ public function blogAtom(): Response { @@ -42,8 +38,6 @@ class FeedsController extends Controller /** * Returns the notes RSS feed. - * - * @return Response */ public function notesRss(): Response { @@ -57,8 +51,6 @@ class FeedsController extends Controller /** * Returns the notes Atom feed. - * - * @return Response */ public function notesAtom(): Response { @@ -73,8 +65,6 @@ class FeedsController extends Controller /** * Returns the blog JSON feed. - * - * @return array */ public function blogJson(): array { @@ -138,8 +128,6 @@ class FeedsController extends Controller /** * Returns the blog JF2 feed. - * - * @return JsonResponse */ public function blogJf2(): JsonResponse { @@ -176,8 +164,6 @@ class FeedsController extends Controller /** * Returns the notes JF2 feed. - * - * @return JsonResponse */ public function notesJf2(): JsonResponse { diff --git a/app/Http/Controllers/LikesController.php b/app/Http/Controllers/LikesController.php index 48c5ffd7..af1c483c 100644 --- a/app/Http/Controllers/LikesController.php +++ b/app/Http/Controllers/LikesController.php @@ -11,8 +11,6 @@ class LikesController extends Controller { /** * Show the latest likes. - * - * @return View */ public function index(): View { @@ -23,9 +21,6 @@ class LikesController extends Controller /** * Show a single like. - * - * @param Like $like - * @return View */ public function show(Like $like): View { diff --git a/app/Http/Controllers/MicropubController.php b/app/Http/Controllers/MicropubController.php index 4d4a734f..a667b560 100644 --- a/app/Http/Controllers/MicropubController.php +++ b/app/Http/Controllers/MicropubController.php @@ -44,9 +44,6 @@ class MicropubController extends Controller /** * This function receives an API request, verifies the authenticity * then passes over the info to the relevant Service class. - * - * @param Request $request - * @return 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 * appropriately. Further if the request has the query parameter * syndicate-to we respond with the known syndication endpoints. - * - * @return 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. * - * @return string * * @throws RequiredConstraintsViolated */ diff --git a/app/Http/Controllers/MicropubMediaController.php b/app/Http/Controllers/MicropubMediaController.php index c3199931..f79928dd 100644 --- a/app/Http/Controllers/MicropubMediaController.php +++ b/app/Http/Controllers/MicropubMediaController.php @@ -98,7 +98,6 @@ class MicropubMediaController extends Controller /** * Process a media item posted to the media endpoint. * - * @return JsonResponse * * @throws BindingResolutionException * @throws Exception @@ -176,8 +175,6 @@ class MicropubMediaController extends Controller /** * Return the relevant CORS headers to a pre-flight OPTIONS request. - * - * @return 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. - * - * @param string $mimeType - * @return string */ private function getFileTypeFromMimeType(string $mimeType): string { @@ -232,8 +226,6 @@ class MicropubMediaController extends Controller /** * Save an uploaded file to the local disk. * - * @param UploadedFile $file - * @return string * * @throws Exception */ diff --git a/app/Http/Controllers/NotesController.php b/app/Http/Controllers/NotesController.php index 56768747..543b6158 100644 --- a/app/Http/Controllers/NotesController.php +++ b/app/Http/Controllers/NotesController.php @@ -62,7 +62,6 @@ class NotesController extends Controller * Redirect /note/{decID} to /notes/{nb60id}. * * @param int $decId The decimal id of the note - * @return RedirectResponse */ public function redirect(int $decId): RedirectResponse { @@ -71,9 +70,6 @@ class NotesController extends Controller /** * Show all notes tagged with {tag}. - * - * @param string $tag - * @return View */ public function tagged(string $tag): View { @@ -88,8 +84,6 @@ class NotesController extends Controller * Page to create a new note. * * Dummy page for now. - * - * @return View */ public function create(): View { diff --git a/app/Http/Controllers/PlacesController.php b/app/Http/Controllers/PlacesController.php index fb66574f..b949ecde 100644 --- a/app/Http/Controllers/PlacesController.php +++ b/app/Http/Controllers/PlacesController.php @@ -11,8 +11,6 @@ class PlacesController extends Controller { /** * Show all the places. - * - * @return View */ public function index(): View { @@ -23,9 +21,6 @@ class PlacesController extends Controller /** * Show a specific place. - * - * @param Place $place - * @return View */ public function show(Place $place): View { diff --git a/app/Http/Controllers/ShortURLsController.php b/app/Http/Controllers/ShortURLsController.php index e93f51ac..440d79f7 100644 --- a/app/Http/Controllers/ShortURLsController.php +++ b/app/Http/Controllers/ShortURLsController.php @@ -19,8 +19,6 @@ class ShortURLsController extends Controller /** * Redirect from '/' to the long url. - * - * @return RedirectResponse */ public function baseURL(): RedirectResponse { @@ -29,8 +27,6 @@ class ShortURLsController extends Controller /** * Redirect from '/@' to a twitter profile. - * - * @return RedirectResponse */ public function twitter(): RedirectResponse { @@ -43,7 +39,6 @@ class ShortURLsController extends Controller * * @param string Post type * @param string Post ID - * @return RedirectResponse */ public function expandType(string $type, string $postId): RedirectResponse { diff --git a/app/Http/Controllers/TokenEndpointController.php b/app/Http/Controllers/TokenEndpointController.php index e348738c..06fa15df 100644 --- a/app/Http/Controllers/TokenEndpointController.php +++ b/app/Http/Controllers/TokenEndpointController.php @@ -31,10 +31,6 @@ class TokenEndpointController extends Controller /** * Inject the dependencies. - * - * @param Client $client - * @param GuzzleClient $guzzle - * @param TokenService $tokenService */ public function __construct( Client $client, @@ -48,9 +44,6 @@ class TokenEndpointController extends Controller /** * If the user has auth’d via the IndieAuth protocol, issue a valid token. - * - * @param Request $request - * @return JsonResponse */ public function create(Request $request): JsonResponse { diff --git a/app/Http/Controllers/WebMentionsController.php b/app/Http/Controllers/WebMentionsController.php index 2b2905db..f5626742 100644 --- a/app/Http/Controllers/WebMentionsController.php +++ b/app/Http/Controllers/WebMentionsController.php @@ -18,8 +18,6 @@ class WebMentionsController extends Controller * * This is probably someone looking for information about what * webmentions are, or about my particular implementation. - * - * @return View */ public function get(): View { @@ -28,8 +26,6 @@ class WebMentionsController extends Controller /** * Receive and process a webmention. - * - * @return Response */ public function receive(): Response { diff --git a/app/Http/Middleware/ActivityStreamLinks.php b/app/Http/Middleware/ActivityStreamLinks.php index 4cad411f..298865b4 100644 --- a/app/Http/Middleware/ActivityStreamLinks.php +++ b/app/Http/Middleware/ActivityStreamLinks.php @@ -12,8 +12,6 @@ class ActivityStreamLinks /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) diff --git a/app/Http/Middleware/CSPHeader.php b/app/Http/Middleware/CSPHeader.php index bf2202ed..0e8a9d87 100644 --- a/app/Http/Middleware/CSPHeader.php +++ b/app/Http/Middleware/CSPHeader.php @@ -12,7 +12,6 @@ class CSPHeader * Handle an incoming request. * * @param Request $request - * @param Closure $next * @return mixed */ public function handle($request, Closure $next) diff --git a/app/Http/Middleware/CorsHeaders.php b/app/Http/Middleware/CorsHeaders.php index 85986079..9717aee3 100644 --- a/app/Http/Middleware/CorsHeaders.php +++ b/app/Http/Middleware/CorsHeaders.php @@ -10,7 +10,6 @@ class CorsHeaders * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) diff --git a/app/Http/Middleware/LinkHeadersMiddleware.php b/app/Http/Middleware/LinkHeadersMiddleware.php index 66dee526..bb0422f7 100644 --- a/app/Http/Middleware/LinkHeadersMiddleware.php +++ b/app/Http/Middleware/LinkHeadersMiddleware.php @@ -10,7 +10,6 @@ class LinkHeadersMiddleware * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) diff --git a/app/Http/Middleware/LocalhostSessionMiddleware.php b/app/Http/Middleware/LocalhostSessionMiddleware.php index 5131b9fc..a8e84455 100644 --- a/app/Http/Middleware/LocalhostSessionMiddleware.php +++ b/app/Http/Middleware/LocalhostSessionMiddleware.php @@ -14,8 +14,6 @@ class LocalhostSessionMiddleware * `['me' => config('app.url')]` as I can’t manually log in as * a .localhost domain. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) diff --git a/app/Http/Middleware/MyAuthMiddleware.php b/app/Http/Middleware/MyAuthMiddleware.php index 872e6846..c4f9da6f 100644 --- a/app/Http/Middleware/MyAuthMiddleware.php +++ b/app/Http/Middleware/MyAuthMiddleware.php @@ -13,8 +13,6 @@ class MyAuthMiddleware /** * Check the user is logged in. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 4e0fd5c4..f15a8dab 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -15,8 +15,6 @@ class RedirectIfAuthenticated /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string|null ...$guards * @return mixed */ diff --git a/app/Http/Middleware/VerifyMicropubToken.php b/app/Http/Middleware/VerifyMicropubToken.php index aa650560..b868239e 100644 --- a/app/Http/Middleware/VerifyMicropubToken.php +++ b/app/Http/Middleware/VerifyMicropubToken.php @@ -12,8 +12,6 @@ class VerifyMicropubToken /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) diff --git a/app/Http/Responses/MicropubResponses.php b/app/Http/Responses/MicropubResponses.php index 829e5c57..4f7240c2 100644 --- a/app/Http/Responses/MicropubResponses.php +++ b/app/Http/Responses/MicropubResponses.php @@ -10,8 +10,6 @@ class MicropubResponses { /** * Generate a response to be returned when the token has insufficient scope. - * - * @return JsonResponse */ public function insufficientScopeResponse(): JsonResponse { @@ -24,8 +22,6 @@ class MicropubResponses /** * Generate a response to be returned when the token is invalid. - * - * @return JsonResponse */ public function invalidTokenResponse(): JsonResponse { @@ -38,8 +34,6 @@ class MicropubResponses /** * Generate a response to be returned when the token has no scope. - * - * @return JsonResponse */ public function tokenHasNoScopeResponse(): JsonResponse { diff --git a/app/Jobs/AddClientToDatabase.php b/app/Jobs/AddClientToDatabase.php index a3611d00..de3d12ee 100644 --- a/app/Jobs/AddClientToDatabase.php +++ b/app/Jobs/AddClientToDatabase.php @@ -22,8 +22,6 @@ class AddClientToDatabase implements ShouldQueue /** * Create a new job instance. - * - * @param string $client_id */ public function __construct(string $client_id) { diff --git a/app/Jobs/DownloadWebMention.php b/app/Jobs/DownloadWebMention.php index bb47f654..ff2342d2 100644 --- a/app/Jobs/DownloadWebMention.php +++ b/app/Jobs/DownloadWebMention.php @@ -28,8 +28,6 @@ class DownloadWebMention implements ShouldQueue /** * Create a new job instance. - * - * @param string $source */ public function __construct(string $source) { @@ -39,7 +37,6 @@ class DownloadWebMention implements ShouldQueue /** * Execute the job. * - * @param Client $guzzle * * @throws GuzzleException * @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. * - * @param string $url * @return string The path name */ private function createFilenameFromURL(string $url) diff --git a/app/Jobs/ProcessBookmark.php b/app/Jobs/ProcessBookmark.php index de3c65ed..cdbca8a2 100644 --- a/app/Jobs/ProcessBookmark.php +++ b/app/Jobs/ProcessBookmark.php @@ -24,8 +24,6 @@ class ProcessBookmark implements ShouldQueue /** * Create a new job instance. - * - * @param Bookmark $bookmark */ public function __construct(Bookmark $bookmark) { @@ -34,8 +32,6 @@ class ProcessBookmark implements ShouldQueue /** * Execute the job. - * - * @return void */ public function handle(): void { diff --git a/app/Jobs/ProcessLike.php b/app/Jobs/ProcessLike.php index 6a5281c0..cafe156d 100644 --- a/app/Jobs/ProcessLike.php +++ b/app/Jobs/ProcessLike.php @@ -30,8 +30,6 @@ class ProcessLike implements ShouldQueue /** * Create a new job instance. - * - * @param Like $like */ public function __construct(Like $like) { @@ -41,9 +39,6 @@ class ProcessLike implements ShouldQueue /** * Execute the job. * - * @param Client $client - * @param Authorship $authorship - * @return int * * @throws GuzzleException */ @@ -104,9 +99,6 @@ class ProcessLike implements ShouldQueue /** * Determine if a given URL is that of a Tweet. - * - * @param string $url - * @return bool */ private function isTweet(string $url): bool { diff --git a/app/Jobs/ProcessMedia.php b/app/Jobs/ProcessMedia.php index 5872e33e..8ce127b0 100644 --- a/app/Jobs/ProcessMedia.php +++ b/app/Jobs/ProcessMedia.php @@ -25,8 +25,6 @@ class ProcessMedia implements ShouldQueue /** * Create a new job instance. - * - * @param string $filename */ public function __construct(string $filename) { @@ -35,8 +33,6 @@ class ProcessMedia implements ShouldQueue /** * Execute the job. - * - * @param ImageManager $manager */ public function handle(ImageManager $manager) { diff --git a/app/Jobs/ProcessWebMention.php b/app/Jobs/ProcessWebMention.php index 82636ec6..55f35b75 100644 --- a/app/Jobs/ProcessWebMention.php +++ b/app/Jobs/ProcessWebMention.php @@ -32,9 +32,6 @@ class ProcessWebMention implements ShouldQueue /** * Create a new job instance. - * - * @param Note $note - * @param string $source */ public function __construct(Note $note, string $source) { @@ -45,8 +42,6 @@ class ProcessWebMention implements ShouldQueue /** * Execute the job. * - * @param Parser $parser - * @param Client $guzzle * * @throws RemoteContentNotFoundException * @throws GuzzleException diff --git a/app/Jobs/SaveProfileImage.php b/app/Jobs/SaveProfileImage.php index 38dbfc4c..8535d8c9 100644 --- a/app/Jobs/SaveProfileImage.php +++ b/app/Jobs/SaveProfileImage.php @@ -24,8 +24,6 @@ class SaveProfileImage implements ShouldQueue /** * Create a new job instance. - * - * @param array $microformats */ public function __construct(array $microformats) { @@ -34,8 +32,6 @@ class SaveProfileImage implements ShouldQueue /** * Execute the job. - * - * @param Authorship $authorship */ public function handle(Authorship $authorship) { diff --git a/app/Jobs/SaveScreenshot.php b/app/Jobs/SaveScreenshot.php index 3624af08..74e37305 100755 --- a/app/Jobs/SaveScreenshot.php +++ b/app/Jobs/SaveScreenshot.php @@ -33,7 +33,6 @@ class SaveScreenshot implements ShouldQueue /** * Execute the job. * - * @return void * * @throws JsonException */ diff --git a/app/Jobs/SendWebMentions.php b/app/Jobs/SendWebMentions.php index dcdd4237..153c33ee 100644 --- a/app/Jobs/SendWebMentions.php +++ b/app/Jobs/SendWebMentions.php @@ -26,8 +26,6 @@ class SendWebMentions implements ShouldQueue /** * Create the job instance, inject dependencies. - * - * @param Note $note */ public function __construct(Note $note) { @@ -37,7 +35,6 @@ class SendWebMentions implements ShouldQueue /** * Execute the job. * - * @return void * * @throws GuzzleException */ @@ -63,8 +60,6 @@ class SendWebMentions implements ShouldQueue /** * Discover if a URL has a webmention endpoint. * - * @param string $url - * @return string|null * * @throws GuzzleException */ @@ -111,9 +106,6 @@ class SendWebMentions implements ShouldQueue /** * Get the URLs from a note. - * - * @param string|null $html - * @return array */ public function getLinks(?string $html): array { @@ -135,9 +127,7 @@ class SendWebMentions implements ShouldQueue /** * Resolve a URI if necessary. * - * @param string $url * @param string $base The base of the URL - * @return string */ public function resolveUri(string $url, string $base): string { diff --git a/app/Jobs/SyndicateBookmarkToTwitter.php b/app/Jobs/SyndicateBookmarkToTwitter.php index 1e76a90d..d919e0b1 100644 --- a/app/Jobs/SyndicateBookmarkToTwitter.php +++ b/app/Jobs/SyndicateBookmarkToTwitter.php @@ -25,8 +25,6 @@ class SyndicateBookmarkToTwitter implements ShouldQueue /** * Create a new job instance. - * - * @param Bookmark $bookmark */ public function __construct(Bookmark $bookmark) { @@ -36,7 +34,6 @@ class SyndicateBookmarkToTwitter implements ShouldQueue /** * Execute the job. * - * @param Client $guzzle * * @throws GuzzleException */ diff --git a/app/Jobs/SyndicateNoteToMastodon.php b/app/Jobs/SyndicateNoteToMastodon.php index 87050413..d3346470 100644 --- a/app/Jobs/SyndicateNoteToMastodon.php +++ b/app/Jobs/SyndicateNoteToMastodon.php @@ -20,7 +20,6 @@ class SyndicateNoteToMastodon implements ShouldQueue /** * Create a new job instance. * - * @param Note $note * @return void */ public function __construct( @@ -31,8 +30,6 @@ class SyndicateNoteToMastodon implements ShouldQueue /** * Execute the job. * - * @param Client $guzzle - * @return void * * @throws GuzzleException */ diff --git a/app/Jobs/SyndicateNoteToTwitter.php b/app/Jobs/SyndicateNoteToTwitter.php index 4b8d9c1e..2d6c7838 100644 --- a/app/Jobs/SyndicateNoteToTwitter.php +++ b/app/Jobs/SyndicateNoteToTwitter.php @@ -23,8 +23,6 @@ class SyndicateNoteToTwitter implements ShouldQueue /** * Create a new job instance. - * - * @param Note $note */ public function __construct(Note $note) { @@ -34,7 +32,6 @@ class SyndicateNoteToTwitter implements ShouldQueue /** * Execute the job. * - * @param Client $guzzle * * @throws GuzzleException */ diff --git a/app/Models/Article.php b/app/Models/Article.php index 7871cac3..0e33ed0f 100644 --- a/app/Models/Article.php +++ b/app/Models/Article.php @@ -40,8 +40,6 @@ class Article extends Model /** * Return the sluggable configuration array for this model. - * - * @return 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. - * - * @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 { diff --git a/app/Models/Media.php b/app/Models/Media.php index c660225c..de88e9b8 100644 --- a/app/Models/Media.php +++ b/app/Models/Media.php @@ -30,8 +30,6 @@ class Media extends Model /** * Get the note that owns this media. - * - * @return BelongsTo */ public function note(): BelongsTo { diff --git a/app/Models/MicropubClient.php b/app/Models/MicropubClient.php index 5a530c19..bb8bdfcf 100644 --- a/app/Models/MicropubClient.php +++ b/app/Models/MicropubClient.php @@ -28,8 +28,6 @@ class MicropubClient extends Model /** * Define the relationship with notes. - * - * @return HasMany */ public function notes(): HasMany { diff --git a/app/Models/Note.php b/app/Models/Note.php index 4e1e9e3a..9326207e 100644 --- a/app/Models/Note.php +++ b/app/Models/Note.php @@ -51,8 +51,6 @@ class Note extends Model /** * Set our contacts variable to null. - * - * @param array $attributes */ public function __construct(array $attributes = []) { @@ -87,8 +85,6 @@ class Note extends Model /** * Define the relationship with tags. - * - * @return BelongsToMany */ public function tags(): BelongsToMany { @@ -97,8 +93,6 @@ class Note extends Model /** * Define the relationship with clients. - * - * @return BelongsTo */ public function client(): BelongsTo { @@ -107,8 +101,6 @@ class Note extends Model /** * Define the relationship with webmentions. - * - * @return MorphMany */ public function webmentions(): MorphMany { @@ -117,8 +109,6 @@ class Note extends Model /** * Define the relationship with places. - * - * @return BelongsTo */ public function place(): BelongsTo { @@ -127,8 +117,6 @@ class Note extends Model /** * Define the relationship with media. - * - * @return HasMany */ public function media(): HasMany { @@ -137,8 +125,6 @@ class Note extends Model /** * Set the attributes to be indexed for searching with Scout. - * - * @return array */ public function toSearchableArray(): array { @@ -149,8 +135,6 @@ class Note extends Model /** * Normalize the note to Unicode FORM C. - * - * @param string|null $value */ public function setNoteAttribute(?string $value): void { @@ -165,9 +149,6 @@ class Note extends Model /** * Pre-process notes for web-view. - * - * @param string|null $value - * @return string|null */ public function getNoteAttribute(?string $value): ?string { @@ -189,8 +170,6 @@ class Note extends Model * Provide the content_html for JSON feed. * * In particular, we want to include media links such as images. - * - * @return string */ public function getContentAttribute(): string { @@ -218,8 +197,6 @@ class Note extends Model /** * Generate the NewBase60 ID from primary ID. - * - * @return string */ public function getNb60idAttribute(): string { @@ -229,8 +206,6 @@ class Note extends Model /** * The Long URL for a note. - * - * @return string */ public function getLongurlAttribute(): string { @@ -239,8 +214,6 @@ class Note extends Model /** * The Short URL for a note. - * - * @return string */ public function getShorturlAttribute(): string { @@ -249,8 +222,6 @@ class Note extends Model /** * Get the ISO8601 value for mf2. - * - * @return string */ public function getIso8601Attribute(): string { @@ -259,8 +230,6 @@ class Note extends Model /** * Get the ISO8601 value for mf2. - * - * @return string */ public function getHumandiffAttribute(): string { @@ -269,8 +238,6 @@ class Note extends Model /** * Get the publish date value for RSS feeds. - * - * @return string */ public function getPubdateAttribute(): string { @@ -279,8 +246,6 @@ class Note extends Model /** * Get the latitude value. - * - * @return float|null */ public function getLatitudeAttribute(): ?float { @@ -299,8 +264,6 @@ class Note extends Model /** * Get the longitude value. - * - * @return float|null */ 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 * location, or is derived from the associated place. - * - * @return string|null */ 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. - * - * @return object|null */ public function getTwitterAttribute(): ?object { @@ -379,7 +338,6 @@ class Note extends Model * * That is we swap the contacts names for their known Twitter handles. * - * @return string * * @throws TwitterContentException */ @@ -424,10 +382,6 @@ class Note extends Model /** * 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 { @@ -441,9 +395,6 @@ class Note extends Model * 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 * as such. - * - * @param string $text - * @return string */ private function makeHCards(string $text): string { @@ -475,8 +426,6 @@ class Note extends Model /** * Get the value of the `contacts` property. - * - * @return array */ public function getContacts(): array { @@ -489,8 +438,6 @@ class Note extends Model /** * Process the note and save the contacts to the `contacts` property. - * - * @return void */ public function setContacts(): void { @@ -512,9 +459,6 @@ class Note extends Model * Given a string and section, finds all hashtags matching * `#[\-_a-zA-Z0-9]+` and wraps them in an `a` element with * `rel=tag` set and a `href` of 'section/tagged/' + tagname without the #. - * - * @param string $note - * @return string */ public function autoLinkHashtag(string $note): string { @@ -531,9 +475,6 @@ class Note extends Model /** * Pass a note through the commonmark library. - * - * @param string $note - * @return 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. - * - * @param float $latitude - * @param float $longitude - * @return string */ public function reverseGeoCode(float $latitude, float $longitude): string { diff --git a/app/Models/Place.php b/app/Models/Place.php index b1cc5cd4..b49cf87d 100644 --- a/app/Models/Place.php +++ b/app/Models/Place.php @@ -46,8 +46,6 @@ class Place extends Model /** * Return the sluggable configuration array for this model. - * - * @return array */ public function sluggable(): array { @@ -71,11 +69,6 @@ class Place extends Model /** * 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 { @@ -94,10 +87,6 @@ class Place extends Model /** * Select places based on a URL. - * - * @param Builder $query - * @param string $url - * @return 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. - * - * @param string $url - * @return string */ private function getType(string $url): string { diff --git a/app/Models/Tag.php b/app/Models/Tag.php index 0e4c2f93..c573c7c6 100644 --- a/app/Models/Tag.php +++ b/app/Models/Tag.php @@ -51,9 +51,6 @@ class Tag extends Model /** * This method actually normalizes a tag. That means lowercase-ing and * removing fancy diatric characters. - * - * @param string $tag - * @return string */ public static function normalize(string $tag): string { diff --git a/app/Models/WebMention.php b/app/Models/WebMention.php index 37c4427f..3464e93a 100644 --- a/app/Models/WebMention.php +++ b/app/Models/WebMention.php @@ -121,9 +121,6 @@ class WebMention extends Model /** * Create the photo link. - * - * @param string $url - * @return string */ public function createPhotoLink(string $url): string { diff --git a/app/Observers/NoteObserver.php b/app/Observers/NoteObserver.php index 3aa06f28..07033cd0 100644 --- a/app/Observers/NoteObserver.php +++ b/app/Observers/NoteObserver.php @@ -13,8 +13,6 @@ class NoteObserver { /** * Listen to the Note created event. - * - * @param Note $note */ public function created(Note $note) { @@ -37,8 +35,6 @@ class NoteObserver /** * Listen to the Note updated event. - * - * @param Note $note */ public function updated(Note $note) { @@ -63,8 +59,6 @@ class NoteObserver /** * Listen to the Note deleting event. - * - * @param Note $note */ public function deleting(Note $note) { @@ -73,9 +67,6 @@ class NoteObserver /** * Retrieve the tags from a note’s text, tag for form #tag. - * - * @param string $note - * @return Collection */ private function getTagsFromNote(string $note): Collection { diff --git a/app/Services/ActivityStreamsService.php b/app/Services/ActivityStreamsService.php index d7d9f660..db7a1917 100644 --- a/app/Services/ActivityStreamsService.php +++ b/app/Services/ActivityStreamsService.php @@ -29,7 +29,6 @@ class ActivityStreamsService /** * Return the relevant data to an AS2.0 request for a particular note. * - * @param \App\Models\Note $note * @return \Illuminate\Http\Response */ public function singleNoteResponse(Note $note) diff --git a/app/Services/BookmarkService.php b/app/Services/BookmarkService.php index a16db375..9078153e 100644 --- a/app/Services/BookmarkService.php +++ b/app/Services/BookmarkService.php @@ -21,8 +21,6 @@ class BookmarkService extends Service * Create a new Bookmark. * * @param array $request Data from request()->all() - * @param string|null $client - * @return 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. * - * @param string $url - * @return string * * @throws InternetArchiveException */ diff --git a/app/Services/LikeService.php b/app/Services/LikeService.php index 99840838..b1168c27 100644 --- a/app/Services/LikeService.php +++ b/app/Services/LikeService.php @@ -13,7 +13,6 @@ class LikeService extends Service /** * Create a new Like. * - * @param array $request * @return Like $like */ public function create(array $request, ?string $client = null): Like diff --git a/app/Services/Micropub/HCardService.php b/app/Services/Micropub/HCardService.php index 5b7aa330..1685351c 100644 --- a/app/Services/Micropub/HCardService.php +++ b/app/Services/Micropub/HCardService.php @@ -13,7 +13,6 @@ class HCardService * Create a Place from h-card data, return the URL. * * @param array $request Data from request()->all() - * @return string */ public function process(array $request): string { diff --git a/app/Services/Micropub/HEntryService.php b/app/Services/Micropub/HEntryService.php index 9488c949..9011540c 100644 --- a/app/Services/Micropub/HEntryService.php +++ b/app/Services/Micropub/HEntryService.php @@ -17,7 +17,6 @@ class HEntryService * * @param array $request Data from request()->all() * @param string|null $client The micropub client that made the request - * @return string|null */ public function process(array $request, ?string $client = null): ?string { diff --git a/app/Services/NoteService.php b/app/Services/NoteService.php index 049ae8c6..4119c38b 100644 --- a/app/Services/NoteService.php +++ b/app/Services/NoteService.php @@ -20,8 +20,6 @@ class NoteService extends Service * Create a new note. * * @param array $request Data from request()->all() - * @param string|null $client - * @return 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. * * @param array $request Data from request()->all() - * @return string|null */ 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. * * @param array $request Data from request()->all() - * @return string|null */ 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. * * @param array $request Data from request()->all() - * @return Place|null */ 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. * * @param array $request Data from request()->all() - * @return string|null */ 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. * * @param array $request Data from request()->all() - * @return 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. * * @param array $request Data from request()->all() - * @return 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. * * @param array $request Data from request()->all() - * @return string|null */ private function getInstagramUrl(array $request): ?string { diff --git a/app/Services/PlaceService.php b/app/Services/PlaceService.php index fcec62dc..3b2de225 100644 --- a/app/Services/PlaceService.php +++ b/app/Services/PlaceService.php @@ -11,9 +11,6 @@ class PlaceService { /** * Create a place. - * - * @param array $data - * @return 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. * * @param array - * @return Place */ public function createPlaceFromCheckin(array $checkin): Place { diff --git a/composer.lock b/composer.lock index 64eef6cd..ec2bafb0 100644 --- a/composer.lock +++ b/composer.lock @@ -8886,16 +8886,16 @@ }, { "name": "laravel/pint", - "version": "v1.4.1", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "80ddf23a5d97825e79bb1018eebb6f3f985d4fa8" + "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/80ddf23a5d97825e79bb1018eebb6f3f985d4fa8", - "reference": "80ddf23a5d97825e79bb1018eebb6f3f985d4fa8", + "url": "https://api.github.com/repos/laravel/pint/zipball/e0a8cef58b74662f27355be9cdea0e726bbac362", + "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362", "shasum": "" }, "require": { @@ -8906,13 +8906,13 @@ "php": "^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.14", - "illuminate/view": "^9.32.0", + "friendsofphp/php-cs-fixer": "^3.14.4", + "illuminate/view": "^9.51.0", "laravel-zero/framework": "^9.2.0", "mockery/mockery": "^1.5.1", - "nunomaduro/larastan": "^2.2.0", - "nunomaduro/termwind": "^1.14.0", - "pestphp/pest": "^1.22.1" + "nunomaduro/larastan": "^2.4.0", + "nunomaduro/termwind": "^1.15.1", + "pestphp/pest": "^1.22.4" }, "bin": [ "builds/pint" @@ -8948,7 +8948,7 @@ "issues": "https://github.com/laravel/pint/issues", "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", diff --git a/tests/Feature/HorizonTest.php b/tests/Feature/HorizonTest.php index 45df6288..e1f5124f 100644 --- a/tests/Feature/HorizonTest.php +++ b/tests/Feature/HorizonTest.php @@ -11,8 +11,6 @@ class HorizonTest extends TestCase * Horizon has its own test suite, here we just test it has been installed successfully. * * @test - * - * @return void */ public function horizonIsInstalled(): void { diff --git a/tests/Unit/HelpersTest.php b/tests/Unit/HelpersTest.php index c4eedbcf..5ad6affd 100644 --- a/tests/Unit/HelpersTest.php +++ b/tests/Unit/HelpersTest.php @@ -19,9 +19,6 @@ class HelpersTest extends TestCase * @test * * @dataProvider urlProvider - * - * @param string $input - * @param string $output */ public function normalizeUrlOnDataProvider(string $input, string $output): void { diff --git a/tests/Unit/NotesTest.php b/tests/Unit/NotesTest.php index 841841ff..965fe105 100644 --- a/tests/Unit/NotesTest.php +++ b/tests/Unit/NotesTest.php @@ -27,8 +27,6 @@ class NotesTest extends TestCase * relevant sub-methods. * * @test - * - * @return void */ public function getNoteAttributeMethodCallsSubMethods(): void { @@ -44,8 +42,6 @@ class NotesTest extends TestCase * Look for a default image in the contact’s h-card for the makeHCards method. * * @test - * - * @return void */ public function defaultImageUsedAsFallbackInMakehcardsMethod(): void { @@ -68,8 +64,6 @@ class NotesTest extends TestCase * Look for a specific profile image in the contact’s h-card. * * @test - * - * @return void */ public function specificProfileImageUsedInMakehcardsMethod(): void { @@ -98,8 +92,6 @@ class NotesTest extends TestCase * Look for twitter URL when there’s no associated contact. * * @test - * - * @return void */ public function twitterLinkIsCreatedWhenNoContactFound(): void { diff --git a/tests/Unit/TagsTest.php b/tests/Unit/TagsTest.php index 0807946e..87c3ef9f 100644 --- a/tests/Unit/TagsTest.php +++ b/tests/Unit/TagsTest.php @@ -36,9 +36,6 @@ class TagsTest extends TestCase * @test * * @dataProvider tagsProvider - * - * @param string $input - * @param string $expected */ public function canNormalize(string $input, string $expected): void {