@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @var string |
| 58 | 58 | */ |
| 59 | - protected $options="Applications/Options"; |
|
| 59 | + protected $options = "Applications/Options"; |
|
| 60 | 60 | |
| 61 | 61 | |
| 62 | 62 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | ->setIsDescriptionsEnabled(true) |
| 78 | 78 | ->setDescription( |
| 79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
| 80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024),1)] |
|
| 80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
| 81 | 81 | ) |
| 82 | 82 | ->setParam('return', 'file-uri') |
| 83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * |
| 81 | 81 | * @return $this |
| 82 | 82 | */ |
| 83 | - public function setDescription($description,$params = null) |
|
| 83 | + public function setDescription($description, $params = null) |
|
| 84 | 84 | { |
| 85 | 85 | $this->options['description'] = $description; |
| 86 | 86 | $this->options['description_params'] = $params; |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | 'id', |
| 99 | 99 | preg_replace( |
| 100 | 100 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
| 101 | - array('-' , '-' , '' ), |
|
| 101 | + array('-', '-', ''), |
|
| 102 | 102 | $formId |
| 103 | 103 | ) |
| 104 | 104 | ); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | if (!$element->hasAttribute('id')) { |
| 120 | 120 | $elementId = preg_replace( |
| 121 | 121 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
| 122 | - array('-' , '-', ''), |
|
| 122 | + array('-', '-', ''), |
|
| 123 | 123 | $form->getName() . '-' . $element->getName() |
| 124 | 124 | ); |
| 125 | 125 | $element->setAttribute('id', $elementId); |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | ); |
| 186 | 186 | |
| 187 | 187 | if ($desc = $form->getOption('description', '')) { |
| 188 | - $descriptionParams=$form->getOption('description_params'); |
|
| 188 | + $descriptionParams = $form->getOption('description_params'); |
|
| 189 | 189 | $translator = $this->getTranslator(); |
| 190 | 190 | $textDomain = $this->getTranslatorTextDomain(); |
| 191 | 191 | $desc = $translator->translate($desc, $textDomain); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function setLabelQualifications($labelQualifications) |
| 83 | 83 | { |
| 84 | - $this->labelQualifications=$labelQualifications; |
|
| 84 | + $this->labelQualifications = $labelQualifications; |
|
| 85 | 85 | return $this; |
| 86 | 86 | } |
| 87 | 87 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function setLabelBenefits($labelBenefits) |
| 106 | 106 | { |
| 107 | - $this->labelBenefits=$labelBenefits; |
|
| 107 | + $this->labelBenefits = $labelBenefits; |
|
| 108 | 108 | return $this; |
| 109 | 109 | } |
| 110 | 110 | |