@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * TemplateVariableInput constructor. |
| 47 | 47 | * @param string $type ~ migx |
| 48 | 48 | */ |
| 49 | - public function __construct(string $type='migx') |
|
| 49 | + public function __construct(string $type = 'migx') |
|
| 50 | 50 | { |
| 51 | 51 | $this->type = $type; |
| 52 | 52 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @param string|null $wrap_in_form_name ~ advanced usage, HTML form name to wrap tabs in |
| 57 | 57 | * @return Tab |
| 58 | 58 | */ |
| 59 | - public function addFormTab(string $caption, $wrap_in_form_name=null) |
|
| 59 | + public function addFormTab(string $caption, $wrap_in_form_name = null) |
|
| 60 | 60 | { |
| 61 | 61 | $tab = new Tab($caption); |
| 62 | 62 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * @param bool $pretty_json |
| 80 | 80 | * @return array |
| 81 | 81 | */ |
| 82 | - public function getInputProperties(bool $pretty_json=false): array |
|
| 82 | + public function getInputProperties(bool $pretty_json = false): array |
|
| 83 | 83 | { |
| 84 | 84 | $input_properties = [ |
| 85 | 85 | 'allowBlank' => $this->allow_blank, |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @param bool $pretty_json |
| 161 | 161 | * @return false|string |
| 162 | 162 | */ |
| 163 | - protected function getColumnsAsJsonString($pretty_json=false) |
|
| 163 | + protected function getColumnsAsJsonString($pretty_json = false) |
|
| 164 | 164 | { |
| 165 | 165 | $json = []; |
| 166 | 166 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | /** |
| 182 | 182 | * @return string|false |
| 183 | 183 | */ |
| 184 | - protected function getFormTabsAsJsonString($pretty_json=false) |
|
| 184 | + protected function getFormTabsAsJsonString($pretty_json = false) |
|
| 185 | 185 | { |
| 186 | 186 | $json = []; |
| 187 | 187 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * @param array $columns ~ any existing columns to pass first |
| 50 | 50 | * @return array |
| 51 | 51 | */ |
| 52 | - public function getGridColumns($columns=[]) |
|
| 52 | + public function getGridColumns($columns = []) |
|
| 53 | 53 | { |
| 54 | 54 | $fields = $this->getFields(); |
| 55 | 55 | |
@@ -198,7 +198,7 @@ |
||
| 198 | 198 | * @param string $value_separator ~ the separator between label and value |
| 199 | 199 | * @return OptionValues |
| 200 | 200 | */ |
| 201 | - public function loadOptionValues(string $separator='||', string $value_separator='==') |
|
| 201 | + public function loadOptionValues(string $separator = '||', string $value_separator = '==') |
|
| 202 | 202 | { |
| 203 | 203 | $this->optionValues = new OptionValues($separator, $value_separator); |
| 204 | 204 | |
@@ -20,5 +20,5 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * @return array |
| 22 | 22 | */ |
| 23 | - public function getInputProperties(): array ; |
|
| 23 | + public function getInputProperties(): array; |
|
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param string $separator ~ the separator between items |
| 23 | 23 | * @param string $value_separator ~ the separator between label and value |
| 24 | 24 | */ |
| 25 | - public function __construct(string $separator='||', string $value_separator='==') |
|
| 25 | + public function __construct(string $separator = '||', string $value_separator = '==') |
|
| 26 | 26 | { |
| 27 | 27 | $this->separator = $separator; |
| 28 | 28 | $this->value_separator = $value_separator; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | if (!empty($string)) { |
| 39 | 39 | $string .= $this->separator; |
| 40 | 40 | } |
| 41 | - $string .= $label . $this->value_separator . $value; |
|
| 41 | + $string .= $label.$this->value_separator.$value; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | return $string; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * @param null $value |
| 58 | 58 | * @return $this |
| 59 | 59 | */ |
| 60 | - public function setOption(string $label, $value=null): self |
|
| 60 | + public function setOption(string $label, $value = null): self |
|
| 61 | 61 | { |
| 62 | 62 | if (is_null($value)) { |
| 63 | 63 | $value = $label; |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * @param string $type |
| 105 | 105 | * @return MIGXTemplateVariableInput |
| 106 | 106 | */ |
| 107 | - public function getMIGXInputPropertyHelper(string $type='migx') |
|
| 107 | + public function getMIGXInputPropertyHelper(string $type = 'migx') |
|
| 108 | 108 | { |
| 109 | 109 | $this->setFieldType($type); |
| 110 | 110 | return new MIGXTemplateVariableInput($this->getFieldType()); |