@@ -97,9 +97,9 @@ |
||
97 | 97 | { |
98 | 98 | $name = $this->getName(); |
99 | 99 | |
100 | - $this->startDateElement->setName($name . '[startDate]'); |
|
101 | - $this->endDateElement->setName($name . '[endDate]'); |
|
102 | - $this->currentCheckbox->setName($name . '[current]'); |
|
100 | + $this->startDateElement->setName($name.'[startDate]'); |
|
101 | + $this->endDateElement->setName($name.'[endDate]'); |
|
102 | + $this->currentCheckbox->setName($name.'[current]'); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | public function __clone() |
@@ -158,8 +158,8 @@ |
||
158 | 158 | if ($mimetypes) { |
159 | 159 | $mimeTypeValidator = new MimeType(); |
160 | 160 | $mimeTypeValidator->setMagicFile(false) |
161 | - ->disableMagicFile(true) |
|
162 | - ->setMimeType($this->getAllowedTypes()); |
|
161 | + ->disableMagicFile(true) |
|
162 | + ->setMimeType($this->getAllowedTypes()); |
|
163 | 163 | |
164 | 164 | $validators[] = $mimeTypeValidator; |
165 | 165 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | public function prepareElement(FormInterface $form) |
146 | 146 | { |
147 | - $form->setAttribute('class', ($this->isMultiple() ? 'multi' : 'single') . '-file-upload'); |
|
147 | + $form->setAttribute('class', ($this->isMultiple() ? 'multi' : 'single').'-file-upload'); |
|
148 | 148 | $form->setAttribute('data-is-empty', null === $this->getValue()); |
149 | 149 | parent::prepareElement($form); |
150 | 150 | } |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $entityName = $this->getName(); |
248 | 248 | |
249 | 249 | try { |
250 | - $fileEntity = $object->{"get" . $entityName}(); |
|
250 | + $fileEntity = $object->{"get".$entityName}(); |
|
251 | 251 | } catch (\OutOfBoundsException $e) { |
252 | 252 | return null; |
253 | 253 | } |
@@ -14,10 +14,10 @@ |
||
14 | 14 | protected $validator; |
15 | 15 | |
16 | 16 | /** |
17 | - * Get a validator if none has been set. |
|
18 | - * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | - * @return RegexValidator |
|
20 | - */ |
|
17 | + * Get a validator if none has been set. |
|
18 | + * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | + * @return RegexValidator |
|
20 | + */ |
|
21 | 21 | public function getValidator() |
22 | 22 | { |
23 | 23 | if (null === $this->validator) { |
@@ -83,7 +83,7 @@ |
||
83 | 83 | { |
84 | 84 | /* @var $formElementManager \Zend\Form\FormElementManager\FormElementManagerV3Polyfill */ |
85 | 85 | $formElementManager = $container->get('FormElementManager'); |
86 | - $options=null; |
|
86 | + $options = null; |
|
87 | 87 | if ($this->options) { |
88 | 88 | $options = $container->get($this->options); |
89 | 89 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function getEmptySummaryNotice() |
52 | 52 | { |
53 | - if (! isset($this->emptySummaryNotice) && property_exists($this, 'defaultEmptySummaryNotice')) { |
|
53 | + if (!isset($this->emptySummaryNotice) && property_exists($this, 'defaultEmptySummaryNotice')) { |
|
54 | 54 | $this->emptySummaryNotice = $this->defaultEmptySummaryNotice; |
55 | 55 | } |
56 | 56 |
@@ -79,13 +79,13 @@ |
||
79 | 79 | 'name' => [ |
80 | 80 | 'required' => true, |
81 | 81 | 'filters' => [ |
82 | - [ 'name' => 'StringTrim' ], |
|
82 | + ['name' => 'StringTrim'], |
|
83 | 83 | ], |
84 | 84 | ], |
85 | 85 | 'value' => [ |
86 | 86 | 'required' => false, |
87 | 87 | 'filters' => [ |
88 | - [ 'name' => 'StringTrim' ], |
|
88 | + ['name' => 'StringTrim'], |
|
89 | 89 | ], |
90 | 90 | ], |
91 | 91 | ]; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | * |
36 | 36 | * @var array |
37 | 37 | */ |
38 | - protected $scripts = [ 'modules/Core/js/html.sortable.min.js', 'modules/Core/js/forms.tree-management.js' ]; |
|
38 | + protected $scripts = ['modules/Core/js/html.sortable.min.js', 'modules/Core/js/forms.tree-management.js']; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Attributes. |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | public function init() |
52 | 52 | { |
53 | - $this->setName('items'); |
|
53 | + $this->setName('items'); |
|
54 | 54 | $this->add([ |
55 | 55 | 'type' => 'Collection', |
56 | 56 | 'name' => 'items', |
@@ -134,8 +134,8 @@ |
||
134 | 134 | $elementOptions = $element->getOptions(); |
135 | 135 | if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) { |
136 | 136 | $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' . |
137 | - (empty($content)?'':'display:none;') . |
|
138 | - '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
137 | + (empty($content)?'':'display:none;') . |
|
138 | + '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
139 | 139 | } |
140 | 140 | return |
141 | 141 | $placeHolder |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @var string |
48 | 48 | */ |
49 | - protected $language="de"; |
|
49 | + protected $language = "de"; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * @var |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function render(ElementInterface $element) |
62 | 62 | { |
63 | - $name = $element->getName(); |
|
63 | + $name = $element->getName(); |
|
64 | 64 | if (empty($name) && $name !== 0) { |
65 | 65 | throw new \DomainException( |
66 | 66 | sprintf( |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | //$headscript->prependFile($basepath('/assets/jquery/jquery.min.js')); |
85 | 85 | |
86 | 86 | $headscript->offsetSetScript( |
87 | - '1000_tinymce_' . $this->getTheme(), |
|
87 | + '1000_tinymce_'.$this->getTheme(), |
|
88 | 88 | ' |
89 | 89 | $(document).ready(function() { |
90 | - tinyMCE.init({' . $this->additionalOptions() . ', |
|
90 | + tinyMCE.init({' . $this->additionalOptions().', |
|
91 | 91 | skin_url: "'.$this->skinUrl.'", |
92 | 92 | setup: function(editor) { |
93 | 93 | |
@@ -135,15 +135,15 @@ discard block |
||
135 | 135 | $content = ''; |
136 | 136 | } |
137 | 137 | if (is_string($content)) { |
138 | - $class = array_key_exists('class', $attributes)?$attributes['class']:''; |
|
139 | - $class .= (empty($class)?:' ') . ' tinymce_' . $this->getTheme(); |
|
138 | + $class = array_key_exists('class', $attributes) ? $attributes['class'] : ''; |
|
139 | + $class .= (empty($class) ?: ' ').' tinymce_'.$this->getTheme(); |
|
140 | 140 | $attributes['class'] = $class; |
141 | 141 | $placeHolder = ''; |
142 | 142 | $elementOptions = $element->getOptions(); |
143 | 143 | if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) { |
144 | - $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' . |
|
145 | - (empty($content)?'':'display:none;') . |
|
146 | - '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
144 | + $placeHolder = '<div id="placeholder-'.$name.'" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;'. |
|
145 | + (empty($content) ? '' : 'display:none;'). |
|
146 | + '">'.$this->translator->translate($elementOptions['placeholder']).'</div>'; |
|
147 | 147 | } |
148 | 148 | return |
149 | 149 | $placeHolder |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | */ |
182 | 182 | public function setLanguage($language) |
183 | 183 | { |
184 | - $this->language=$language; |
|
184 | + $this->language = $language; |
|
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | */ |
192 | 192 | public function setLanguagePath($languagePath) |
193 | 193 | { |
194 | - $this->languagePath=$languagePath; |
|
194 | + $this->languagePath = $languagePath; |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |