@@ -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')) |
@@ -31,7 +31,9 @@ |
||
31 | 31 | |
32 | 32 | public static function forForm($form) |
33 | 33 | { |
34 | - $consumer = GetConsumerForForm::for($form)->handle(); |
|
34 | + $consumer = GetConsumerForForm::for($form) { |
|
35 | + ->handle(); |
|
36 | + } |
|
35 | 37 | |
36 | 38 | return self::forConsumer($consumer); |
37 | 39 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | public static function forForm($form) |
33 | 33 | { |
34 | - $consumer = GetConsumerForForm::for($form)->handle(); |
|
34 | + $consumer = GetConsumerForForm::for ($form)->handle(); |
|
35 | 35 | |
36 | 36 | return self::forConsumer($consumer); |
37 | 37 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $action = new static(); |
42 | 42 | $action->setConsumer($consumer); |
43 | 43 | $action->setConsumerConfig($consumerConfig); |
44 | - $action->setConsumerConfigGenerateCallback(function () use ($consumer) { |
|
44 | + $action->setConsumerConfigGenerateCallback(function() use ($consumer) { |
|
45 | 45 | return GetConsumerConfig::forConsumer($consumer)->handle(); |
46 | 46 | }); |
47 | 47 |
@@ -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 | } |
@@ -35,11 +35,11 @@ |
||
35 | 35 | { |
36 | 36 | $action = new static($fieldList); |
37 | 37 | $action->setForm($form); |
38 | - $action->setConsumerGenerateCallback(function () use ($form) { |
|
39 | - return GetConsumerForForm::for($form)->handle(); |
|
38 | + $action->setConsumerGenerateCallback(function() use ($form) { |
|
39 | + return GetConsumerForForm::for ($form)->handle(); |
|
40 | 40 | }); |
41 | 41 | |
42 | - $action->setConsumerConfigGenerateCallback(function () use ($action) { |
|
42 | + $action->setConsumerConfigGenerateCallback(function() use ($action) { |
|
43 | 43 | return GetConsumerConfig::forConsumer($action->getConsumer())->handle(); |
44 | 44 | }); |
45 | 45 |
@@ -36,7 +36,9 @@ |
||
36 | 36 | $action = new static($fieldList); |
37 | 37 | $action->setForm($form); |
38 | 38 | $action->setConsumerGenerateCallback(function () use ($form) { |
39 | - return GetConsumerForForm::for($form)->handle(); |
|
39 | + return GetConsumerForForm::for($form) { |
|
40 | + ->handle(); |
|
41 | + } |
|
40 | 42 | }); |
41 | 43 | |
42 | 44 | $action->setConsumerConfigGenerateCallback(function () use ($action) { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | <?php if ($fields) { ?> |
20 | 20 | <div class="form-panel"> |
21 | 21 | <div class="header"> |
22 | - <?php echo $manager->getLabel('existing.'.$role) ?> |
|
22 | + <?php echo $manager->getLabel('existing.' . $role) ?> |
|
23 | 23 | </div> |
24 | 24 | <div class="fields-body"> |
25 | 25 | <?php |
@@ -87,7 +87,7 @@ |
||
87 | 87 | protected function bootFormbuilderFieldsControllerTrait() |
88 | 88 | { |
89 | 89 | $this->after( |
90 | - function () { |
|
90 | + function() { |
|
91 | 91 | $this->registerFormbuilderViewPaths(); |
92 | 92 | } |
93 | 93 | ); |
@@ -52,8 +52,8 @@ |
||
52 | 52 | <li> |
53 | 53 | <a href="<?= $field->compileURL('delete'); ?>" class="dropdown-item" |
54 | 54 | onclick="return confirm('<?= translator()->trans( |
55 | - 'general.messages.confirm' |
|
56 | - ); ?>');"> |
|
55 | + 'general.messages.confirm' |
|
56 | + ); ?>');"> |
|
57 | 57 | <i class="far fa-trash-alt"></i> |
58 | 58 | <?= translator()->trans('delete'); ?> |
59 | 59 | </a> |