Apply fixes from StyleCI
This commit is contained in:
parent
fe8f871e3a
commit
984f3c067b
9 changed files with 9 additions and 12 deletions
|
@ -6,7 +6,7 @@ use App\Article;
|
|||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class ArticlesAdminController extends Controller
|
||||
class ArticlesConrtoller extends Controller
|
||||
{
|
||||
/**
|
||||
* List the articles that can be edited.
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace App\Http\Controllers\Admin;
|
|||
use App\MicropubClient;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class ClientsAdminController extends Controller
|
||||
class ClientsController extends Controller
|
||||
{
|
||||
/**
|
||||
* Show a list of known clients.
|
||||
|
|
|
@ -8,7 +8,7 @@ use Illuminate\Http\Request;
|
|||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
|
||||
class ContactsAdminController extends Controller
|
||||
class ContactsController extends Controller
|
||||
{
|
||||
/**
|
||||
* List the currect contacts that can be edited.
|
||||
|
|
|
@ -9,7 +9,7 @@ use App\Jobs\SendWebMentions;
|
|||
use App\Services\NoteService;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class NotesAdminController extends Controller
|
||||
class NotesController extends Controller
|
||||
{
|
||||
protected $noteService;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Services\PlaceService;
|
|||
use App\Http\Controllers\Controller;
|
||||
use Phaza\LaravelPostgis\Geometries\Point;
|
||||
|
||||
class PlacesAdminController extends Controller
|
||||
class PlacesController extends Controller
|
||||
{
|
||||
protected $placeService;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue