Fix StyleCI reported issues
This commit is contained in:
parent
7ffe9437a3
commit
3a7f8fb647
4 changed files with 4 additions and 3 deletions
|
@ -80,6 +80,7 @@ class Handler extends ExceptionHandler
|
||||||
$whoops->pushHandler($handler);
|
$whoops->pushHandler($handler);
|
||||||
|
|
||||||
$flattened = FlattenException::create($exc);
|
$flattened = FlattenException::create($exc);
|
||||||
|
|
||||||
return new \Illuminate\Http\Response(
|
return new \Illuminate\Http\Response(
|
||||||
$whoops->handleException($exc),
|
$whoops->handleException($exc),
|
||||||
$flattened->getStatusCode(),
|
$flattened->getStatusCode(),
|
||||||
|
|
|
@ -15,6 +15,7 @@ class NotesAdminController extends Controller
|
||||||
{
|
{
|
||||||
$this->noteService = $noteService ?? new NoteService();
|
$this->noteService = $noteService ?? new NoteService();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the form to make a new note.
|
* Show the form to make a new note.
|
||||||
*
|
*
|
||||||
|
|
|
@ -45,8 +45,8 @@ class SendWebMentions extends Job implements ShouldQueue
|
||||||
$this->guzzle->post($endpoint, [
|
$this->guzzle->post($endpoint, [
|
||||||
'form_params' => [
|
'form_params' => [
|
||||||
'source' => $this->note->longurl,
|
'source' => $this->note->longurl,
|
||||||
'target' => $url
|
'target' => $url,
|
||||||
]
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@ use Illuminate\Http\Request;
|
||||||
use App\Jobs\SendWebMentions;
|
use App\Jobs\SendWebMentions;
|
||||||
use App\Jobs\SyndicateToTwitter;
|
use App\Jobs\SyndicateToTwitter;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use App\Http\Controllers\WebMentionsController;
|
|
||||||
|
|
||||||
class NoteService
|
class NoteService
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue