Passed
Pull Request — master (#74)
by
unknown
02:39
created
Classes/Controller/GetFileController.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
 /**
47 47
  * GetFileController
48 48
  */
49
-class GetFileController extends \EWW\Dpf\Controller\AbstractController
50
-{
49
+class GetFileController extends \EWW\Dpf\Controller\AbstractController {
51 50
 
52 51
     /**
53 52
      * documentRepository
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      */
66 65
     protected $clientConfigurationManager;
67 66
 
68
-    public function attachmentAction()
69
-    {
67
+    public function attachmentAction() {
70 68
 
71 69
         $piVars = GeneralUtility::_GP('tx_dpf'); // get GET params from powermail
72 70
 
@@ -237,8 +235,7 @@  discard block
 block discarded – undo
237 235
 
238 236
     }
239 237
 
240
-    private static function sanitizeFilename($filename)
241
-    {
238
+    private static function sanitizeFilename($filename) {
242 239
         // remove anything which isn't a word, whitespace, number or any of the following caracters -_~,;[]().
243 240
         $filename = mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $filename);
244 241
         // turn diacritical characters to ASCII
@@ -250,8 +247,7 @@  discard block
 block discarded – undo
250 247
         return $filename;
251 248
     }
252 249
 
253
-    private function buildMetsXml($document)
254
-    {
250
+    private function buildMetsXml($document) {
255 251
 
256 252
         $exporter = new \EWW\Dpf\Services\MetsExporter();
257 253
         $fileData = $document->getCurrentFileData();
@@ -275,8 +271,7 @@  discard block
 block discarded – undo
275 271
         return $metsXml;
276 272
     }
277 273
 
278
-    private function isForbidden($action)
279
-    {
274
+    private function isForbidden($action) {
280 275
         $allowed =
281 276
             array_key_exists('allowedActions', $this->settings)
282 277
             && is_array($this->settings['allowedActions'])
Please login to merge, or discard this patch.