@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | app('locale')->getOption(['time', 'dateStringFormatShort']) |
| 36 | 36 | ); |
| 37 | 37 | if ($value) { |
| 38 | - $value .= ' ('.$this->getAgeString($model).')'; |
|
| 38 | + $value .= ' (' . $this->getAgeString($model) . ')'; |
|
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | 41 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function getAgeString($model) |
| 55 | 55 | { |
| 56 | - return $this->getAge($model).' '.translator()->trans('years'); |
|
| 56 | + return $this->getAge($model) . ' ' . translator()->trans('years'); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -118,6 +118,6 @@ |
||
| 118 | 118 | */ |
| 119 | 119 | public function getFormName() |
| 120 | 120 | { |
| 121 | - return $this->getName().'-'.sha1($this->getItem()->id); |
|
| 121 | + return $this->getName() . '-' . sha1($this->getItem()->id); |
|
| 122 | 122 | } |
| 123 | 123 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | if ($hideDisabled && !$isInAdmin) { |
| 74 | 74 | continue; |
| 75 | 75 | } |
| 76 | - $attribs['label'] .= ' ('.translator()->trans('unavailable').')'; |
|
| 76 | + $attribs['label'] .= ' (' . translator()->trans('unavailable') . ')'; |
|
| 77 | 77 | |
| 78 | 78 | if (!$isInAdmin) { |
| 79 | 79 | $attribs['disabled'] = 'disabled'; |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $this->adminFormAddOptionsFromModel($form, 'select_options_disabled', 'Disabled Options', false); |
| 99 | 99 | |
| 100 | 100 | $hideDisabledType = $form->isElementsType('BsRadioGroup') ? 'BsRadioGroup' : 'RadioGroup'; |
| 101 | - $form->{'add'.$hideDisabledType}('hide_disabled', translator()->trans('hide_disabled'), true); |
|
| 101 | + $form->{'add' . $hideDisabledType}('hide_disabled', translator()->trans('hide_disabled'), true); |
|
| 102 | 102 | $form->getElement('hide_disabled') |
| 103 | 103 | ->addOption('yes', translator()->trans('yes')) |
| 104 | 104 | ->addOption('no', translator()->trans('no')) |
@@ -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 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | protected function bootFormbuilderFormsControllerTrait() |
| 25 | 25 | { |
| 26 | 26 | $this->after( |
| 27 | - function () { |
|
| 27 | + function() { |
|
| 28 | 28 | $this->registerFormbuilderViewPaths(); |
| 29 | 29 | } |
| 30 | 30 | ); |
@@ -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( |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | <?php foreach ($roles as $role) { ?> |
| 9 | 9 | <div class="form-panel"> |
| 10 | 10 | <div class="header"> |
| 11 | - <?php echo $manager->getLabel('available.'.$role) ?> |
|
| 11 | + <?php echo $manager->getLabel('available.' . $role) ?> |
|
| 12 | 12 | </div> |
| 13 | 13 | <div class="fields-body"> |
| 14 | 14 | <?php echo $this->load('../lists/available', ['role' => $role]); ?> |