Skip to content

Commit

Permalink
Merge pull request themsaid#252 from themsaid/analysis-KZ3ex9
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
themsaid committed May 17, 2020
2 parents acad018 + 01d517f commit 90cc3a8
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 28 deletions.
9 changes: 4 additions & 5 deletions src/Console/MigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Wink\Console;

use Wink\WinkAuthor;
use Illuminate\Support\Str;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use Wink\WinkAuthor;

class MigrateCommand extends Command
{
Expand Down Expand Up @@ -41,9 +41,8 @@ public function handle()
]);

if ($shouldCreateNewAuthor) {

$email = !$this->argument('email') ? '[email protected]' : $this->argument('email');
$password = !$this->argument('password') ? Str::random() : $this->argument('password');
$email = ! $this->argument('email') ? '[email protected]' : $this->argument('email');
$password = ! $this->argument('password') ? Str::random() : $this->argument('password');

WinkAuthor::create([
'id' => (string) Str::uuid(),
Expand Down
8 changes: 4 additions & 4 deletions src/Http/Controllers/ForgotPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Wink\Http\Controllers;

use Throwable;
use Wink\WinkAuthor;
use Illuminate\Support\Str;
use Wink\Mail\ResetPasswordEmail;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Str;
use Throwable;
use Wink\Mail\ResetPasswordEmail;
use Wink\WinkAuthor;

class ForgotPasswordController extends Controller
{
Expand Down
6 changes: 3 additions & 3 deletions src/Http/Controllers/ImageUploadsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class ImageUploadsController
public function upload()
{
$path = request()->image->store(config('wink.storage_path'), [
'disk' => config('wink.storage_disk'),
'visibility' => 'public',
]
'disk' => config('wink.storage_disk'),
'visibility' => 'public',
]
);

return response()->json([
Expand Down
6 changes: 3 additions & 3 deletions src/Http/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Wink\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class LoginController
{
Expand Down Expand Up @@ -43,7 +43,7 @@ public function logout(Request $request)
*/
public function redirectPath()
{
return '/'.config('wink.path');;
return '/'.config('wink.path');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/PagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Wink\Http\Controllers;

use Wink\WinkPage;
use Illuminate\Support\Str;
use Illuminate\Validation\Rule;
use Wink\Http\Resources\PagesResource;
use Wink\WinkPage;

class PagesController
{
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/PostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Wink\Http\Controllers;

use Wink\WinkTag;
use Wink\WinkPost;
use Illuminate\Support\Str;
use Illuminate\Validation\Rule;
use Wink\Http\Resources\PostsResource;
use Wink\WinkPost;
use Wink\WinkTag;

class PostsController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/TagsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Wink\Http\Controllers;

use Wink\WinkTag;
use Illuminate\Support\Str;
use Illuminate\Validation\Rule;
use Wink\Http\Resources\TagsResource;
use Wink\WinkTag;

class TagsController
{
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/TeamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Wink\Http\Controllers;

use Wink\WinkAuthor;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
use Illuminate\Validation\Rule;
use Illuminate\Support\Facades\Hash;
use Wink\Http\Resources\TeamResource;
use Wink\WinkAuthor;

class TeamController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Wink\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Contracts\Auth\Factory as Auth;
use Illuminate\Http\Request;

class Authenticate
{
Expand Down
4 changes: 2 additions & 2 deletions src/Migrations/2018_10_30_000000_create_tables.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTables extends Migration
{
Expand Down
4 changes: 2 additions & 2 deletions src/Migrations/2018_11_16_000000_add_meta_fields.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddMetaFields extends Migration
{
Expand Down
4 changes: 2 additions & 2 deletions src/WinkServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Wink;

use Illuminate\Support\Facades\Route;
use Wink\Http\Middleware\Authenticate;
use Illuminate\Support\ServiceProvider;
use Wink\Http\Middleware\Authenticate;

class WinkServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -125,7 +125,7 @@ protected function subdomain($subdomain)

return vsprintf('%s.%s', [
config('wink.subdomain'),
parse_url(config('app.url'), PHP_URL_HOST)
parse_url(config('app.url'), PHP_URL_HOST),
]);
}
}

0 comments on commit 90cc3a8

Please sign in to comment.