Passed
Pull Request — master (#209)
by
unknown
33:50 queued 24:56
created
Classes/Domain/Model/TransformationFile.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 /**
18 18
  * File
19 19
  */
20
-class TransformationFile extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
21
-{
20
+class TransformationFile extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
22 21
 
23 22
     /**
24 23
      * title
@@ -52,8 +51,7 @@  discard block
 block discarded – undo
52 51
     /**
53 52
      * @param string $title
54 53
      */
55
-    public function setTitle(string $title)
56
-    {
54
+    public function setTitle(string $title) {
57 55
         $this->title = $title;
58 56
     }
59 57
 
@@ -68,8 +66,7 @@  discard block
 block discarded – undo
68 66
     /**
69 67
      * @param string $label
70 68
      */
71
-    public function setLabel(string $label)
72
-    {
69
+    public function setLabel(string $label) {
73 70
         $this->label = $label;
74 71
     }
75 72
 
@@ -84,8 +81,7 @@  discard block
 block discarded – undo
84 81
     /**
85 82
      * @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $file
86 83
      */
87
-    public function setFile(\TYPO3\CMS\Extbase\Domain\Model\FileReference $file)
88
-    {
84
+    public function setFile(\TYPO3\CMS\Extbase\Domain\Model\FileReference $file) {
89 85
         $this->file = $file;
90 86
     }
91 87
 
Please login to merge, or discard this patch.
Classes/Domain/Model/DepositLicenseLog.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
 /**
18 18
  * Document
19 19
  */
20
-class DepositLicenseLog extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
21
-{
20
+class DepositLicenseLog extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
22 21
     /**
23 22
      * @var string
24 23
      */
Please login to merge, or discard this patch.
Classes/Domain/Repository/DepositLicenseLogRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 /**
18 18
  * The repository for DepositLicenseLog
19 19
  */
20
-class DepositLicenseLogRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository
21
-{
20
+class DepositLicenseLogRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository {
22 21
 
23 22
 }
Please login to merge, or discard this patch.
Classes/Domain/Repository/DepositLicenseRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 /**
18 18
  * The repository for DepositLicense
19 19
  */
20
-class DepositLicenseRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository
21
-{
20
+class DepositLicenseRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository {
22 21
 
23 22
 }
Please login to merge, or discard this patch.
Classes/Domain/Repository/ExternalMetadataRepository.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     {
31 31
         $query = $this->createQuery();
32 32
 
33
-        $constraints = array();
33
+        $constraints = array ();
34 34
         $constraints[] = $query->equals('publication_identifier', $identifier);
35 35
         $constraints[] = $query->equals('fe_user', $feUser);
36 36
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 /**
18 18
  * The repository for to be imported external metadata
19 19
  */
20
-class ExternalMetadataRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository
21
-{
20
+class ExternalMetadataRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository {
22 21
     /**
23 22
      * Find external metadata by a frontend user uid and a publication identifier.
24 23
      *
@@ -26,8 +25,7 @@  discard block
 block discarded – undo
26 25
      * @param string $identifier
27 26
      * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
28 27
      */
29
-    public function findOneByUserAndPublicationIdentifier($feUser, $identifier)
30
-    {
28
+    public function findOneByUserAndPublicationIdentifier($feUser, $identifier) {
31 29
         $query = $this->createQuery();
32 30
 
33 31
         $constraints = array();
@@ -44,8 +42,7 @@  discard block
 block discarded – undo
44 42
      * @param $feUserUid
45 43
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
46 44
      */
47
-    public function clearExternalMetadataByFeUserUid($feUserUid)
48
-    {
45
+    public function clearExternalMetadataByFeUserUid($feUserUid) {
49 46
         $metadata = $this->findByFeUser($feUserUid);
50 47
 
51 48
         foreach ($metadata as $metadataItem) {
Please login to merge, or discard this patch.
Classes/Domain/Repository/MetadataGroupRepository.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
  */
20 20
 class MetadataGroupRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository
21 21
 {
22
-    public function findPersonGroup(){
22
+    public function findPersonGroup() {
23 23
 
24 24
         $query = $this->createQuery();
25 25
 
26
-        $constraints = array();
27
-        $constraints[] =  $query->like('group_type', '%Person%');
28
-        $constraints[] =  $query->like('group_type', '%Fis%');
26
+        $constraints = array ();
27
+        $constraints[] = $query->like('group_type', '%Person%');
28
+        $constraints[] = $query->like('group_type', '%Fis%');
29 29
 
30 30
         if (count($constraints)) {
31 31
             $query->matching(
Please login to merge, or discard this patch.
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,8 @@
 block discarded – undo
17 17
 /**
18 18
  * The repository for MetadataGroups
19 19
  */
20
-class MetadataGroupRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository
21
-{
22
-    public function findPersonGroup(){
20
+class MetadataGroupRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository {
21
+    public function findPersonGroup() {
23 22
 
24 23
         $query = $this->createQuery();
25 24
 
Please login to merge, or discard this patch.
Classes/Domain/Repository/DocumentTypeRepository.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $documentTypes = $this->findAll();
25 25
 
26
-        $data = array();
27
-        $docTypes = array();
28
-        $name = array();
29
-        $type = array();
26
+        $data = array ();
27
+        $docTypes = array ();
28
+        $name = array ();
29
+        $type = array ();
30 30
 
31 31
         foreach ($documentTypes as $docType) {
32
-            $data[] = array(
32
+            $data[] = array (
33 33
                 "name" => $docType->getDisplayName(),
34 34
                 "type" => $docType,
35 35
             );
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $query = $this->createQuery();
60 60
         $query->matching(
61
-            $query->like($externalTypesDbColumn, '%"'.$type.'"%')
61
+            $query->like($externalTypesDbColumn, '%"' . $type . '"%')
62 62
         );
63 63
 
64 64
         return $query->execute()->getFirst();
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,10 +17,8 @@  discard block
 block discarded – undo
17 17
 /**
18 18
  * The repository for DocumentTypes
19 19
  */
20
-class DocumentTypeRepository extends AbstractRepository
21
-{
22
-    public function getDocumentTypesAlphabetically()
23
-    {
20
+class DocumentTypeRepository extends AbstractRepository {
21
+    public function getDocumentTypesAlphabetically() {
24 22
         $documentTypes = $this->findAll();
25 23
 
26 24
         $data = array();
@@ -54,8 +52,7 @@  discard block
 block discarded – undo
54 52
      * @param string $externalTypesDbColumn
55 53
      * @return object
56 54
      */
57
-    public function findOneByExternalType($type, $externalTypesDbColumn)
58
-    {
55
+    public function findOneByExternalType($type, $externalTypesDbColumn) {
59 56
         $query = $this->createQuery();
60 57
         $query->matching(
61 58
             $query->like($externalTypesDbColumn, '%"'.$type.'"%')
Please login to merge, or discard this patch.
Classes/Configuration/ClientConfigurationManager.php 3 patches
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @var \EWW\Dpf\Domain\Model\Client
53 53
      */
54
-    protected $client = null;
54
+    protected $client = NULL;
55 55
 
56 56
     /**
57 57
      * extensionConfiguration
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 $this->client = $clientRepository->findAll()->current();
72 72
 
73 73
                 $configurationManager = $objectManager->get(BackendConfigurationManager::class);
74
-                $settings = $configurationManager->getConfiguration(null, null);
74
+                $settings = $configurationManager->getConfiguration(NULL, NULL);
75 75
                 $this->settings = $settings; //['settings'];
76 76
             }
77 77
 
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @var array
104 104
      */
105
-    public function getSetting($settingName, $extConfig = null)
105
+    public function getSetting($settingName, $extConfig = NULL)
106 106
     {
107
-        $setting = null;
107
+        $setting = NULL;
108 108
         if ($this->client) {
109 109
             $setting = trim($this->client->{"get" . ucfirst($settingName)}());
110 110
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @var array
31 31
      */
32
-    protected $settings = array();
32
+    protected $settings = array ();
33 33
 
34 34
 
35 35
     /**
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @var array
46 46
      */
47
-    protected $extensionConfiguration = array();
47
+    protected $extensionConfiguration = array ();
48 48
 
49 49
     public function __construct()
50 50
     {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $clientRepository = $objectManager->get(ClientRepository::class);
53 53
 
54 54
         if (TYPO3_MODE === 'BE') {
55
-            $selectedPageId = (int)GeneralUtility::_GP('id');
55
+            $selectedPageId = (int) GeneralUtility::_GP('id');
56 56
             if ($selectedPageId) {
57 57
                 $this->client = $clientRepository->findAll()->current();
58 58
 
Please login to merge, or discard this patch.
Braces   +58 added lines, -116 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
22 22
 use EWW\Dpf\Domain\Repository\ClientRepository;
23 23
 use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
24 24
 
25
-class ClientConfigurationManager
26
-{
25
+class ClientConfigurationManager {
27 26
     /**
28 27
      * settings
29 28
      *
@@ -46,8 +45,7 @@  discard block
 block discarded – undo
46 45
      */
47 46
     protected $extensionConfiguration = array();
48 47
 
49
-    public function __construct()
50
-    {
48
+    public function __construct() {
51 49
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
52 50
         $clientRepository = $objectManager->get(ClientRepository::class);
53 51
 
@@ -77,8 +75,7 @@  discard block
 block discarded – undo
77 75
 
78 76
     }
79 77
 
80
-    public function setConfigurationPid($pid)
81
-    {
78
+    public function setConfigurationPid($pid) {
82 79
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
83 80
         $clientRepository = $objectManager->get(ClientRepository::class);
84 81
 
@@ -88,8 +85,7 @@  discard block
 block discarded – undo
88 85
     /**
89 86
      * @return int|null
90 87
      */
91
-    public function getClientPid()
92
-    {
88
+    public function getClientPid() {
93 89
         return $this->client->getPid();
94 90
     }
95 91
 
@@ -98,8 +94,7 @@  discard block
 block discarded – undo
98 94
      *
99 95
      * @var array
100 96
      */
101
-    public function getSetting($settingName, $extConfig = null)
102
-    {
97
+    public function getSetting($settingName, $extConfig = null) {
103 98
         $setting = null;
104 99
         if ($this->client) {
105 100
             $setting = trim($this->client->{"get" . ucfirst($settingName)}());
@@ -114,270 +109,217 @@  discard block
 block discarded – undo
114 109
     }
115 110
 
116 111
 
117
-    public function getOwnerId()
118
-    {
112
+    public function getOwnerId() {
119 113
         return $this->getSetting("ownerId");
120 114
     }
121 115
 
122
-    public function getSwordHost()
123
-    {
116
+    public function getSwordHost() {
124 117
         return $this->getSetting("swordHost", "swordHost");
125 118
     }
126 119
 
127
-    public function getSwordUser()
128
-    {
120
+    public function getSwordUser() {
129 121
         return $this->getSetting("swordUser", "swordUser");
130 122
     }
131 123
 
132
-    public function getSwordPassword()
133
-    {
124
+    public function getSwordPassword() {
134 125
         return $this->getSetting("swordPassword", "swordPassword");
135 126
     }
136 127
 
137
-    public function getSwordCollectionNamespace()
138
-    {
128
+    public function getSwordCollectionNamespace() {
139 129
         return $this->getSetting("swordCollectionNamespace", "swordCollectionNamespace");
140 130
     }
141 131
 
142
-    public function getFedoraHost()
143
-    {
132
+    public function getFedoraHost() {
144 133
         return $this->getSetting("fedoraHost", "fedoraHost");
145 134
     }
146 135
 
147
-    public function getFedoraUser()
148
-    {
136
+    public function getFedoraUser() {
149 137
         return $this->getSetting("fedoraUser", "fedoraUser");
150 138
     }
151 139
 
152
-    public function getFedoraPassword()
153
-    {
140
+    public function getFedoraPassword() {
154 141
         return $this->getSetting("fedoraPassword", "fedoraPassword");
155 142
     }
156 143
 
157
-    public function getElasticSearchHost()
158
-    {
144
+    public function getElasticSearchHost() {
159 145
         return $this->getSetting("elasticSearchHost", "elasticSearchHost");
160 146
     }
161 147
 
162
-    public function getElasticSearchPort()
163
-    {
148
+    public function getElasticSearchPort() {
164 149
         return $this->getSetting("elasticSearchPort", "elasticSearchPort");
165 150
     }
166 151
 
167
-    public function getElasticSearchIndexName()
168
-    {
152
+    public function getElasticSearchIndexName() {
169 153
         return $this->getSetting("elasticSearchIndexName", "elasticSearchIndexName");
170 154
     }
171 155
 
172
-    public function getUploadDirectory()
173
-    {
156
+    public function getUploadDirectory() {
174 157
         return $this->getSetting("uploadDirectory", "uploadDirectory");
175 158
     }
176 159
 
177
-    public function getUploadDomain()
178
-    {
160
+    public function getUploadDomain() {
179 161
         return $this->getSetting("uploadDomain", "uploadDomain");
180 162
     }
181 163
 
182
-    public function getSuggestionFlashMessage()
183
-    {
164
+    public function getSuggestionFlashMessage() {
184 165
         return $this->getSetting("suggestionFlashmessage", "suggestionFlashmessage");
185 166
     }
186 167
 
187
-    public function getFileXpath()
188
-    {
168
+    public function getFileXpath() {
189 169
         return $this->getSetting("fileXpath", "fileXpath");
190 170
     }
191 171
 
192
-    public function getStateXpath()
193
-    {
172
+    public function getStateXpath() {
194 173
         return $this->getSetting("stateXpath", "stateXpath");
195 174
     }
196 175
 
197
-    public function getTypeXpath()
198
-    {
176
+    public function getTypeXpath() {
199 177
         return $this->getSetting("typeXpath", "typeXpath");
200 178
     }
201 179
 
202
-    public function getTypeXpathInput()
203
-    {
180
+    public function getTypeXpathInput() {
204 181
         return $this->getSetting("typeXpathInput", "typeXpathInput");
205 182
     }
206 183
 
207
-    public function getUrnXpath()
208
-    {
184
+    public function getUrnXpath() {
209 185
         return $this->getSetting("urnXpath", "urnXpath");
210 186
     }
211 187
 
212
-    public function getPrimaryUrnXpath()
213
-    {
188
+    public function getPrimaryUrnXpath() {
214 189
         return $this->getSetting("primaryUrnXpath", "primaryUrnXpath");
215 190
     }
216 191
 
217
-    public function getDateXpath()
218
-    {
192
+    public function getDateXpath() {
219 193
         return $this->getSetting("dateXpath", "dateXpath");
220 194
     }
221 195
 
222
-    public function getPublishingYearXpath()
223
-    {
196
+    public function getPublishingYearXpath() {
224 197
         return $this->getSetting("publishingYearXpath", "publishingYearXpath");
225 198
     }
226 199
 
227
-    public function getNamespaces()
228
-    {
200
+    public function getNamespaces() {
229 201
         return $this->getSetting("namespaces", "namespaces");
230 202
     }
231 203
 
232
-    public function getTitleXpath()
233
-    {
204
+    public function getTitleXpath() {
234 205
         return $this->getSetting("titleXpath", "titleXpath");
235 206
     }
236 207
 
237
-    public function getOriginalSourceTitleXpath()
238
-    {
208
+    public function getOriginalSourceTitleXpath() {
239 209
         return $this->getSetting("originalSourceTitleXpath", "originalSourceTitleXpath");
240 210
     }
241 211
 
242
-    public function getProcessNumberXpath()
243
-    {
212
+    public function getProcessNumberXpath() {
244 213
         return $this->getSetting("processnumberXpath", "processnumberXpath");
245 214
     }
246 215
 
247
-    public function getSubmitterNameXpath()
248
-    {
216
+    public function getSubmitterNameXpath() {
249 217
         return $this->getSetting("submitterNameXpath", "submitterNameXpath");
250 218
     }
251 219
 
252
-    public function getSubmitterEmailXpath()
253
-    {
220
+    public function getSubmitterEmailXpath() {
254 221
         return $this->getSetting("submitterEmailXpath", "submitterEmailXpath");
255 222
     }
256 223
 
257
-    public function getSubmitterNoticeXpath()
258
-    {
224
+    public function getSubmitterNoticeXpath() {
259 225
         return $this->getSetting("submitterNoticeXpath", "submitterNoticeXpath");
260 226
     }
261 227
 
262
-    public function getCreatorXpath()
263
-    {
228
+    public function getCreatorXpath() {
264 229
         return $this->getSetting("creatorXpath", "creatorXpath");
265 230
     }
266 231
 
267
-    public function getCreationDateXpath()
268
-    {
232
+    public function getCreationDateXpath() {
269 233
         return $this->getSetting("creationDateXpath", "creationDateXpath");
270 234
     }
271 235
 
272
-    public function getRepositoryCreationDateXpath()
273
-    {
236
+    public function getRepositoryCreationDateXpath() {
274 237
         return $this->getSetting("repositoryCreationDateXpath", "repositoryCreationDateXpath");
275 238
     }
276 239
 
277
-    public function getRepositoryLastModDateXpath()
278
-    {
240
+    public function getRepositoryLastModDateXpath() {
279 241
         return $this->getSetting("repositoryLastModDateXpath", "repositoryLastModDateXpath");
280 242
     }
281 243
 
282
-    public function getDepositLicenseXpath()
283
-    {
244
+    public function getDepositLicenseXpath() {
284 245
         return $this->getSetting("depositLicenseXpath", "depositLicenseXpath");
285 246
     }
286 247
 
287
-    public function getAllNotesXpath()
288
-    {
248
+    public function getAllNotesXpath() {
289 249
         return $this->getSetting("allNotesXpath", "allNotesXpath");
290 250
     }
291 251
 
292
-    public function getPrivateNotesXpath()
293
-    {
252
+    public function getPrivateNotesXpath() {
294 253
         return $this->getSetting("privateNotesXpath", "privateNotesXpath");
295 254
     }
296 255
 
297
-    public function getInputTransformation()
298
-    {
256
+    public function getInputTransformation() {
299 257
         return $this->client->getInputTransformation()->current();
300 258
     }
301 259
 
302
-    public function getOutputTransformation()
303
-    {
260
+    public function getOutputTransformation() {
304 261
         return $this->client->getOutputTransformation()->current();
305 262
     }
306 263
 
307
-    public function getPersonXpath()
308
-    {
264
+    public function getPersonXpath() {
309 265
         return $this->getSetting("personXpath", "personXpath");
310 266
     }
311 267
 
312
-    public function getPersonFamilyXpath()
313
-    {
268
+    public function getPersonFamilyXpath() {
314 269
         return $this->getSetting("personFamilyXpath", "personFamilyXpath");
315 270
     }
316 271
 
317
-    public function getPersonGivenXpath()
318
-    {
272
+    public function getPersonGivenXpath() {
319 273
         return $this->getSetting("personGivenXpath", "personGivenXpath");
320 274
     }
321 275
 
322
-    public function getPersonRoleXpath()
323
-    {
276
+    public function getPersonRoleXpath() {
324 277
         return $this->getSetting("personRoleXpath", "personRoleXpath");
325 278
     }
326 279
 
327
-    public function getPersonFisIdentifierXpath()
328
-    {
280
+    public function getPersonFisIdentifierXpath() {
329 281
         return $this->getSetting("personFisIdentifierXpath", "personFisIdentifierXpath");
330 282
     }
331 283
 
332
-    public function getPersonAffiliationXpath()
333
-    {
284
+    public function getPersonAffiliationXpath() {
334 285
         return $this->getSetting("personAffiliationXpath", "personAffiliationXpath");
335 286
     }
336 287
 
337
-    public function getPersonAffiliationIdentifierXpath()
338
-    {
288
+    public function getPersonAffiliationIdentifierXpath() {
339 289
         return $this->getSetting("personAffiliationIdentifierXpath", "personAffiliationIdentifierXpath");
340 290
     }
341 291
 
342
-    public function getPersonAuthorRole()
343
-    {
292
+    public function getPersonAuthorRole() {
344 293
         return $this->getSetting("personAuthorRole", "personAuthorRole");
345 294
     }
346 295
 
347
-    public function getPersonPublisherRole()
348
-    {
296
+    public function getPersonPublisherRole() {
349 297
         return $this->getSetting("personPublisherRole", "personPublisherRole");
350 298
     }
351 299
 
352
-    public function getValidationXpath()
353
-    {
300
+    public function getValidationXpath() {
354 301
         return $this->getSetting("validationXpath", "validationXpath");
355 302
     }
356 303
 
357
-    public function fisIdXpath()
358
-    {
304
+    public function fisIdXpath() {
359 305
         return $this->getSetting("fisIdXpath", "fisIdXpath");
360 306
     }
361 307
 
362
-    public function getSourceDetailsXpaths()
363
-    {
308
+    public function getSourceDetailsXpaths() {
364 309
         return $this->getSetting("sourceDetailsXpaths", "sourceDetailsXpaths");
365 310
     }
366 311
 
367
-    public function getFedoraNamespace()
368
-    {
312
+    public function getFedoraNamespace() {
369 313
         $settings = $this->getTypoScriptSettings();
370 314
         return $settings['fedoraNamespace'];
371 315
     }
372 316
 
373
-    public function getUniversityCollection()
374
-    {
317
+    public function getUniversityCollection() {
375 318
         $settings = $this->getTypoScriptSettings();
376 319
         return $settings['universityCollection'];
377 320
     }
378 321
 
379
-    public function getTypoScriptSettings()
380
-    {
322
+    public function getTypoScriptSettings() {
381 323
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
382 324
         $configurationManager = $objectManager->get(ConfigurationManager::class);
383 325
         $settings = $configurationManager->getConfiguration(
Please login to merge, or discard this patch.
Classes/Helper/XSLTransformator.php 3 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
23 23
 use \TYPO3\CMS\Core\Log\LogLevel;
24 24
 use \TYPO3\CMS\Core\Log\LogManager;
25 25
 
26
-class XSLTransformator
27
-{
26
+class XSLTransformator {
28 27
 
29 28
     /**
30 29
      * clientConfigurationManager
@@ -97,8 +96,7 @@  discard block
 block discarded – undo
97 96
      * @param \EWW\Dpf\Domain\Model\Document $document
98 97
      * @return string The transformed xml
99 98
      */
100
-    public function getTransformedOutputXML($document, $xmlData = false)
101
-    {
99
+    public function getTransformedOutputXML($document, $xmlData = false) {
102 100
         $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
103 101
         $this->clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class);
104 102
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      * @param \EWW\Dpf\Domain\Model\Document $document
81 81
      * @return string The transformed xml
82 82
      */
83
-    public function getTransformedOutputXML($document, $xmlData = false)
83
+    public function getTransformedOutputXML($document, $xmlData = FALSE)
84 84
     {
85 85
         $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
86 86
         $this->clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $logger->log(
88 88
                 LogLevel::WARNING,
89 89
                 "Input XML: No transformation file is present. The given xml data was taken over as it is",
90
-                array(
90
+                array (
91 91
                     'documentTypeName' => $documentTypeName
92 92
                 )
93 93
             );
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $filePath = $transformationFile->getFile()->getOriginalResource()->getIdentifier();
118 118
             $documentTransformer = new DocumentTransformer();
119 119
 
120
-            if ( !$document->getRemoteState() || $document->getRemoteState() == 'NONE' ) {
120
+            if (!$document->getRemoteState() || $document->getRemoteState() == 'NONE') {
121 121
                 $remoteState = 'ACTIVE';
122 122
             } else {
123 123
                 $remoteState = $document->getRemoteState();
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 );
137 137
             } else {
138 138
                 $transformedXml = $documentTransformer->transform(
139
-                    Environment::getPublicPath(). '/fileadmin' . $filePath, $document->getXmlData(), $transformParams
139
+                    Environment::getPublicPath() . '/fileadmin' . $filePath, $document->getXmlData(), $transformParams
140 140
                 );
141 141
             }
142 142
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $logger->log(
153 153
                 LogLevel::WARNING,
154 154
                 "Output XML: No transformation file is present. The generated xml data was taken over as it is",
155
-                array(
155
+                array (
156 156
                     'documentTypeName' => $documentTypeName
157 157
                 )
158 158
             );
Please login to merge, or discard this patch.