Update Laravel Pint, fix files in codebase
This commit is contained in:
parent
672e724784
commit
6d6e719f52
64 changed files with 10 additions and 411 deletions
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue