diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 7380d7b5..2ad2cd9a 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -80,6 +80,7 @@ class Handler extends ExceptionHandler $whoops->pushHandler($handler); $flattened = FlattenException::create($exc); + return new \Illuminate\Http\Response( $whoops->handleException($exc), $flattened->getStatusCode(), diff --git a/app/Http/Controllers/NotesAdminController.php b/app/Http/Controllers/NotesAdminController.php index ca4c3741..c8841d4b 100644 --- a/app/Http/Controllers/NotesAdminController.php +++ b/app/Http/Controllers/NotesAdminController.php @@ -15,6 +15,7 @@ class NotesAdminController extends Controller { $this->noteService = $noteService ?? new NoteService(); } + /** * Show the form to make a new note. * diff --git a/app/Jobs/SendWebMentions.php b/app/Jobs/SendWebMentions.php index 3052247a..1bc2113a 100644 --- a/app/Jobs/SendWebMentions.php +++ b/app/Jobs/SendWebMentions.php @@ -45,8 +45,8 @@ class SendWebMentions extends Job implements ShouldQueue $this->guzzle->post($endpoint, [ 'form_params' => [ 'source' => $this->note->longurl, - 'target' => $url - ] + 'target' => $url, + ], ]); } } diff --git a/app/Services/NoteService.php b/app/Services/NoteService.php index a1c36905..defa5330 100644 --- a/app/Services/NoteService.php +++ b/app/Services/NoteService.php @@ -8,7 +8,6 @@ use Illuminate\Http\Request; use App\Jobs\SendWebMentions; use App\Jobs\SyndicateToTwitter; use Illuminate\Foundation\Bus\DispatchesJobs; -use App\Http\Controllers\WebMentionsController; class NoteService {