Passed
Push — master ( f4d609...4b3aab )
by Dennis
05:11
created
database/migrations/2024_07_27_212139_create_company_applies_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      */
11 11
     public function up(): void
12 12
     {
13
-        Schema::create('company_applies', function (Blueprint $table) {
13
+        Schema::create('company_applies', function(Blueprint $table) {
14 14
             $table->uuid('id')->comment('主键');
15 15
             $table->enum('type', ['company', 'person'])->default('company')->comment('资料类型');
16 16
             $table->string("id_number")->comment("企业注册号/身份证号码");
Please login to merge, or discard this patch.
database/migrations/2024_07_27_211940_create_companies_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function up(): void
13 13
     {
14
-        Schema::create('companies', function (Blueprint $table) {
14
+        Schema::create('companies', function(Blueprint $table) {
15 15
             $table->uuid('id')->comment('主键');
16 16
             $table->foreignUuid('company_apply_id')->nullable()->comment('注册申请表ID');
17 17
             $table->string('name')->comment('名称');
Please login to merge, or discard this patch.
database/migrations/2024_07_27_212557_create_company_profiles_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      */
11 11
     public function up(): void
12 12
     {
13
-        Schema::create('company_profiles', function (Blueprint $table) {
13
+        Schema::create('company_profiles', function(Blueprint $table) {
14 14
             $table->id();
15 15
             $table->foreignUuid('company_id')->constrained('companies')->comment("企业ID");
16 16
             $table->string("id_number")->comment("企业注册号/身份证号码");
Please login to merge, or discard this patch.
database/migrations/2024_07_27_212010_create_company_safes_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      */
11 11
     public function up(): void
12 12
     {
13
-        Schema::create('company_safes', function (Blueprint $table) {
13
+        Schema::create('company_safes', function(Blueprint $table) {
14 14
             $table->id('id')->comment("主键");
15 15
             $table->foreignUuid('company_account_id')->constrained('company_accounts')->nullable()->comment("账号ID");
16 16
             $table->enum('type', ['mobile', 'email'])->default('mobile')->comment("密保类型");
Please login to merge, or discard this patch.
database/migrations/2024_07_27_212009_create_company_accounts_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      */
11 11
     public function up(): void
12 12
     {
13
-        Schema::create('company_accounts', function (Blueprint $table) {
13
+        Schema::create('company_accounts', function(Blueprint $table) {
14 14
             $table->uuid('id')->primary()->comment("主键");
15 15
             $table->foreignUuid('company_id')->constrained('companies')->nullable()->comment("公司ID");
16 16
             $table->string("account")->unique()->comment("登录账号");
Please login to merge, or discard this patch.
database/migrations/2024_07_27_212037_create_company_logs_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      */
11 11
     public function up(): void
12 12
     {
13
-        Schema::create('company_logs', function (Blueprint $table) {
13
+        Schema::create('company_logs', function(Blueprint $table) {
14 14
             $table->id()->comment("主键");
15 15
             $table->foreignUuid("company_id")->constrained('companies')->nullable()->comment("公司ID");
16 16
             $table->foreignUuid("company_account_id")->nullable()->comment("账号ID");
Please login to merge, or discard this patch.
src/Models/CompanyProfile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     {
90 90
         if (!$medias = $this->getMedia(self::MEDIA_FILE))
91 91
             return [];
92
-        return $medias->map(function ($item) {
92
+        return $medias->map(function($item) {
93 93
             return [
94 94
                 'name' => $item->file_name,
95 95
                 'url' => $item->original_url,
Please login to merge, or discard this patch.
src/Observers/CompanyObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function creating(Company $company): void
15 15
     {
16
-        if(!$company->uid)
16
+        if (!$company->uid)
17 17
         {
18 18
             $company->uid = CompanyUtil::makeNewUid(Company::class);
19 19
         }
Please login to merge, or discard this patch.
src/Packages/CompanyLogWrite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         }
45 45
     }
46 46
 
47
-    private static function makeSql(Request $request, string|null $name = null, bool $status = false, CompanyAccount $account = null): array
47
+    private static function makeSql(Request $request, string | null $name = null, bool $status = false, CompanyAccount $account = null): array
48 48
     {
49 49
         $account = empty($account) ? optional($request->user()) : optional($account);
50 50
         return [
Please login to merge, or discard this patch.