@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | public function bootFormTrait() |
| 42 | 42 | { |
| 43 | - $this->addCast('metadata', AsMetadataObject::class.':json'); |
|
| 43 | + $this->addCast('metadata', AsMetadataObject::class . ':json'); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function setConsumerClass($consumerClass) |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | { |
| 11 | 11 | use HasSubject; |
| 12 | 12 | |
| 13 | - protected Form|null $source = null; |
|
| 13 | + protected Form | null $source = null; |
|
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | public function handle() |
@@ -36,8 +36,8 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $sourceForm = FormGenerateForConsumer::for($consumer)->handle(); |
| 38 | 38 | $this->getSubject()->addImportLink([ |
| 39 | - 'name' => $consumer->getName(), |
|
| 40 | - 'href' => $this->generateImportLink($this->form, $sourceForm), |
|
| 39 | + 'name' => $consumer->getName(), |
|
| 40 | + 'href' => $this->generateImportLink($this->form, $sourceForm), |
|
| 41 | 41 | ]); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | protected function addDesignerImportLink($consumer) |
| 36 | 36 | { |
| 37 | - $sourceForm = FormGenerateForConsumer::for($consumer)->handle(); |
|
| 37 | + $sourceForm = FormGenerateForConsumer::for ($consumer)->handle(); |
|
| 38 | 38 | $this->getSubject()->addImportLink([ |
| 39 | 39 | 'name' => $consumer->getName(), |
| 40 | 40 | 'href' => $this->generateImportLink($this->form, $sourceForm), |
@@ -43,6 +43,6 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | protected function generateImportLink($form, $sourceForm) |
| 45 | 45 | { |
| 46 | - return $form->compileUrl('import',['form_id' => $sourceForm->id]); |
|
| 46 | + return $form->compileUrl('import', ['form_id' => $sourceForm->id]); |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | \ No newline at end of file |
@@ -34,7 +34,9 @@ |
||
| 34 | 34 | |
| 35 | 35 | protected function addDesignerImportLink($consumer) |
| 36 | 36 | { |
| 37 | - $sourceForm = FormGenerateForConsumer::for($consumer)->handle(); |
|
| 37 | + $sourceForm = FormGenerateForConsumer::for($consumer) { |
|
| 38 | + ->handle(); |
|
| 39 | + } |
|
| 38 | 40 | $this->getSubject()->addImportLink([ |
| 39 | 41 | 'name' => $consumer->getName(), |
| 40 | 42 | 'href' => $this->generateImportLink($this->form, $sourceForm), |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $this->flashRedirect($this->getModelManager()->getMessage('import.error'), $form->getURL(), 'error'); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - ImportForm::for($form)->withSource($fromForm)->handle(); |
|
| 76 | + ImportForm::for ($form)->withSource($fromForm)->handle(); |
|
| 77 | 77 | |
| 78 | 78 | $redirect = $form->getURL(); |
| 79 | 79 | $this->flashRedirect($this->getModelManager()->getMessage('import.success'), $redirect); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | protected function bootFormbuilderFormsControllerTrait() |
| 91 | 91 | { |
| 92 | 92 | $this->after( |
| 93 | - function () { |
|
| 93 | + function() { |
|
| 94 | 94 | $this->registerFormbuilderViewPaths(); |
| 95 | 95 | } |
| 96 | 96 | ); |
@@ -73,7 +73,9 @@ |
||
| 73 | 73 | $this->flashRedirect($this->getModelManager()->getMessage('import.error'), $form->getURL(), 'error'); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - ImportForm::for($form)->withSource($fromForm)->handle(); |
|
| 76 | + ImportForm::for($form) { |
|
| 77 | + ->withSource($fromForm)->handle(); |
|
| 78 | + } |
|
| 77 | 79 | |
| 78 | 80 | $redirect = $form->getURL(); |
| 79 | 81 | $this->flashRedirect($this->getModelManager()->getMessage('import.success'), $redirect); |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | |
| 14 | 14 | public function migrations(): string |
| 15 | 15 | { |
| 16 | - return dirname(__DIR__).'/migrations/'; |
|
| 16 | + return dirname(__DIR__) . '/migrations/'; |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | protected function translationsPath(): string |
| 20 | 20 | { |
| 21 | - return dirname(__DIR__).'/resources/lang/'; |
|
| 21 | + return dirname(__DIR__) . '/resources/lang/'; |
|
| 22 | 22 | } |
| 23 | 23 | } |