@@ -13,7 +13,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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'); |
@@ -19,7 +19,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -13,7 +13,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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') |
@@ -20,10 +20,10 @@ discard block |
||
| 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 |
||
| 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 |
@@ -27,7 +27,7 @@ |
||
| 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 | }) |
@@ -20,18 +20,18 @@ discard block |
||
| 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 |
||
| 97 | 97 | */ |
| 98 | 98 | protected function filename(): string |
| 99 | 99 | { |
| 100 | - return 'CorporationQuestion_' . date('YmdHis'); |
|
| 100 | + return 'CorporationQuestion_'.date('YmdHis'); |
|
| 101 | 101 | } |
| 102 | 102 | } |