Completed
Push — master ( fb748e...d8cd58 )
by Alex
17s queued 14s
created
src/database/migrations/2021_12_14_000000_seat_hr_initial_deployment.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up(): void
15 15
     {
16
-        Schema::create('seat_hr_profiles', function (Blueprint $table): void {
16
+        Schema::create('seat_hr_profiles', function(Blueprint $table): void {
17 17
             $table->bigIncrements('id');
18 18
 
19 19
             $table->unsignedInteger('user_id');
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             $table->timestamps();
28 28
         });
29 29
 
30
-        Schema::create('seat_hr_corporations', function (Blueprint $table): void {
30
+        Schema::create('seat_hr_corporations', function(Blueprint $table): void {
31 31
             $table->bigIncrements('id');
32 32
 
33 33
             $table->bigInteger('corporation_id');
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             $table->timestamps();
44 44
         });
45 45
 
46
-        Schema::create('seat_hr_applications', function (Blueprint $table): void {
46
+        Schema::create('seat_hr_applications', function(Blueprint $table): void {
47 47
             $table->bigIncrements('id');
48 48
 
49 49
             $table->unsignedBigInteger('corporation_id');
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $table->timestamps();
64 64
         });
65 65
 
66
-        Schema::create('seat_hr_statuses', function (Blueprint $table): void {
66
+        Schema::create('seat_hr_statuses', function(Blueprint $table): void {
67 67
             $table->bigIncrements('id');
68 68
 
69 69
             $table->string('name');
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
         });
75 75
 
76 76
         \Illuminate\Support\Facades\Artisan::call('db:seed', [
77
-            '--class' => '\\' . \Cryocaustik\SeatHr\database\seeders\SeatHrStatusSeeder::class,
77
+            '--class' => '\\'.\Cryocaustik\SeatHr\database\seeders\SeatHrStatusSeeder::class,
78 78
         ]);
79 79
 
80
-        Schema::create('seat_hr_application_statuses', function (Blueprint $table): void {
80
+        Schema::create('seat_hr_application_statuses', function(Blueprint $table): void {
81 81
             $table->bigIncrements('id');
82 82
 
83 83
             $table->unsignedBigInteger('application_id');
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $table->timestamps();
110 110
         });
111 111
 
112
-        Schema::create('seat_hr_questions', function (Blueprint $table): void {
112
+        Schema::create('seat_hr_questions', function(Blueprint $table): void {
113 113
             $table->bigIncrements('id');
114 114
 
115 115
             $table->string('name');
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             $table->timestamps();
120 120
         });
121 121
 
122
-        Schema::create('seat_hr_corporation_questions', function (Blueprint $table): void {
122
+        Schema::create('seat_hr_corporation_questions', function(Blueprint $table): void {
123 123
             $table->bigIncrements('id');
124 124
 
125 125
             $table->unsignedBigInteger('corporation_id');
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             $table->timestamps();
140 140
         });
141 141
 
142
-        Schema::create('seat_hr_answers', function (Blueprint $table): void {
142
+        Schema::create('seat_hr_answers', function(Blueprint $table): void {
143 143
             $table->bigIncrements('id');
144 144
 
145 145
             $table->unsignedBigInteger('application_id');
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             $table->timestamps();
160 160
         });
161 161
 
162
-        Schema::create('seat_hr_notes', function (Blueprint $table): void {
162
+        Schema::create('seat_hr_notes', function(Blueprint $table): void {
163 163
             $table->bigIncrements('id');
164 164
 
165 165
             $table->unsignedBigInteger('profile_id');
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             $table->timestamps();
181 181
         });
182 182
 
183
-        Schema::create('seat_hr_blacklists', function (Blueprint $table): void {
183
+        Schema::create('seat_hr_blacklists', function(Blueprint $table): void {
184 184
             $table->bigIncrements('id');
185 185
 
186 186
             $table->unsignedBigInteger('profile_id');
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
             $table->timestamps();
203 203
         });
204 204
 
205
-        Schema::create('seat_hr_kick_histories', function (Blueprint $table): void {
205
+        Schema::create('seat_hr_kick_histories', function(Blueprint $table): void {
206 206
             $table->bigIncrements('id');
207 207
 
208 208
             $table->unsignedBigInteger('profile_id');
Please login to merge, or discard this patch.
migrations/2025_01_27_000000_prevent_application_status_deletion.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function up(): void
21 21
     {
22
-        Schema::table('seat_hr_application_statuses', function (Blueprint $table): void {
22
+        Schema::table('seat_hr_application_statuses', function(Blueprint $table): void {
23 23
             $table->dropForeign('seat_hr_application_statuses_assigned_by_foreign');
24 24
             $table->dropForeign('seat_hr_application_statuses_assigned_to_foreign');
25 25
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function down(): void
44 44
     {
45
-        Schema::table('seat_hr_application_statuses', function (Blueprint $table): void {
45
+        Schema::table('seat_hr_application_statuses', function(Blueprint $table): void {
46 46
             $table->dropForeign('seat_hr_application_statuses_assigned_by_foreign');
47 47
             $table->dropForeign('seat_hr_application_statuses_assigned_to_foreign');
48 48
 
Please login to merge, or discard this patch.
src/database/migrations/2023_07_28_121142_allow_question_deletion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up(): void
15 15
     {
16
-        Schema::table('seat_hr_corporation_questions', function (Blueprint $table): void {
16
+        Schema::table('seat_hr_corporation_questions', function(Blueprint $table): void {
17 17
             $table->dropForeign('seat_hr_corporation_questions_question_id_foreign');
18 18
             $table->foreign('question_id')
19 19
                 ->references('id')
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
                 ->onDelete('cascade');
22 22
         });
23 23
 
24
-        Schema::table('seat_hr_answers', function (Blueprint $table): void {
24
+        Schema::table('seat_hr_answers', function(Blueprint $table): void {
25 25
             $table->dropForeign('seat_hr_answers_question_id_foreign');
26 26
             $table->foreign('question_id')
27 27
                 ->references('id')
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function down(): void
39 39
     {
40
-        Schema::table('seat_hr_corporation_questions', function (Blueprint $table): void {
40
+        Schema::table('seat_hr_corporation_questions', function(Blueprint $table): void {
41 41
             $table->dropForeign('seat_hr_corporation_questions_question_id_foreign');
42 42
             $table->foreign('question_id')
43 43
                 ->references('id')
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 ->onDelete('restrict');
46 46
         });
47 47
 
48
-        Schema::table('seat_hr_answers', function (Blueprint $table): void {
48
+        Schema::table('seat_hr_answers', function(Blueprint $table): void {
49 49
             $table->dropForeign('seat_hr_answers_question_id_foreign');
50 50
             $table->foreign('question_id')
51 51
                 ->references('id')
Please login to merge, or discard this patch.
src/SeatHrServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
         /*
21 21
          * Optional methods to load your package assets
22 22
          */
23
-        $this->loadRoutesFrom(__DIR__ . '/routes/web.php');
24
-        $this->loadViewsFrom(__DIR__ . '/resources/views', 'seat-hr');
23
+        $this->loadRoutesFrom(__DIR__.'/routes/web.php');
24
+        $this->loadViewsFrom(__DIR__.'/resources/views', 'seat-hr');
25 25
         $this->loadMigrationsFrom(__DIR__.'/database/migrations');
26
-        $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'seat-hr');
26
+        $this->loadTranslationsFrom(__DIR__.'/resources/lang', 'seat-hr');
27 27
         $this->loadViewComposers();
28 28
 
29 29
     }
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
     public function register(): void
35 35
     {
36 36
         // Automatically apply the package configuration
37
-        $this->mergeConfigFrom(__DIR__ . '/config/seat-hr.config.php', 'seat-hr');
38
-        $this->mergeConfigFrom(__DIR__ . '/config/seat-hr.sidebar.php', 'package.sidebar');
39
-        $this->mergeConfigFrom(__DIR__ . '/config/seat-hr.profile.menu.php', 'seat-hr.profile.menu');
40
-        $this->mergeConfigFrom(__DIR__ . '/config/seat-hr.review.menu.php', 'seat-hr.review.menu');
41
-        $this->mergeConfigFrom(__DIR__ . '/config/package.character.menu.php', 'package.character.menu');
42
-        $this->registerPermissions(__DIR__ . '/config/seat-hr.permissions.php', 'seat-hr');
37
+        $this->mergeConfigFrom(__DIR__.'/config/seat-hr.config.php', 'seat-hr');
38
+        $this->mergeConfigFrom(__DIR__.'/config/seat-hr.sidebar.php', 'package.sidebar');
39
+        $this->mergeConfigFrom(__DIR__.'/config/seat-hr.profile.menu.php', 'seat-hr.profile.menu');
40
+        $this->mergeConfigFrom(__DIR__.'/config/seat-hr.review.menu.php', 'seat-hr.review.menu');
41
+        $this->mergeConfigFrom(__DIR__.'/config/package.character.menu.php', 'package.character.menu');
42
+        $this->registerPermissions(__DIR__.'/config/seat-hr.permissions.php', 'seat-hr');
43 43
 
44 44
 
45 45
         // Register the main class to use with the facade
Please login to merge, or discard this patch.
src/models/SeatHrQuestion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         return $query
28 28
         ->leftJoin(
29 29
             'seat_hr_corporation_questions',
30
-            function ($join) use ($corporation_id) {
30
+            function($join) use ($corporation_id) {
31 31
                 $join->on('seat_hr_questions.id', '=', 'seat_hr_corporation_questions.question_id')
32 32
                     ->where('seat_hr_corporation_questions.corporation_id', $corporation_id);
33 33
             })
Please login to merge, or discard this patch.
src/http/datatables/CorporationQuestionDataTable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@  discard block
 block discarded – undo
20 20
     {
21 21
         return datatables()
22 22
             ->eloquent($query)
23
-            ->editColumn('active', function ($row) {
23
+            ->editColumn('active', function($row) {
24 24
                 $bool = $row->active;
25 25
                 return view('seat-hr::configuration.corporation_questions.partials.bool', ['bool' => $bool]);
26 26
             })
27
-            ->editColumn('corporation_question_active', function ($row) {
27
+            ->editColumn('corporation_question_active', function($row) {
28 28
                 // $bool = !is_null($row->id);
29 29
                 $bool = $row->corporation_question_active ?? false;
30 30
                 return view('seat-hr::configuration.corporation_questions.partials.bool', ['bool' => $bool]);
31 31
             })
32 32
             ->editColumn('type', fn($row): string => ucwords((string) $row->type))
33 33
             ->addColumn('action', fn($row) => view('seat-hr::configuration.corporation_questions.partials.actions', ['row' => $row]))
34
-            ->addColumn('debug', function ($row) use ($query) {
34
+            ->addColumn('debug', function($row) use ($query) {
35 35
                 return $query->toSql();
36 36
             });
37 37
     }
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function filename(): string
99 99
     {
100
-        return 'CorporationQuestion_' . date('YmdHis');
100
+        return 'CorporationQuestion_'.date('YmdHis');
101 101
     }
102 102
 }
Please login to merge, or discard this patch.