fix style

This commit is contained in:
shibafu 2019-03-14 00:05:11 +09:00
parent be700ab81b
commit 27fc5ee6e8
5 changed files with 8 additions and 4 deletions

View File

@ -41,11 +41,13 @@ class DemoteUser extends Command
$user = User::where('name', $this->argument('username'))->first();
if ($user === null) {
$this->error('No user with such username');
return 1;
}
if (!$user->is_admin) {
$this->info('@' . $user->name . ' is already an user.');
return 0;
}

View File

@ -41,11 +41,13 @@ class PromoteUser extends Command
$user = User::where('name', $this->argument('username'))->first();
if ($user === null) {
$this->error('No user with such username');
return 1;
}
if ($user->is_admin) {
$this->info('@' . $user->name . ' is already an administrator.');
return 0;
}

View File

@ -2,8 +2,8 @@
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class DashboardController extends Controller
{

View File

@ -2,9 +2,9 @@
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Information;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rule;

View File

@ -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 AddIsAdminToUsers extends Migration
{