@@ -156,9 +156,9 @@ |
||
156 | 156 | |
157 | 157 | protected function packageRoutesFile(): string |
158 | 158 | { |
159 | - $packageRouteFile = $this->path . '/routes/' . $this->packageName . '.php'; |
|
159 | + $packageRouteFile = $this->path.'/routes/'.$this->packageName.'.php'; |
|
160 | 160 | |
161 | - $projectRouteFile = base_path('routes/' . $this->packageName . '.php'); |
|
161 | + $projectRouteFile = base_path('routes/'.$this->packageName.'.php'); |
|
162 | 162 | |
163 | 163 | $routeFilePathInUse = file_exists($projectRouteFile) |
164 | 164 | ? $projectRouteFile |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | public function up() |
15 | 15 | { |
16 | 16 | if (!Schema::hasTable('med_form_field_val_tab')) { |
17 | - Schema::create('med_form_field_val_tab', function (Blueprint $table) { |
|
17 | + Schema::create('med_form_field_val_tab', function(Blueprint $table) { |
|
18 | 18 | $table->id(); |
19 | 19 | $table->unsignedBigInteger('form_field_id')->nullable(); |
20 | 20 | $table->foreign('form_field_id') |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | if (!Schema::hasTable('med_form_field_val_tab_translations')) { |
30 | - Schema::create('med_form_field_val_tab_translations', function (Blueprint $table) { |
|
30 | + Schema::create('med_form_field_val_tab_translations', function(Blueprint $table) { |
|
31 | 31 | $table->id(); |
32 | 32 | $table->string('value'); |
33 | 33 | $table->text('text')->nullable(); |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | public function up() |
15 | 15 | { |
16 | 16 | if (!Schema::hasTable('med_form_fields')) { |
17 | - Schema::create('med_form_fields', function (Blueprint $table) { |
|
17 | + Schema::create('med_form_fields', function(Blueprint $table) { |
|
18 | 18 | $table->id(); |
19 | 19 | $table->string('key'); |
20 | 20 | $table->unsignedBigInteger('form_id')->nullable(); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | if (!Schema::hasTable('med_form_field_translations')) { |
33 | - Schema::create('med_form_field_translations', function (Blueprint $table) { |
|
33 | + Schema::create('med_form_field_translations', function(Blueprint $table) { |
|
34 | 34 | $table->id(); |
35 | 35 | $table->unsignedBigInteger('form_field_id')->nullable(); |
36 | 36 | $table->foreign('form_field_id')->references('id')->on('med_form_fields')->onDelete('cascade'); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | if (!Schema::hasTable('med_form_steps')) { |
18 | - Schema::create('med_form_steps', function (Blueprint $table) { |
|
18 | + Schema::create('med_form_steps', function(Blueprint $table) { |
|
19 | 19 | $table->id(); |
20 | 20 | $table->integer('order')->nullable(); |
21 | 21 | $table->string('key')->nullable(); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | if (!Schema::hasTable('med_step_form_translations')) { |
33 | - Schema::create('med_form_step_translations', function (Blueprint $table) { |
|
33 | + Schema::create('med_form_step_translations', function(Blueprint $table) { |
|
34 | 34 | $table->id(); |
35 | 35 | $table->string('title', 255)->nullable(); |
36 | 36 | $table->string('locale')->nullable(); |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | public function up() |
15 | 15 | { |
16 | 16 | if (!Schema::hasTable('med_forms')) { |
17 | - Schema::create('med_forms', function (Blueprint $table) { |
|
17 | + Schema::create('med_forms', function(Blueprint $table) { |
|
18 | 18 | $table->id(); |
19 | 19 | $table->uuid('uniq_id'); |
20 | 20 | $table->text('intro')->nullable(); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | if (!Schema::hasTable('med_form_translations')) { |
46 | - Schema::create('med_form_translations', function (Blueprint $table) { |
|
46 | + Schema::create('med_form_translations', function(Blueprint $table) { |
|
47 | 47 | $table->id(); |
48 | 48 | $table->string('title', 255)->nullable(); |
49 | 49 | $table->string('text_button'); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | if (!Schema::hasTable('med_entries')) { |
65 | - Schema::create('med_entries', function (Blueprint $table) { |
|
65 | + Schema::create('med_entries', function(Blueprint $table) { |
|
66 | 66 | $table->id(); |
67 | 67 | $table->text('structure_form')->nullable(); |
68 | 68 | $table->text('structure_result')->nullable(); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function up() |
15 | 15 | { |
16 | 16 | if (!Schema::hasTable('med_form_field_conditions')) { |
17 | - Schema::create('med_form_field_conditions', function (Blueprint $table) { |
|
17 | + Schema::create('med_form_field_conditions', function(Blueprint $table) { |
|
18 | 18 | $table->id(); |
19 | 19 | $table->unsignedBigInteger('form_step_id')->nullable(); |
20 | 20 | $table->foreign('form_step_id')->references('id')->on('med_form_steps')->onDelete('set null'); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | if (!Schema::hasTable('med_form_field_values')) { |
18 | - Schema::create('med_form_field_values', function (Blueprint $table) { |
|
18 | + Schema::create('med_form_field_values', function(Blueprint $table) { |
|
19 | 19 | $table->id(); |
20 | 20 | $table->unsignedBigInteger('form_field_id')->nullable(); |
21 | 21 | $table->foreign('form_field_id') |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | if (!Schema::hasTable('med_form_field_value_translations')) { |
31 | - Schema::create('med_form_field_value_translations', function (Blueprint $table) { |
|
31 | + Schema::create('med_form_field_value_translations', function(Blueprint $table) { |
|
32 | 32 | $table->id(); |
33 | 33 | $table->string('value'); |
34 | 34 | $table->text('text')->nullable(); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('renderFormBuilder')) { |
|
3 | +if (!function_exists('renderFormBuilder')) { |
|
4 | 4 | function renderFormBuilder($uuid) |
5 | 5 | { |
6 | 6 | $form = \MedianetDev\BackpackForm\Models\Formbuilder::where('uniq_id', $uuid)->firstOrNew(); |