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()) { if ($request->expectsJson()) {
return response()->json(['error' => 'Unauthenticated.'], 401); return response()->json(['error' => 'Unauthenticated.'], 401);
} }
return redirect()->guest('login'); return redirect()->guest('login');
} }

View file

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

View file

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

View file

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

View file

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

View file

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