@@ -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 | /** |
@@ -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')) |
@@ -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 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | public function getConsumer(): Consumer |
60 | 60 | { |
61 | 61 | if ($this->consumer === null) { |
62 | - $this->consumer = GetConsumerForForm::for($this->form)->handle(); |
|
62 | + $this->consumer = GetConsumerForForm::for ($this->form)->handle(); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return $this->consumer; |
@@ -59,7 +59,9 @@ |
||
59 | 59 | public function getConsumer(): Consumer |
60 | 60 | { |
61 | 61 | if ($this->consumer === null) { |
62 | - $this->consumer = GetConsumerForForm::for($this->form)->handle(); |
|
62 | + $this->consumer = GetConsumerForForm::for($this->form) { |
|
63 | + ->handle(); |
|
64 | + } |
|
63 | 65 | } |
64 | 66 | |
65 | 67 | return $this->consumer; |