@@ -13,7 +13,7 @@  | 
                                                    ||
| 13 | 13 | protected function bootPageControllerFormBuilderViewPathsTrait()  | 
                                                        
| 14 | 14 |      { | 
                                                        
| 15 | 15 | $this->after(  | 
                                                        
| 16 | -            function () { | 
                                                        |
| 16 | +            function() { | 
                                                        |
| 17 | 17 | $this->registerFormBuilderViewPaths();  | 
                                                        
| 18 | 18 | }  | 
                                                        
| 19 | 19 | );  | 
                                                        
@@ -19,6 +19,6 @@  | 
                                                    ||
| 19 | 19 | */  | 
                                                        
| 20 | 20 | public function getModelNamespace()  | 
                                                        
| 21 | 21 |      { | 
                                                        
| 22 | - return __NAMESPACE__.'\\';  | 
                                                        |
| 22 | + return __NAMESPACE__ . '\\';  | 
                                                        |
| 23 | 23 | }  | 
                                                        
| 24 | 24 | }  | 
                                                        
@@ -54,13 +54,13 @@  | 
                                                    ||
| 54 | 54 | $roles = $fieldsManager->getRoles();  | 
                                                        
| 55 | 55 |          foreach ($roles as $role) { | 
                                                        
| 56 | 56 | $fields[$role] = $fieldsManager->getTypesByRole($role);  | 
                                                        
| 57 | - $fields['existing.'.$role] = [];  | 
                                                        |
| 57 | + $fields['existing.' . $role] = [];  | 
                                                        |
| 58 | 58 | }  | 
                                                        
| 59 | 59 |          $fields['custom'] = $fieldsManager->getTypesByRole('custom'); | 
                                                        
| 60 | 60 | |
| 61 | 61 | $existing = $this->getFormFields();  | 
                                                        
| 62 | 62 |          foreach ($existing as $field) { | 
                                                        
| 63 | - $fields['existing.'.$field->getRole()][] = $field;  | 
                                                        |
| 63 | + $fields['existing.' . $field->getRole()][] = $field;  | 
                                                        |
| 64 | 64 | unset($fields[$field->getRole()][$field->getType()->getName()]);  | 
                                                        
| 65 | 65 | }  | 
                                                        
| 66 | 66 | |
@@ -19,7 +19,7 @@  | 
                                                    ||
| 19 | 19 | protected function generateBasePath()  | 
                                                        
| 20 | 20 |      { | 
                                                        
| 21 | 21 | return FormBuilder::basePath()  | 
                                                        
| 22 | - .DIRECTORY_SEPARATOR.'resources'  | 
                                                        |
| 23 | - .DIRECTORY_SEPARATOR.'views';  | 
                                                        |
| 22 | + .DIRECTORY_SEPARATOR . 'resources'  | 
                                                        |
| 23 | + .DIRECTORY_SEPARATOR . 'views';  | 
                                                        |
| 24 | 24 | }  | 
                                                        
| 25 | 25 | }  | 
                                                        
@@ -17,8 +17,8 @@  | 
                                                    ||
| 17 | 17 | public static function loadAssetContent($path)  | 
                                                        
| 18 | 18 |      { | 
                                                        
| 19 | 19 | $fullPath = self::basePath()  | 
                                                        
| 20 | - .DIRECTORY_SEPARATOR.'resources'  | 
                                                        |
| 21 | - .DIRECTORY_SEPARATOR.'assets'  | 
                                                        |
| 20 | + .DIRECTORY_SEPARATOR . 'resources'  | 
                                                        |
| 21 | + .DIRECTORY_SEPARATOR . 'assets'  | 
                                                        |
| 22 | 22 | .$path;  | 
                                                        
| 23 | 23 |          if (file_exists($fullPath)) { | 
                                                        
| 24 | 24 | return file_get_contents($fullPath);  | 
                                                        
@@ -22,7 +22,7 @@  | 
                                                    ||
| 22 | 22 | */  | 
                                                        
| 23 | 23 | public function change(): void  | 
                                                        
| 24 | 24 |      { | 
                                                        
| 25 | - $table_name = PackageConfig::tablesForms().'_pivot';  | 
                                                        |
| 25 | + $table_name = PackageConfig::tablesForms() . '_pivot';  | 
                                                        |
| 26 | 26 | $exists = $this->hasTable($table_name);  | 
                                                        
| 27 | 27 |          if ($exists) { | 
                                                        
| 28 | 28 | return;  | 
                                                        
@@ -15,7 +15,7 @@ discard block  | 
                                                    ||
| 15 | 15 | */  | 
                                                        
| 16 | 16 | public static function views($path)  | 
                                                        
| 17 | 17 |      { | 
                                                        
| 18 | - return static::basePath().'/resources/views'.$path;  | 
                                                        |
| 18 | + return static::basePath() . '/resources/views' . $path;  | 
                                                        |
| 19 | 19 | }  | 
                                                        
| 20 | 20 | |
| 21 | 21 | public static function basePath(): string  | 
                                                        
@@ -25,7 +25,7 @@ discard block  | 
                                                    ||
| 25 | 25 | |
| 26 | 26 | public static function config($path)  | 
                                                        
| 27 | 27 |      { | 
                                                        
| 28 | - return static::basePath().'/config'.$path;  | 
                                                        |
| 28 | + return static::basePath() . '/config' . $path;  | 
                                                        |
| 29 | 29 | }  | 
                                                        
| 30 | 30 | |
| 31 | 31 | }  | 
                                                        
@@ -23,7 +23,7 @@  | 
                                                    ||
| 23 | 23 | 'paths' => [  | 
                                                        
| 24 | 24 | 'form-builder' => [  | 
                                                        
| 25 | 25 | 'namespace' => 'ByTIC\FormBuilder\Fields',  | 
                                                        
| 26 | - 'path' => PathsHelpers::basePath().'/src/FormFields/Types',  | 
                                                        |
| 26 | + 'path' => PathsHelpers::basePath() . '/src/FormFields/Types',  | 
                                                        |
| 27 | 27 | ],  | 
                                                        
| 28 | 28 | ],  | 
                                                        
| 29 | 29 | ],  | 
                                                        
@@ -20,7 +20,7 @@  | 
                                                    ||
| 20 | 20 | public function change()  | 
                                                        
| 21 | 21 |      { | 
                                                        
| 22 | 22 | $table_forms = PackageConfig::tablesForms();  | 
                                                        
| 23 | - $table_pivot = PackageConfig::tablesForms().'_pivot';  | 
                                                        |
| 23 | + $table_pivot = PackageConfig::tablesForms() . '_pivot';  | 
                                                        |
| 24 | 24 | |
| 25 | 25 | $this->table($table_pivot)  | 
                                                        
| 26 | 26 | ->addForeignKey(  |