Passed
Pull Request — master (#89)
by Ralf
03:35
created
Classes/Services/ProcessNumber/ProcessNumberGenerator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
 use EWW\Dpf\Domain\Model\ProcessNumber;
21 21
 use EWW\Dpf\Domain\Repository\ClientRepository;
22 22
 
23
-class ProcessNumberGenerator
24
-{
23
+class ProcessNumberGenerator {
25 24
     public function getProcessNumber($ownerId = NULL) {
26 25
         $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
27 26
         $processNumberRepository = $objectManager->get(ProcessNumberRepository::class);
Please login to merge, or discard this patch.
Classes/Services/Transfer/ElasticsearchRepository.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
23 23
 use TYPO3\CMS\Extbase\Object\ObjectManager;
24 24
 use EWW\Dpf\Configuration\ClientConfigurationManager;
25 25
 
26
-class ElasticsearchRepository implements Repository
27
-{
26
+class ElasticsearchRepository implements Repository {
28 27
 
29 28
     /**
30 29
      * clientRepository
@@ -42,8 +41,7 @@  discard block
 block discarded – undo
42 41
 
43 42
     protected $url;
44 43
 
45
-    public function __construct()
46
-    {
44
+    public function __construct() {
47 45
 
48 46
         $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
49 47
         $clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class);
@@ -62,8 +60,7 @@  discard block
 block discarded – undo
62 60
      * saves new document into elasticsearch local
63 61
      * @param \EWW\Dpf\Domain\Model\Document $document
64 62
      */
65
-    public function add($document, $json)
66
-    {
63
+    public function add($document, $json) {
67 64
 
68 65
         $client = $this->clientRepository->findAll()->current();
69 66
 
@@ -94,8 +91,7 @@  discard block
 block discarded – undo
94 91
      * @param \EWW\Dpf\Domain\Model\Document $document
95 92
      * @param string $state
96 93
      */
97
-    public function delete($document, $state)
98
-    {
94
+    public function delete($document, $state) {
99 95
 
100 96
         try {
101 97
             $response = Request::delete($this->url . $document->getUid())
@@ -107,23 +103,19 @@  discard block
 block discarded – undo
107 103
 
108 104
     }
109 105
 
110
-    public function retrieve($id)
111
-    {
106
+    public function retrieve($id) {
112 107
         # not implemented yet
113 108
     }
114 109
 
115
-    public function ingest($document, $metsXML)
116
-    {
110
+    public function ingest($document, $metsXML) {
117 111
         # not implemented yet
118 112
     }
119 113
 
120
-    public function update($document, $metsXml)
121
-    {
114
+    public function update($document, $metsXml) {
122 115
         # not implemented yet
123 116
     }
124 117
 
125
-    public function getNextDocumentId()
126
-    {
118
+    public function getNextDocumentId() {
127 119
         # not implemented yet
128 120
     }
129 121
 
Please login to merge, or discard this patch.
Classes/Services/Transfer/DocumentTransferManager.php 2 patches
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 use EWW\Dpf\Services\Transfer\ElasticsearchRepository;
19 19
 use EWW\Dpf\Domain\Model\File;
20 20
 
21
-class DocumentTransferManager
22
-{
21
+class DocumentTransferManager {
23 22
 
24 23
     /**
25 24
      * documenRepository
@@ -73,8 +72,7 @@  discard block
 block discarded – undo
73 72
      *
74 73
      * @param \EWW\Dpf\Services\Transfer\Repository $remoteRepository
75 74
      */
76
-    public function setRemoteRepository($remoteRepository)
77
-    {
75
+    public function setRemoteRepository($remoteRepository) {
78 76
 
79 77
         $this->remoteRepository = $remoteRepository;
80 78
 
@@ -86,8 +84,7 @@  discard block
 block discarded – undo
86 84
      * @param \EWW\Dpf\Domain\Model\Document $document
87 85
      * @return boolean
88 86
      */
89
-    public function ingest($document)
90
-    {
87
+    public function ingest($document) {
91 88
 
92 89
         $document->setTransferStatus(Document::TRANSFER_QUEUED);
93 90
         $this->documentRepository->update($document);
@@ -143,8 +140,7 @@  discard block
 block discarded – undo
143 140
      * @param \EWW\Dpf\Domain\Model\Document $document
144 141
      * @return boolean
145 142
      */
146
-    public function update($document)
147
-    {
143
+    public function update($document) {
148 144
 
149 145
         $document->setTransferStatus(Document::TRANSFER_QUEUED);
150 146
         $this->documentRepository->update($document);
@@ -196,8 +192,7 @@  discard block
 block discarded – undo
196 192
      * @param string $remoteId
197 193
      * @return boolean
198 194
      */
199
-    public function retrieve($remoteId)
200
-    {
195
+    public function retrieve($remoteId) {
201 196
 
202 197
         $metsXml = $this->remoteRepository->retrieve($remoteId);
203 198
 
@@ -291,8 +286,7 @@  discard block
 block discarded – undo
291 286
      * @param string $state
292 287
      * @return boolean
293 288
      */
294
-    public function delete($document, $state)
295
-    {
289
+    public function delete($document, $state) {
296 290
 
297 291
         $document->setTransferStatus(Document::TRANSFER_QUEUED);
298 292
         $this->documentRepository->update($document);
@@ -327,8 +321,7 @@  discard block
 block discarded – undo
327 321
         }
328 322
     }
329 323
 
330
-    public function getNextDocumentId()
331
-    {
324
+    public function getNextDocumentId() {
332 325
         $nextDocumentIdXML = $this->remoteRepository->getNextDocumentId();
333 326
 
334 327
         if (empty($nextDocumentIdXML)) {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
             $elasticsearchRepository = $this->objectManager->get(ElasticsearchRepository::class);
129 129
             $elasticsearchRepository->delete($document, "");
130 130
 
131
-            return true;
131
+            return TRUE;
132 132
         } else {
133 133
             $document->setTransferStatus(Document::TRANSFER_ERROR);
134 134
             $this->documentRepository->update($document);
135
-            return false;
135
+            return FALSE;
136 136
         }
137 137
 
138 138
     }
@@ -181,11 +181,11 @@  discard block
 block discarded – undo
181 181
             $elasticsearchRepository = $this->objectManager->get(ElasticsearchRepository::class);
182 182
             $elasticsearchRepository->delete($document, "");
183 183
 
184
-            return true;
184
+            return TRUE;
185 185
         } else {
186 186
             $document->setTransferStatus(Document::TRANSFER_ERROR);
187 187
             $this->documentRepository->update($document);
188
-            return false;
188
+            return FALSE;
189 189
         }
190 190
 
191 191
     }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             $documentType     = $this->documentTypeRepository->findOneByName($documentTypeName);
218 218
 
219 219
             if (empty($title) || empty($documentType)) {
220
-                return false;
220
+                return FALSE;
221 221
             }
222 222
 
223 223
             $state = $mets->getState();
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
                 $file->setArchive($attachment['archive']);
268 268
 
269 269
                 if ($attachment['id'] == \EWW\Dpf\Domain\Model\File::PRIMARY_DATASTREAM_IDENTIFIER) {
270
-                    $file->setPrimaryFile(true);
270
+                    $file->setPrimaryFile(TRUE);
271 271
                 }
272 272
 
273 273
                 $file->setDocument($document);
@@ -275,13 +275,13 @@  discard block
 block discarded – undo
275 275
                 $this->fileRepository->add($file);
276 276
             }
277 277
 
278
-            return true;
278
+            return TRUE;
279 279
 
280 280
         } else {
281
-            return false;
281
+            return FALSE;
282 282
         }
283 283
 
284
-        return false;
284
+        return FALSE;
285 285
     }
286 286
 
287 287
     /**
@@ -319,11 +319,11 @@  discard block
 block discarded – undo
319 319
                     break;
320 320
             }
321 321
 
322
-            return true;
322
+            return TRUE;
323 323
         } else {
324 324
             $document->setTransferStatus(Document::TRANSFER_ERROR);
325 325
             $this->documentRepository->update($document);
326
-            return false;
326
+            return FALSE;
327 327
         }
328 328
     }
329 329
 
Please login to merge, or discard this patch.
Classes/Services/Logger/TransferLogger.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 use EWW\Dpf\Domain\Repository\DocumentTransferLogRepository;
19 19
 use EWW\Dpf\Domain\Model\DocumentTransferLog;
20 20
 
21
-class TransferLogger
22
-{
21
+class TransferLogger {
23 22
 
24 23
     /**
25 24
      * Logs the response of a document repository transfer
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
      * @param
28 27
      * @return void
29 28
      */
30
-    public static function log($action, $documentUid, $objectIdentifier, $response)
31
-    {
29
+    public static function log($action, $documentUid, $objectIdentifier, $response) {
32 30
 
33 31
         $objectManager                 = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
34 32
         $documentTransferLogRepository = $objectManager->get(DocumentTransferLogRepository::class);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $documentTransferLogRepository = $objectManager->get(DocumentTransferLogRepository::class);
35 35
 
36 36
         $documentTransferLog = $objectManager->get(DocumentTransferLog::class);
37
-        $documentTransferLog->setResponse(print_r($response, true));
37
+        $documentTransferLog->setResponse(print_r($response, TRUE));
38 38
         $documentTransferLog->setAction($action);
39 39
         $documentTransferLog->setDocumentUid($documentUid);
40 40
         $documentTransferLog->setObjectIdentifier($objectIdentifier);
Please login to merge, or discard this patch.
Classes/Services/ElasticSearch.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 /**
22 22
  * ElasticSearch
23 23
  */
24
-class ElasticSearch
25
-{
24
+class ElasticSearch {
26 25
     protected $es;
27 26
 
28 27
     protected $server = ''; //127.0.0.1';
@@ -40,8 +39,7 @@  discard block
 block discarded – undo
40 39
     /**
41 40
      * elasticsearch client constructor
42 41
      */
43
-    public function __construct()
44
-    {
42
+    public function __construct() {
45 43
         $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
46 44
         $clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class);
47 45
 
@@ -69,8 +67,7 @@  discard block
 block discarded – undo
69 67
      * @param  array $query search query
70 68
      * @return array        result list
71 69
      */
72
-    public function search($query, $type)
73
-    {
70
+    public function search($query, $type) {
74 71
         // define type and index
75 72
         if (empty($query['index'])) {
76 73
             $query['index'] = $this->index;
@@ -94,8 +91,7 @@  discard block
 block discarded – undo
94 91
      * returns the result list
95 92
      * @return [type] [description]
96 93
      */
97
-    public function getResults()
98
-    {
94
+    public function getResults() {
99 95
         // return results from the last search request
100 96
         return $this->resultList;
101 97
     }
Please login to merge, or discard this patch.
Classes/Controller/AbstractSearchController.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 use TYPO3\CMS\Core\Utility\GeneralUtility;
18 18
 use EWW\Dpf\Services\ElasticSearch;
19 19
 
20
-abstract class AbstractSearchController extends \EWW\Dpf\Controller\AbstractController
21
-{
20
+abstract class AbstractSearchController extends \EWW\Dpf\Controller\AbstractController {
22 21
     // search terms
23 22
     private static $terms   = ['_id', 'OWNER_ID', 'submitter', 'project'];
24 23
 
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
      * @param  array $query elasticsearch search query
31 30
      * @return array        results
32 31
      */
33
-    public function getResultList($query, $type)
34
-    {
32
+    public function getResultList($query, $type) {
35 33
 
36 34
         $elasticSearch = $this->objectManager->get(ElasticSearch::class);
37 35
         $results = $elasticSearch->search($query, $type);
@@ -44,8 +42,7 @@  discard block
 block discarded – undo
44 42
      * @param  string $searchString
45 43
      * @return array query
46 44
      */
47
-    public function searchFulltext($searchString)
48
-    {
45
+    public function searchFulltext($searchString) {
49 46
         // don't return query if searchString is empty
50 47
         if (empty($searchString)) {
51 48
             return null;
@@ -68,8 +65,7 @@  discard block
 block discarded – undo
68 65
      * build array for elasticsearch
69 66
      * @return array Elasticsearch query array
70 67
      */
71
-    public function extendedSearch($searchArray = array())
72
-    {
68
+    public function extendedSearch($searchArray = array()) {
73 69
 
74 70
         $query  = array();
75 71
         $filter = array();
@@ -116,8 +112,7 @@  discard block
 block discarded – undo
116 112
      * @param array Elasticsearch query array
117 113
      * @return array Elasticsearch queryFilter array
118 114
      */
119
-    public function resultsFilter($query, $showDeleted = false)
120
-    {
115
+    public function resultsFilter($query, $showDeleted = false) {
121 116
 
122 117
         $queryFilter = array();
123 118
 
@@ -201,8 +196,7 @@  discard block
 block discarded – undo
201 196
      * @param  bool      $intervalEnd Fills missing values with the maximum possible date if true
202 197
      * @return DateTime               Determined date
203 198
      */
204
-    public function convertFormDate($dateString, $intervalEnd = false)
205
-    {
199
+    public function convertFormDate($dateString, $intervalEnd = false) {
206 200
         try {
207 201
             if (strlen($dateString) == 4) {
208 202
                 // assuming year
@@ -223,8 +217,7 @@  discard block
 block discarded – undo
223 217
      * @param $string
224 218
      * @return mixed
225 219
      */
226
-    private function escapeQuery($string)
227
-    {
220
+    private function escapeQuery($string) {
228 221
         $luceneReservedCharacters = preg_quote('+-&|!(){}[]^"~?:\\');
229 222
         $string                   = preg_replace_callback(
230 223
             '/([' . $luceneReservedCharacters . '])/',
@@ -242,8 +235,7 @@  discard block
 block discarded – undo
242 235
      * @param $date
243 236
      * @return string
244 237
      */
245
-    public function formatDate($date)
246
-    {
238
+    public function formatDate($date) {
247 239
         // convert date from dd.mm.yyy to yyyy-dd-mm
248 240
         $date = explode(".", $date);
249 241
         return $date[2] . '-' . $date[1] . '-' . $date[0];
Please login to merge, or discard this patch.
Classes/Controller/AbstractDocumentFormController.php 1 patch
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
 /**
25 25
  * DocumentFormController
26 26
  */
27
-abstract class AbstractDocumentFormController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
28
-{
27
+abstract class AbstractDocumentFormController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
29 28
 
30 29
     /**
31 30
      * documentRepository
@@ -80,8 +79,7 @@  discard block
 block discarded – undo
80 79
      *
81 80
      * @return void
82 81
      */
83
-    public function listAction()
84
-    {
82
+    public function listAction() {
85 83
 
86 84
         $documents = $this->documentRepository->findAll();
87 85
 
@@ -130,8 +128,7 @@  discard block
 block discarded – undo
130 128
      * @param \EWW\Dpf\Domain\Model\Document $document
131 129
      * @return void
132 130
      */
133
-    public function showAction(\EWW\Dpf\Domain\Model\Document $document)
134
-    {
131
+    public function showAction(\EWW\Dpf\Domain\Model\Document $document) {
135 132
 
136 133
         $this->view->assign('document', $document);
137 134
     }
@@ -141,8 +138,7 @@  discard block
 block discarded – undo
141 138
      *
142 139
      * @return void
143 140
      */
144
-    public function initializeNewAction()
145
-    {
141
+    public function initializeNewAction() {
146 142
 
147 143
         $requestArguments = $this->request->getArguments();
148 144
 
@@ -170,13 +166,11 @@  discard block
 block discarded – undo
170 166
      * @ignorevalidation $newDocumentForm
171 167
      * @return void
172 168
      */
173
-    public function newAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm = null)
174
-    {
169
+    public function newAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm = null) {
175 170
         $this->view->assign('documentForm', $newDocumentForm);
176 171
     }
177 172
 
178
-    public function initializeCreateAction()
179
-    {
173
+    public function initializeCreateAction() {
180 174
 
181 175
         $requestArguments = $this->request->getArguments();
182 176
 
@@ -210,8 +204,7 @@  discard block
 block discarded – undo
210 204
      * @param \EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm
211 205
      * @return void
212 206
      */
213
-    public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm)
214
-    {
207
+    public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm) {
215 208
 
216 209
         $documentMapper = $this->objectManager->get(DocumentMapper::class);
217 210
         $newDocument    = $documentMapper->getDocument($newDocumentForm);
@@ -259,8 +252,7 @@  discard block
 block discarded – undo
259 252
         $this->redirectToList('CREATE_OK');
260 253
     }
261 254
 
262
-    public function initializeEditAction()
263
-    {
255
+    public function initializeEditAction() {
264 256
 
265 257
         $requestArguments = $this->request->getArguments();
266 258
 
@@ -284,13 +276,11 @@  discard block
 block discarded – undo
284 276
      * @ignorevalidation $documentForm
285 277
      * @return void
286 278
      */
287
-    public function editAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm)
288
-    {
279
+    public function editAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm) {
289 280
         $this->view->assign('documentForm', $documentForm);
290 281
     }
291 282
 
292
-    public function initializeUpdateAction()
293
-    {
283
+    public function initializeUpdateAction() {
294 284
         $requestArguments = $this->request->getArguments();
295 285
 
296 286
         if ($this->request->hasArgument('documentData')) {
@@ -323,8 +313,7 @@  discard block
 block discarded – undo
323 313
      * @param \EWW\Dpf\Domain\Model\DocumentForm $documentForm
324 314
      * @return void
325 315
      */
326
-    public function updateAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm)
327
-    {
316
+    public function updateAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm) {
328 317
 
329 318
         $requestArguments = $this->request->getArguments();
330 319
 
@@ -374,18 +363,15 @@  discard block
 block discarded – undo
374 363
      *
375 364
      * @return void
376 365
      */
377
-    public function cancelAction()
378
-    {
366
+    public function cancelAction() {
379 367
         $this->redirectToList();
380 368
     }
381 369
 
382
-    public function initializeAction()
383
-    {
370
+    public function initializeAction() {
384 371
         parent::initializeAction();
385 372
     }
386 373
 
387
-    protected function redirectToList($message = null)
388
-    {
374
+    protected function redirectToList($message = null) {
389 375
         $this->redirect('list');
390 376
     }
391 377
 
Please login to merge, or discard this patch.
Classes/Controller/ClientController.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     protected $persistenceManager;
58 58
 
59 59
     // TypoScript settings
60
-    protected $settings = array();
60
+    protected $settings = array ();
61 61
 
62 62
     // Id of the selected page in the page tree
63 63
     protected $selectedPageUid;
@@ -218,10 +218,10 @@  discard block
 block discarded – undo
218 218
 
219 219
         if ($inputOptionTranslator->hasTranslation($inputOptionTranslator->getDefaultLanguage())) {
220 220
             $valueLabelList = $inputOptionTranslator->translate($iso6392b->getValues());
221
-            $displayName    = $inputOptionTranslator->translate(array('languageList'));
221
+            $displayName    = $inputOptionTranslator->translate(array ('languageList'));
222 222
         } else {
223 223
             $valueLabelList = $inputOptionTranslator->translate($iso6392b->getValues(), 'en');
224
-            $displayName    = $inputOptionTranslator->translate(array('languageList'), 'en');
224
+            $displayName    = $inputOptionTranslator->translate(array ('languageList'), 'en');
225 225
         }
226 226
         $languageOptionList->setDisplayName(implode('', $displayName));
227 227
         $languageOptionList->setValueLabelList(implode('|', $valueLabelList));
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
                     if ($inputOptionTranslator->hasTranslation($langIsoCode)) {
239 239
                         // only when a translation exists, a translation dataset is created
240 240
                         $valueLabelList = $inputOptionTranslator->translate($iso6392b->getValues(), $langIsoCode);
241
-                        $displayName    = $inputOptionTranslator->translate(array('languageList'), $langIsoCode);
241
+                        $displayName    = $inputOptionTranslator->translate(array ('languageList'), $langIsoCode);
242 242
 
243 243
                         $translatedOptionList = $this->objectManager->get(InputOptionList::class);
244 244
                         $translatedOptionList->setDisplayName(implode('', $displayName));
Please login to merge, or discard this patch.
Braces   +9 added lines, -18 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 /**
22 22
  * ClientController
23 23
  */
24
-class ClientController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
25
-{
24
+class ClientController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
26 25
 
27 26
     /**
28 27
      * sysLanguageRepository
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
     // Page information of selected page
66 65
     protected $pageInfo;
67 66
 
68
-    protected function initializeAction()
69
-    {
67
+    protected function initializeAction() {
70 68
 
71 69
         $this->selectedPageUid = (int) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id');
72 70
 
@@ -80,13 +78,11 @@  discard block
 block discarded – undo
80 78
         );
81 79
     }
82 80
 
83
-    protected function getPageInfo($pageUid)
84
-    {
81
+    protected function getPageInfo($pageUid) {
85 82
         return \TYPO3\CMS\Backend\Utility\BackendUtility::readPageAccess($pageUid, $GLOBALS['BE_USER']->getPagePermsClause(1));
86 83
     }
87 84
 
88
-    protected function initializeView(\TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view)
89
-    {
85
+    protected function initializeView(\TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view) {
90 86
         parent::initializeView($view);
91 87
 
92 88
     }
@@ -96,8 +92,7 @@  discard block
 block discarded – undo
96 92
      *
97 93
      * @param \EWW\Dpf\Domain\Model\Client $newClient
98 94
      */
99
-    public function newAction(\EWW\Dpf\Domain\Model\Client $newClient = null)
100
-    {
95
+    public function newAction(\EWW\Dpf\Domain\Model\Client $newClient = null) {
101 96
         if ($this->isValidClientFolder()) {
102 97
 
103 98
             $this->addFlashMessage(
@@ -118,8 +113,7 @@  discard block
 block discarded – undo
118 113
      *
119 114
      * @param \EWW\Dpf\Domain\Model\Client $newClient
120 115
      */
121
-    public function createAction(\EWW\Dpf\Domain\Model\Client $newClient)
122
-    {
116
+    public function createAction(\EWW\Dpf\Domain\Model\Client $newClient) {
123 117
 
124 118
         if ($this->isValidClientFolder()) {
125 119
             $newClient->setPid($this->selectedPageUid);
@@ -143,13 +137,11 @@  discard block
 block discarded – undo
143 137
      * default action
144 138
      *
145 139
      */
146
-    public function defaultAction()
147
-    {
140
+    public function defaultAction() {
148 141
 
149 142
     }
150 143
 
151
-    protected function isValidClientFolder()
152
-    {
144
+    protected function isValidClientFolder() {
153 145
 
154 146
         if (!$this->selectedPageUid) {
155 147
             $this->addFlashMessage(
@@ -199,8 +191,7 @@  discard block
 block discarded – undo
199 191
      *
200 192
      * @param integer $storagePid
201 193
      */
202
-    protected function addBaseInputOptionLists($storagePid)
203
-    {
194
+    protected function addBaseInputOptionLists($storagePid) {
204 195
 
205 196
         $iso6392b = $this->objectManager->get(Iso6392b::class);
206 197
 
Please login to merge, or discard this patch.
Classes/Controller/AjaxDocumentFormController.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 /**
22 22
  * DocumentFormController
23 23
  */
24
-class AjaxDocumentFormController extends \EWW\Dpf\Controller\AbstractController
25
-{
24
+class AjaxDocumentFormController extends \EWW\Dpf\Controller\AbstractController {
26 25
 
27 26
     /**
28 27
      * metadataGroupRepository
@@ -47,8 +46,7 @@  discard block
 block discarded – undo
47 46
      * @param integer $groupIndex
48 47
      * @return void
49 48
      */
50
-    public function groupAction($pageUid, $groupUid, $groupIndex)
51
-    {
49
+    public function groupAction($pageUid, $groupUid, $groupIndex) {
52 50
 
53 51
         $group = $this->metadataGroupRepository->findByUid($groupUid);
54 52
 
@@ -91,8 +89,7 @@  discard block
 block discarded – undo
91 89
      * @param integer $fieldIndex
92 90
      * @return void
93 91
      */
94
-    public function fieldAction($pageUid, $groupUid, $groupIndex, $fieldUid, $fieldIndex)
95
-    {
92
+    public function fieldAction($pageUid, $groupUid, $groupIndex, $fieldUid, $fieldIndex) {
96 93
 
97 94
         $field = $this->metadataObjectRepository->findByUid($fieldUid);
98 95
 
@@ -123,8 +120,7 @@  discard block
 block discarded – undo
123 120
      *
124 121
      * @return void
125 122
      */
126
-    public function primaryUploadAction($groupIndex)
127
-    {
123
+    public function primaryUploadAction($groupIndex) {
128 124
     }
129 125
 
130 126
     /**
@@ -132,8 +128,7 @@  discard block
 block discarded – undo
132 128
      * @param integer $groupIndex
133 129
      * @return void
134 130
      */
135
-    public function secondaryUploadAction($groupIndex)
136
-    {
131
+    public function secondaryUploadAction($groupIndex) {
137 132
         $this->view->assign('groupIndex', $groupIndex);
138 133
         //$this->view->assign('displayName','Sekundärdatei');
139 134
     }
@@ -144,8 +139,7 @@  discard block
 block discarded – undo
144 139
      * @param integer $isPrimary
145 140
      * @return void
146 141
      */
147
-    public function deleteFileAction($fileUid, $isPrimary = 0)
148
-    {
142
+    public function deleteFileAction($fileUid, $isPrimary = 0) {
149 143
         $this->view->assign('fileUid', $fileUid);
150 144
         $this->view->assign('isPrimary', $isPrimary);
151 145
     }
@@ -155,8 +149,7 @@  discard block
 block discarded – undo
155 149
      * @param string $qucosaId
156 150
      * @return string
157 151
      */
158
-    public function fillOutAction($qucosaId)
159
-    {
152
+    public function fillOutAction($qucosaId) {
160 153
 
161 154
         $urnService = $this->objectManager->get(Urn::class);
162 155
 
Please login to merge, or discard this patch.