@@ -19,5 +19,5 @@ |
||
19 | 19 | { |
20 | 20 | protected $theme = 'light'; |
21 | 21 | |
22 | - protected $languagePath="modules/Core/js/tinymce-lang/"; |
|
22 | + protected $languagePath = "modules/Core/js/tinymce-lang/"; |
|
23 | 23 | } |
@@ -28,6 +28,6 @@ |
||
28 | 28 | ); |
29 | 29 | } |
30 | 30 | |
31 | - return $this->openTag($element) . $labelContent . $this->closeTag(); |
|
31 | + return $this->openTag($element).$labelContent.$this->closeTag(); |
|
32 | 32 | } |
33 | 33 | } |
@@ -113,11 +113,11 @@ discard block |
||
113 | 113 | |
114 | 114 | return str_replace( |
115 | 115 | array('#abort', |
116 | - '__file-uri__', |
|
117 | - '__file-name__', |
|
118 | - '__file-size__', |
|
119 | - 'fu-working', |
|
120 | - 'fa-file-o' |
|
116 | + '__file-uri__', |
|
117 | + '__file-name__', |
|
118 | + '__file-size__', |
|
119 | + 'fu-working', |
|
120 | + 'fa-file-o' |
|
121 | 121 | ), |
122 | 122 | array("$uri?do=delete", $uri, $name, $size, '', $icon), |
123 | 123 | $template |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>' |
141 | 141 | . $this->getNonEmptyNotice() . '</div>'; |
142 | 142 | $emptynotice = '<div class="fu-empty-notice"' |
143 | - . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
143 | + . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
144 | 144 | ' . $this->getEmptyNotice() . ' |
145 | 145 | </div>'; |
146 | 146 |
@@ -90,12 +90,12 @@ discard block |
||
90 | 90 | </a> |
91 | 91 | <div class="fu-errors input-error"> |
92 | 92 | <ul class="errors"> |
93 | - <li class="fu-error-size">' . $translator->translate('The file is too big', $textDomain) . '</li> |
|
94 | - <li class="fu-error-type">' . $translator->translate('The file type is not supported', $textDomain) . '</li> |
|
93 | + <li class="fu-error-size">' . $translator->translate('The file is too big', $textDomain).'</li> |
|
94 | + <li class="fu-error-type">' . $translator->translate('The file type is not supported', $textDomain).'</li> |
|
95 | 95 | <li class="fu-error-count">' . sprintf( |
96 | 96 | $translator->translate('You may only upload %d files', $textDomain), |
97 | 97 | $element->getAttribute('data-maxfilecount') |
98 | -) . '</li><li class="fu-error-general">' . $translator->translate('An unknown error occured.') . '</li> |
|
98 | +).'</li><li class="fu-error-general">'.$translator->translate('An unknown error occured.').'</li> |
|
99 | 99 | </ul> |
100 | 100 | </div> |
101 | 101 | </li>'; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | /* @var $basepath \Zend\View\Helper\BasePath */ |
104 | 104 | $renderer = $this->getView(); |
105 | 105 | $basepath = $renderer->plugin('basepath'); |
106 | - $createFileDisplay = function ($file) use ($template, $basepath) { |
|
106 | + $createFileDisplay = function($file) use ($template, $basepath) { |
|
107 | 107 | /* @var $file \Core\Entity\FileInterface */ |
108 | 108 | $uri = $basepath($file->getUri()); |
109 | 109 | $name = $file->getName(); |
@@ -137,11 +137,11 @@ discard block |
||
137 | 137 | } |
138 | 138 | |
139 | 139 | $nonemptynotice = |
140 | - '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>' |
|
141 | - . $this->getNonEmptyNotice() . '</div>'; |
|
140 | + '<div class="fu-nonempty-notice"'.('' == trim($preview) ? ' style="display:none;"' : '').'>' |
|
141 | + . $this->getNonEmptyNotice().'</div>'; |
|
142 | 142 | $emptynotice = '<div class="fu-empty-notice"' |
143 | - . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
144 | - ' . $this->getEmptyNotice() . ' |
|
143 | + . ('' == trim($preview) ? '' : ' style="display: none;"').'> |
|
144 | + ' . $this->getEmptyNotice().' |
|
145 | 145 | </div>'; |
146 | 146 | |
147 | 147 | $markup = ' |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | */ |
289 | 289 | protected function getDefaultNotice() |
290 | 290 | { |
291 | - return '<small>' . $this->getTranslator()->translate('Click here to add files or use drag and drop.') . '</small>'; |
|
291 | + return '<small>'.$this->getTranslator()->translate('Click here to add files or use drag and drop.').'</small>'; |
|
292 | 292 | } |
293 | 293 | |
294 | 294 | /** |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | */ |
299 | 299 | public function setAllowRemove($allowRemove) |
300 | 300 | { |
301 | - $this->allowRemove = (bool)$allowRemove; |
|
301 | + $this->allowRemove = (bool) $allowRemove; |
|
302 | 302 | |
303 | 303 | return $this; |
304 | 304 | } |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | */ |
311 | 311 | public function setAllowClickableDropZone($allowClickableDropZone) |
312 | 312 | { |
313 | - $this->allowClickableDropZone = (bool)$allowClickableDropZone; |
|
313 | + $this->allowClickableDropZone = (bool) $allowClickableDropZone; |
|
314 | 314 | |
315 | 315 | return $this; |
316 | 316 | } |
@@ -50,10 +50,10 @@ discard block |
||
50 | 50 | if ($element instanceof ViewPartialProviderInterface && !$ignoreViewPartial) { |
51 | 51 | return $this->getView()->partial( |
52 | 52 | $element->getViewPartial(), |
53 | - array( |
|
54 | - 'element' => $element, |
|
55 | - 'labelWitdh' => $labelWidth, |
|
56 | - 'label_attributes' => $labelAttributes |
|
53 | + array( |
|
54 | + 'element' => $element, |
|
55 | + 'labelWitdh' => $labelWidth, |
|
56 | + 'label_attributes' => $labelAttributes |
|
57 | 57 | ) |
58 | 58 | ); |
59 | 59 | } |
@@ -110,9 +110,9 @@ discard block |
||
110 | 110 | if ($desc && $this->layout != Form::LAYOUT_BARE) { |
111 | 111 | if (null !== ($translator = $this->getTranslator())) { |
112 | 112 | $desc = $translator->translate( |
113 | - $desc, |
|
114 | - $this->getTranslatorTextDomain() |
|
115 | - ); |
|
113 | + $desc, |
|
114 | + $this->getTranslatorTextDomain() |
|
115 | + ); |
|
116 | 116 | } |
117 | 117 | $elementString .= sprintf( |
118 | 118 | '<div id="%s-desc" class="cam-description alert alert-info">%s</div>', |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | |
79 | 79 | // Does this element have errors ? |
80 | 80 | if (!empty($elementErrors) && !empty($inputErrorClass) && $this->layout != Form::LAYOUT_BARE) { |
81 | - $classAttributes = ($element->hasAttribute('class') ? $element->getAttribute('class') . ' ' : ''); |
|
82 | - $classAttributes = $classAttributes . $inputErrorClass; |
|
81 | + $classAttributes = ($element->hasAttribute('class') ? $element->getAttribute('class').' ' : ''); |
|
82 | + $classAttributes = $classAttributes.$inputErrorClass; |
|
83 | 83 | |
84 | 84 | $element->setAttribute('class', $classAttributes); |
85 | 85 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | if (!$element->hasAttribute('id')) { |
88 | 88 | $elementId = preg_replace( |
89 | 89 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
90 | - array('-' , '-', ''), |
|
90 | + array('-', '-', ''), |
|
91 | 91 | $element->getName() |
92 | 92 | ); |
93 | 93 | $element->setAttribute('id', $elementId); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | // moved label here so we can change it in the ElementViewHelper |
136 | - $label = $element->getLabel(); |
|
136 | + $label = $element->getLabel(); |
|
137 | 137 | if (isset($label) && '' !== $label && !$element instanceof \Zend\Form\Element\Button) { |
138 | 138 | // Translate the label |
139 | 139 | if (null !== ($translator = $this->getTranslator())) { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | if ($this->shouldWrap) { |
179 | 179 | $spanWidth = 12 - $labelWidth; |
180 | 180 | $elementString = sprintf( |
181 | - '<div class="col-md-%d%s" id="' . $elementId . '-span">%s</div>', |
|
181 | + '<div class="col-md-%d%s" id="'.$elementId.'-span">%s</div>', |
|
182 | 182 | $spanWidth, |
183 | 183 | $elementErrors ? " $inputErrorClass" : '', |
184 | 184 | $elementString |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $label |
190 | 190 | ); |
191 | 191 | } |
192 | - $markup = $label . $elementString; |
|
192 | + $markup = $label.$elementString; |
|
193 | 193 | } |
194 | 194 | } |
195 | 195 | } else { |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | && !$element instanceof \Zend\Form\Element\Button |
211 | 211 | && $this->layout != Form::LAYOUT_BARE |
212 | 212 | ) { |
213 | - $markup = sprintf('<div class="controls controls-row ' . $form_row_class . '">%s</div>', $markup); |
|
213 | + $markup = sprintf('<div class="controls controls-row '.$form_row_class.'">%s</div>', $markup); |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | return $markup; |
@@ -71,8 +71,8 @@ |
||
71 | 71 | $basepath = $renderer->plugin('basepath'); |
72 | 72 | |
73 | 73 | $headscript->appendFile($basepath('modules/Core/js/core.spinnerbutton.js')) |
74 | - //->appendFile($basepath('/assets/select2/js/select2.min.js')) |
|
75 | - ->appendFile($basepath('modules/Core/js/core.forms.js')); |
|
74 | + //->appendFile($basepath('/assets/select2/js/select2.min.js')) |
|
75 | + ->appendFile($basepath('modules/Core/js/core.forms.js')); |
|
76 | 76 | |
77 | 77 | /* @noinspection PhpParamsInspection */ |
78 | 78 | //$renderer->headLink()->appendStylesheet($basepath('/assets/select2/css/select2.css')); |
@@ -88,14 +88,14 @@ discard block |
||
88 | 88 | |
89 | 89 | $class = $form->getAttribute('class'); |
90 | 90 | $class = preg_replace('~\bform-[^ ]+\b~', '', $class); |
91 | - $class .= ' ' . $layout; |
|
91 | + $class .= ' '.$layout; |
|
92 | 92 | |
93 | 93 | $form->setAttribute('class', $class); |
94 | 94 | |
95 | 95 | $formId = $form->getAttribute('id') ?: $form->getName(); |
96 | 96 | $formId = preg_replace( |
97 | 97 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
98 | - array('-' , '-' , '' ), |
|
98 | + array('-', '-', ''), |
|
99 | 99 | $formId |
100 | 100 | ); |
101 | 101 | $form->setAttribute( |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | if (!$elementId) { |
122 | 122 | $elementId = preg_replace( |
123 | 123 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
124 | - array('-' , '-', ''), |
|
124 | + array('-', '-', ''), |
|
125 | 125 | $element->getName() |
126 | 126 | ); |
127 | 127 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | } |
160 | 160 | } |
161 | 161 | |
162 | - return $this->openTag($form) . $formContent . $this->closeTag(); |
|
162 | + return $this->openTag($form).$formContent.$this->closeTag(); |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | ); |
188 | 188 | |
189 | 189 | if ($desc = $form->getOption('description', '')) { |
190 | - $descriptionParams=$form->getOption('description_params'); |
|
190 | + $descriptionParams = $form->getOption('description_params'); |
|
191 | 191 | $translator = $this->getTranslator(); |
192 | 192 | $textDomain = $this->getTranslatorTextDomain(); |
193 | 193 | $desc = $translator->translate($desc, $textDomain); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $desc |
209 | 209 | ); |
210 | 210 | } else { |
211 | - $formContent = '<div class="form-content">' . $formContent . '</div>'; |
|
211 | + $formContent = '<div class="form-content">'.$formContent.'</div>'; |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | $markup = '<div id="form-%s" class="form-container">' |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | . '</div>'; |
218 | 218 | |
219 | 219 | if ($label = $form->getLabel()) { |
220 | - $label = '<div class="form-headline"><h3>' . $renderer->translate($label) . '</h3></div>'; |
|
220 | + $label = '<div class="form-headline"><h3>'.$renderer->translate($label).'</h3></div>'; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | return sprintf( |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | protected function additionalOptions() |
21 | 21 | { |
22 | - return 'toolbar: "undo redo | styleselect forecolor | bold italic | alignleft aligncenter alignright alignjustify | ' . |
|
22 | + return 'toolbar: "undo redo | styleselect forecolor | bold italic | alignleft aligncenter alignright alignjustify | '. |
|
23 | 23 | 'bullist numlist outdent indent ", '; |
24 | 24 | } |
25 | 25 | } |
@@ -39,11 +39,11 @@ |
||
39 | 39 | $element->setLabel(''); |
40 | 40 | $element->setAttribute('placeholder', $label); |
41 | 41 | } |
42 | - $formContent .= $this->getView()->formRow($element, null, null, Form::LAYOUT_BARE) . ' '; |
|
42 | + $formContent .= $this->getView()->formRow($element, null, null, Form::LAYOUT_BARE).' '; |
|
43 | 43 | } |
44 | 44 | } |
45 | 45 | |
46 | 46 | |
47 | - return $this->openTag($form) . $formContent . $this->closeTag(); |
|
47 | + return $this->openTag($form).$formContent.$this->closeTag(); |
|
48 | 48 | } |
49 | 49 | } |
@@ -36,12 +36,12 @@ |
||
36 | 36 | $formContent = ''; |
37 | 37 | foreach ($form as $element) { |
38 | 38 | if ($element instanceof FieldsetInterface) { |
39 | - $formContent.= $this->getView()->formCollection($element); |
|
39 | + $formContent .= $this->getView()->formCollection($element); |
|
40 | 40 | } else { |
41 | - $formContent.= $this->getView()->formRowSimple($element); |
|
41 | + $formContent .= $this->getView()->formRowSimple($element); |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 | |
45 | - return $this->openTag($form) . $formContent . $this->closeTag(); |
|
45 | + return $this->openTag($form).$formContent.$this->closeTag(); |
|
46 | 46 | } |
47 | 47 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | |
64 | 64 | return sprintf( |
65 | - '<div class="controls controls-row ' . $form_row_class . '">%s%s</div>', |
|
65 | + '<div class="controls controls-row '.$form_row_class.'">%s%s</div>', |
|
66 | 66 | $labelMarkup, |
67 | 67 | $markups |
68 | 68 | ); |