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

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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));
} }

View file

@ -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

View file

@ -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;
} }
} }