StyleCI fixes

This commit is contained in:
Jonny Barnes 2016-09-06 16:44:15 +01:00
parent 577fae0540
commit 1af9dd35ab
6 changed files with 3 additions and 5 deletions

View file

@ -60,6 +60,7 @@ class Handler extends ExceptionHandler
if ($request->expectsJson()) {
return response()->json(['error' => 'Unauthenticated.'], 401);
}
return redirect()->guest('login');
}

View file

@ -102,8 +102,6 @@ class ProcessWebMention extends Job implements ShouldQueue
$webmention->type = $type;
$webmention->mf2 = json_encode($microformats);
$webmention->save();
return;
}
/**

View file

@ -2,7 +2,6 @@
namespace App\Jobs;
use App\Jobs\Job;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use GuzzleHttp\Exception\RequestException;

View file

@ -128,6 +128,7 @@ class SendWebMentions extends Job implements ShouldQueue
if ($endpoint->getScheme() !== null) {
return (string) $endpoint;
}
return (string) \GuzzleHttp\Psr7\Uri::resolve(
\GuzzleHttp\Psr7\uri_for($base),
$endpoint

View file

@ -2,7 +2,6 @@
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider

View file

@ -72,7 +72,7 @@ class RouteServiceProvider extends ServiceProvider
Route::group([
'middleware' => 'api',
'namespace' => $this->namespace,
'prefix' => 'api'
'prefix' => 'api',
], function ($router) {
require base_path('routes/api.php');
});