Merge pull request #45 from jonnybarnes/analysis-8PoNm9
Apply fixes from StyleCI
This commit is contained in:
commit
241ef0bd7e
9 changed files with 9 additions and 12 deletions
|
@ -6,7 +6,7 @@ use App\Article;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
|
||||||
class ArticlesAdminController extends Controller
|
class ArticlesConrtoller extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* List the articles that can be edited.
|
* List the articles that can be edited.
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace App\Http\Controllers\Admin;
|
||||||
use App\MicropubClient;
|
use App\MicropubClient;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
|
||||||
class ClientsAdminController extends Controller
|
class ClientsController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Show a list of known clients.
|
* Show a list of known clients.
|
||||||
|
|
|
@ -8,7 +8,7 @@ use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use Illuminate\Filesystem\Filesystem;
|
use Illuminate\Filesystem\Filesystem;
|
||||||
|
|
||||||
class ContactsAdminController extends Controller
|
class ContactsController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* List the currect contacts that can be edited.
|
* List the currect contacts that can be edited.
|
||||||
|
|
|
@ -9,7 +9,7 @@ use App\Jobs\SendWebMentions;
|
||||||
use App\Services\NoteService;
|
use App\Services\NoteService;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
|
||||||
class NotesAdminController extends Controller
|
class NotesController extends Controller
|
||||||
{
|
{
|
||||||
protected $noteService;
|
protected $noteService;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ use App\Services\PlaceService;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use Phaza\LaravelPostgis\Geometries\Point;
|
use Phaza\LaravelPostgis\Geometries\Point;
|
||||||
|
|
||||||
class PlacesAdminController extends Controller
|
class PlacesController extends Controller
|
||||||
{
|
{
|
||||||
protected $placeService;
|
protected $placeService;
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ class IndieAuthService
|
||||||
{
|
{
|
||||||
$this->client = new Client();
|
$this->client = new Client();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a domain, determing the assocaited authorization endpoint,
|
* Given a domain, determing the assocaited authorization endpoint,
|
||||||
* if one exists.
|
* if one exists.
|
||||||
|
@ -25,7 +26,7 @@ class IndieAuthService
|
||||||
{
|
{
|
||||||
$endpoint = $this->client->discoverAuthorizationEndpoint($this->client->normalizeMeURL($domain));
|
$endpoint = $this->client->discoverAuthorizationEndpoint($this->client->normalizeMeURL($domain));
|
||||||
if ($endpoint === false) {
|
if ($endpoint === false) {
|
||||||
return null;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $endpoint;
|
return $endpoint;
|
||||||
|
|
|
@ -6,7 +6,6 @@ namespace App\Services;
|
||||||
|
|
||||||
use App\Note;
|
use App\Note;
|
||||||
use App\Place;
|
use App\Place;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Jobs\SendWebMentions;
|
use App\Jobs\SendWebMentions;
|
||||||
use App\Jobs\SyndicateToTwitter;
|
use App\Jobs\SyndicateToTwitter;
|
||||||
use App\Jobs\SyndicateToFacebook;
|
use App\Jobs\SyndicateToFacebook;
|
||||||
|
@ -65,7 +64,7 @@ class NoteService
|
||||||
if (in_array('twitter', $data['syndicate'])) {
|
if (in_array('twitter', $data['syndicate'])) {
|
||||||
dispatch(new SyndicateToTwitter($note));
|
dispatch(new SyndicateToTwitter($note));
|
||||||
}
|
}
|
||||||
if (in_arraY('facebook', $data['syndicate'])) {
|
if (in_array('facebook', $data['syndicate'])) {
|
||||||
dispatch(new SyndicateToFacebook($note));
|
dispatch(new SyndicateToFacebook($note));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ declare(strict_types=1);
|
||||||
namespace App\Services;
|
namespace App\Services;
|
||||||
|
|
||||||
use App\Place;
|
use App\Place;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use Phaza\LaravelPostgis\Geometries\Point;
|
use Phaza\LaravelPostgis\Geometries\Point;
|
||||||
|
|
||||||
class PlaceService
|
class PlaceService
|
||||||
|
|
|
@ -45,13 +45,11 @@ class TokenService
|
||||||
try {
|
try {
|
||||||
$token = (new Parser())->parse((string) $token);
|
$token = (new Parser())->parse((string) $token);
|
||||||
} catch (InvalidArgumentException | RuntimeException $e) {
|
} catch (InvalidArgumentException | RuntimeException $e) {
|
||||||
return null;
|
return;
|
||||||
}
|
}
|
||||||
if ($token->verify($signer, config('app.key'))) {
|
if ($token->verify($signer, config('app.key'))) {
|
||||||
//signuture valid
|
//signuture valid
|
||||||
return $token;
|
return $token;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue