Skip to content

Commit

Permalink
fix(php-cs-fix): php-cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Nov 26, 2024
1 parent e1b720c commit 6b3506c
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
<?php

use App\Model\Permission\Role;
use App\Model\Permission\User;
use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
declare(strict_types=1);
/**
* This file is part of MineAdmin.
*
* @link https://www.mineadmin.com
* @document https://doc.mineadmin.com
* @contact [email protected]
* @license https://github.com/mineadmin/MineAdmin/blob/master/LICENSE
*/
use Hyperf\Database\Migrations\Migration;
use Hyperf\DbConnection\Db;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Schema\Schema;

return new class extends Migration
{
return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('user_belongs_role', function (Blueprint $table) {
Schema::create('user_belongs_role', static function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('user_id')->comment('用户id');
$table->bigInteger('role_id')->comment('角色id');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
<?php

use App\Model\Permission\Menu;
use App\Model\Permission\Role;
use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
declare(strict_types=1);
/**
* This file is part of MineAdmin.
*
* @link https://www.mineadmin.com
* @document https://doc.mineadmin.com
* @contact [email protected]
* @license https://github.com/mineadmin/MineAdmin/blob/master/LICENSE
*/
use Hyperf\Database\Migrations\Migration;
use Hyperf\DbConnection\Db;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Schema\Schema;

return new class extends Migration
{
return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('role_belongs_menu', function (Blueprint $table) {
Schema::create('role_belongs_menu', static function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('role_id')->comment('角色id');
$table->bigInteger('menu_id')->comment('菜单id');
Expand Down
2 changes: 1 addition & 1 deletion databases/seeders/menu_seeder_20240926.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Hyperf\Database\Seeders\Seeder;
use Hyperf\DbConnection\Db;

class MenuSeeder20240926 extends Seeder
class menu_seeder_20240926 extends Seeder
{
public const BASE_DATA = [
'name' => '',
Expand Down
2 changes: 1 addition & 1 deletion databases/seeders/menu_update_20241029.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Hyperf\Database\Seeders\Seeder;
use Hyperf\DbConnection\Db;

class MenuUpdate20241029 extends Seeder
class menu_update_20241029 extends Seeder
{
public const BASE_DATA = [
'name' => '',
Expand Down
3 changes: 1 addition & 2 deletions databases/seeders/menu_update_20241031.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
* @license https://github.com/mineadmin/MineAdmin/blob/master/LICENSE
*/
use App\Model\Permission\Menu;
use App\Model\Permission\Meta;
use Hyperf\Database\Seeders\Seeder;
use Hyperf\DbConnection\Db;

class MenuUpdate20241031 extends Seeder
class menu_update_20241031 extends Seeder
{
public const BASE_DATA = [
'name' => '',
Expand Down
3 changes: 1 addition & 2 deletions databases/seeders/user_seeder_20240926.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
* @contact [email protected]
* @license https://github.com/mineadmin/MineAdmin/blob/master/LICENSE
*/

use App\Model\Permission\Role;
use App\Model\Permission\User;
use Hyperf\Database\Seeders\Seeder;

class UserSeeder20240926 extends Seeder
class user_seeder_20240926 extends Seeder
{
/**
* Run the database seeds.
Expand Down
6 changes: 0 additions & 6 deletions plugin/mine-admin/app-store/src/Service/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
use Mine\AppStore\Exception\PluginNotFoundException;
use Mine\AppStore\Plugin;
use Mine\AppStore\Service\Impl\AppStoreServiceImpl;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;

class Service
{
Expand All @@ -41,10 +39,6 @@ public function download(array $params): bool
return true;
}

/**
* @param array $params
* @return bool
*/
public function install(array $params): bool
{
if (empty($params['identifier']) || empty($params['version'])) {
Expand Down

0 comments on commit 6b3506c

Please sign in to comment.