Apply fixes from StyleCI

This commit is contained in:
Jonny Barnes 2017-03-01 21:01:00 +00:00 committed by StyleCI Bot
parent fe8f871e3a
commit 984f3c067b
9 changed files with 9 additions and 12 deletions

View file

@ -14,6 +14,7 @@ class IndieAuthService
{
$this->client = new Client();
}
/**
* Given a domain, determing the assocaited authorization endpoint,
* if one exists.
@ -25,7 +26,7 @@ class IndieAuthService
{
$endpoint = $this->client->discoverAuthorizationEndpoint($this->client->normalizeMeURL($domain));
if ($endpoint === false) {
return null;
return;
}
return $endpoint;

View file

@ -6,7 +6,6 @@ namespace App\Services;
use App\Note;
use App\Place;
use Illuminate\Http\Request;
use App\Jobs\SendWebMentions;
use App\Jobs\SyndicateToTwitter;
use App\Jobs\SyndicateToFacebook;
@ -65,7 +64,7 @@ class NoteService
if (in_array('twitter', $data['syndicate'])) {
dispatch(new SyndicateToTwitter($note));
}
if (in_arraY('facebook', $data['syndicate'])) {
if (in_array('facebook', $data['syndicate'])) {
dispatch(new SyndicateToFacebook($note));
}

View file

@ -5,7 +5,6 @@ declare(strict_types=1);
namespace App\Services;
use App\Place;
use Illuminate\Http\Request;
use Phaza\LaravelPostgis\Geometries\Point;
class PlaceService

View file

@ -45,13 +45,11 @@ class TokenService
try {
$token = (new Parser())->parse((string) $token);
} catch (InvalidArgumentException | RuntimeException $e) {
return null;
return;
}
if ($token->verify($signer, config('app.key'))) {
//signuture valid
return $token;
}
return null;
}
}