@@ -46,8 +46,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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']) |