Fix StyleCI reported issues

This commit is contained in:
Jonny Barnes 2016-06-23 15:58:45 +01:00
parent 7ffe9437a3
commit 3a7f8fb647
4 changed files with 4 additions and 3 deletions

View file

@ -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(),

View file

@ -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.
* *

View file

@ -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,
] ],
]); ]);
} }
} }

View file

@ -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
{ {