Completed
Pull Request — develop (#280)
by
unknown
11:07
created
module/Applications/src/Applications/Options/ModuleOptions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @var array $attachmentsMimeType
37 37
      */
38
-    protected $attachmentsMimeType = array('image','applications/pdf',
38
+    protected $attachmentsMimeType = array('image', 'applications/pdf',
39 39
         'application/x-pdf',
40 40
         'application/acrobat',
41 41
         'applications/vnd.pdf',
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     public function setAllowSubsequentAttachmentUpload($allowSubsequentAttachmentUpload)
235 235
     {
236
-        $this->allowSubsequentAttachmentUpload = (bool)$allowSubsequentAttachmentUpload;
236
+        $this->allowSubsequentAttachmentUpload = (bool) $allowSubsequentAttachmentUpload;
237 237
         
238 238
         return $this;
239 239
     }
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormFileUpload.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -98,12 +98,12 @@  discard block
 block discarded – undo
98 98
     </a>
99 99
     <div class="fu-errors input-error">
100 100
         <ul class="errors">
101
-            <li class="fu-error-size">' . $translator->translate('The file is too big', $textDomain) . '</li>
102
-            <li class="fu-error-type">' . $translator->translate('The file type is not supported', $textDomain) . '</li>
101
+            <li class="fu-error-size">' . $translator->translate('The file is too big', $textDomain).'</li>
102
+            <li class="fu-error-type">' . $translator->translate('The file type is not supported', $textDomain).'</li>
103 103
             <li class="fu-error-count">' . sprintf(
104 104
     $translator->translate('You may only upload %d files', $textDomain),
105 105
     $element->getAttribute('data-maxfilecount')
106
-) . '</li><li class="fu-error-general">' . $translator->translate('An unknown error occured.') . '</li>
106
+).'</li><li class="fu-error-general">'.$translator->translate('An unknown error occured.').'</li>
107 107
         </ul>
108 108
    </div>
109 109
 </li>';
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         /* @var $basepath \Zend\View\Helper\BasePath */
112 112
         $renderer          = $this->getView();
113 113
         $basepath          = $renderer->plugin('basepath');
114
-        $createFileDisplay = function ($file) use ($template, $basepath) {
114
+        $createFileDisplay = function($file) use ($template, $basepath) {
115 115
             /* @var $file \Core\Entity\FileInterface */
116 116
             $uri  = $basepath($file->getUri());
117 117
             $name = $file->getName();
@@ -146,11 +146,11 @@  discard block
 block discarded – undo
146 146
         }
147 147
 
148 148
         $nonemptynotice =
149
-            '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>'
150
-            . $this->getNonEmptyNotice() . '</div>';
149
+            '<div class="fu-nonempty-notice"'.('' == trim($preview) ? ' style="display:none;"' : '').'>'
150
+            . $this->getNonEmptyNotice().'</div>';
151 151
         $emptynotice    = '<div class="fu-empty-notice"'
152
-                          . ('' == trim($preview) ? '' : ' style="display: none;"') . '>
153
-                       ' . $this->getEmptyNotice() . '
152
+                          . ('' == trim($preview) ? '' : ' style="display: none;"').'>
153
+                       ' . $this->getEmptyNotice().'
154 154
                   </div>';
155 155
 
156 156
         $markup = '
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 	 */
299 299
 	protected function getDefaultNotice()
300 300
 	{
301
-		return '<small>' . $this->getTranslator()->translate('Click here to add files or use drag and drop.') . '</small>';
301
+		return '<small>'.$this->getTranslator()->translate('Click here to add files or use drag and drop.').'</small>';
302 302
 	}
303 303
 	
304 304
     /**
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 	 */
309 309
 	public function setAllowRemove($allowRemove)
310 310
 	{
311
-		$this->allowRemove = (bool)$allowRemove;
311
+		$this->allowRemove = (bool) $allowRemove;
312 312
 		
313 313
 		return $this;
314 314
 	}
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 	 */
321 321
 	public function setAllowClickableDropZone($allowClickableDropZone)
322 322
 	{
323
-		$this->allowClickableDropZone = (bool)$allowClickableDropZone;
323
+		$this->allowClickableDropZone = (bool) $allowClickableDropZone;
324 324
 		
325 325
 		return $this;
326 326
 	}
Please login to merge, or discard this patch.