Passed
Pull Request — master (#209)
by
unknown
33:50 queued 24:56
created
Classes/Domain/Repository/FrontendUserGroupRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace EWW\Dpf\Domain\Repository;
3 3
 
4
-class FrontendUserGroupRepository extends \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserGroupRepository
5
-{
4
+class FrontendUserGroupRepository extends \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserGroupRepository {
6 5
 }
Please login to merge, or discard this patch.
Classes/Domain/Model/AbstractFormElement.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      *
53 53
      * @var array
54 54
      */
55
-    protected $accessRestrictionRoles = array();
55
+    protected $accessRestrictionRoles = array ();
56 56
 
57 57
     /**
58 58
      *
Please login to merge, or discard this patch.
Braces   +15 added lines, -30 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class AbstractFormElement extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
18
-{
17
+class AbstractFormElement extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
19 18
 
20 19
     /**
21 20
      *
@@ -60,74 +59,60 @@  discard block
 block discarded – undo
60 59
      */
61 60
     protected $maxIteration;
62 61
 
63
-    public function getUid()
64
-    {
62
+    public function getUid() {
65 63
         return $this->uid;
66 64
     }
67 65
 
68
-    public function setUid($uid)
69
-    {
66
+    public function setUid($uid) {
70 67
         $this->uid = $uid;
71 68
     }
72 69
 
73
-    public function getDisplayName()
74
-    {
70
+    public function getDisplayName() {
75 71
         return $this->displayName;
76 72
     }
77 73
 
78
-    public function setDisplayName($displayName)
79
-    {
74
+    public function setDisplayName($displayName) {
80 75
         $this->displayName = $displayName;
81 76
     }
82 77
 
83
-    public function getName()
84
-    {
78
+    public function getName() {
85 79
         return $this->name;
86 80
     }
87 81
 
88
-    public function setName($name)
89
-    {
82
+    public function setName($name) {
90 83
         $this->name = $name;
91 84
     }
92 85
 
93
-    public function getItems()
94
-    {
86
+    public function getItems() {
95 87
         return $this->items;
96 88
     }
97 89
 
98
-    public function addItem($item)
99
-    {
90
+    public function addItem($item) {
100 91
         $uid                 = $item->getUid();
101 92
         $this->items[$uid][] = $item;
102 93
     }
103 94
 
104
-    public function getMandatory()
105
-    {
95
+    public function getMandatory() {
106 96
         return $this->mandatory;
107 97
     }
108 98
 
109
-    public function setMandatory($mandatory)
110
-    {
99
+    public function setMandatory($mandatory) {
111 100
         $this->mandatory = $mandatory;
112 101
     }
113 102
 
114
-    public function getAccessRestrictionRoles()
115
-    {
103
+    public function getAccessRestrictionRoles() {
116 104
         return $this->accessRestrictionRoles;
117 105
     }
118 106
 
119
-    public function setAccessRestrictionRoles($accessRestrictionRoles)
120
-    {
107
+    public function setAccessRestrictionRoles($accessRestrictionRoles) {
121 108
         $this->accessRestrictionRoles = $accessRestrictionRoles;
122 109
     }
123 110
 
124
-    public function getMaxIteration()
125
-    {
111
+    public function getMaxIteration() {
126 112
         return $this->maxIteration;
127 113
     }
128 114
 
129
-    public function setMaxIteration($maxIteration)
130
-    {
115
+    public function setMaxIteration($maxIteration) {
131 116
         $this->maxIteration = $maxIteration;
132 117
     }
133 118
 
Please login to merge, or discard this patch.
Classes/Domain/Model/File.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -351,7 +351,7 @@
 block discarded – undo
351 351
 
352 352
         foreach ($availableProperties as $propertyName) {
353 353
             if (\TYPO3\CMS\Extbase\Reflection\ObjectAccess::isPropertySettable($newFile, $propertyName)
354
-                && !in_array($propertyName, array('uid','pid'))) {
354
+                && !in_array($propertyName, array ('uid', 'pid'))) {
355 355
 
356 356
                 $propertyValue = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getProperty($fileToCopy, $propertyName);
357 357
                 \TYPO3\CMS\Extbase\Reflection\ObjectAccess::setProperty($newFile, $propertyName, $propertyValue);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @var \EWW\Dpf\Domain\Model\Document
97 97
      */
98
-    protected $document = null;
98
+    protected $document = NULL;
99 99
 
100 100
     const STATUS_REMOTE  = "remote";
101 101
     const STATUS_DELETED = "deleted";
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
         $url = $this->getLink();
379 379
 
380 380
         // FIXME: Checking for "datastreams" in the URL is Fedora 3 specific, for Fedora 4 we need a better solution.
381
-        if (strpos(strtolower($url), "datastreams") === false) {
381
+        if (strpos(strtolower($url), "datastreams") === FALSE) {
382 382
             // File is a locally uploaded file, therefor we need to
383 383
             // determine the path
384 384
             $uploadFileUrl = new \EWW\Dpf\Helper\UploadFileUrl;
Please login to merge, or discard this patch.
Braces   +25 added lines, -50 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 File extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
21
-{
20
+class File extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
22 21
 
23 22
     /**
24 23
      * title
@@ -110,8 +109,7 @@  discard block
 block discarded – undo
110 109
      *
111 110
      * @return string $title
112 111
      */
113
-    public function getTitle()
114
-    {
112
+    public function getTitle() {
115 113
         return $this->title;
116 114
     }
117 115
 
@@ -121,8 +119,7 @@  discard block
 block discarded – undo
121 119
      * @param string $title
122 120
      * @return void
123 121
      */
124
-    public function setTitle($title)
125
-    {
122
+    public function setTitle($title) {
126 123
         $this->title = $title;
127 124
     }
128 125
 
@@ -131,8 +128,7 @@  discard block
 block discarded – undo
131 128
      *
132 129
      * @return string $label
133 130
      */
134
-    public function getLabel()
135
-    {
131
+    public function getLabel() {
136 132
         return $this->label;
137 133
     }
138 134
 
@@ -142,8 +138,7 @@  discard block
 block discarded – undo
142 138
      * @param string $label
143 139
      * @return void
144 140
      */
145
-    public function setLabel($label)
146
-    {
141
+    public function setLabel($label) {
147 142
         $this->label = $label;
148 143
     }
149 144
 
@@ -152,8 +147,7 @@  discard block
 block discarded – undo
152 147
      *
153 148
      * @return boolean $download
154 149
      */
155
-    public function getDownload()
156
-    {
150
+    public function getDownload() {
157 151
         return $this->download;
158 152
     }
159 153
 
@@ -163,8 +157,7 @@  discard block
 block discarded – undo
163 157
      * @param boolean $download
164 158
      * @return void
165 159
      */
166
-    public function setDownload($download)
167
-    {
160
+    public function setDownload($download) {
168 161
         $this->download = boolval($download);
169 162
     }
170 163
 
@@ -173,8 +166,7 @@  discard block
 block discarded – undo
173 166
      *
174 167
      * @return boolean $archive
175 168
      */
176
-    public function getArchive()
177
-    {
169
+    public function getArchive() {
178 170
         return $this->archive;
179 171
     }
180 172
 
@@ -184,8 +176,7 @@  discard block
 block discarded – undo
184 176
      * @param boolean $archive
185 177
      * @return void
186 178
      */
187
-    public function setArchive($archive)
188
-    {
179
+    public function setArchive($archive) {
189 180
         $this->archive = boolval($archive);
190 181
     }
191 182
 
@@ -194,8 +185,7 @@  discard block
 block discarded – undo
194 185
      *
195 186
      * @return boolean $fileGroupDeleted
196 187
      */
197
-    public function isFileGroupDeleted()
198
-    {
188
+    public function isFileGroupDeleted() {
199 189
         return $this->fileGroupDeleted;
200 190
     }
201 191
 
@@ -204,8 +194,7 @@  discard block
 block discarded – undo
204 194
      *
205 195
      * @return boolean $fileGroupDeleted
206 196
      */
207
-    public function setFileGroupDeleted($fileGroupDeleted)
208
-    {
197
+    public function setFileGroupDeleted($fileGroupDeleted) {
209 198
         $this->fileGroupDeleted = boolval($fileGroupDeleted);
210 199
     }
211 200
 
@@ -214,8 +203,7 @@  discard block
 block discarded – undo
214 203
      *
215 204
      * @return string $contentType
216 205
      */
217
-    public function getContentType()
218
-    {
206
+    public function getContentType() {
219 207
         return $this->contentType;
220 208
     }
221 209
 
@@ -225,8 +213,7 @@  discard block
 block discarded – undo
225 213
      * @param string $contentType
226 214
      * @return void
227 215
      */
228
-    public function setContentType($contentType)
229
-    {
216
+    public function setContentType($contentType) {
230 217
         $this->contentType = $contentType;
231 218
     }
232 219
 
@@ -235,8 +222,7 @@  discard block
 block discarded – undo
235 222
      *
236 223
      * @return string $link
237 224
      */
238
-    public function getLink()
239
-    {
225
+    public function getLink() {
240 226
         return $this->link;
241 227
     }
242 228
 
@@ -246,8 +232,7 @@  discard block
 block discarded – undo
246 232
      * @param string $link
247 233
      * @return void
248 234
      */
249
-    public function setLink($link)
250
-    {
235
+    public function setLink($link) {
251 236
         $this->link = $link;
252 237
     }
253 238
 
@@ -256,8 +241,7 @@  discard block
 block discarded – undo
256 241
      *
257 242
      * @return string $status
258 243
      */
259
-    public function getStatus()
260
-    {
244
+    public function getStatus() {
261 245
         return $this->status;
262 246
     }
263 247
 
@@ -267,8 +251,7 @@  discard block
 block discarded – undo
267 251
      * @param string $status
268 252
      * @return void
269 253
      */
270
-    public function setStatus($status)
271
-    {
254
+    public function setStatus($status) {
272 255
         $this->status = $status;
273 256
     }
274 257
 
@@ -277,8 +260,7 @@  discard block
 block discarded – undo
277 260
      *
278 261
      * @return \EWW\Dpf\Domain\Model\Document $document
279 262
      */
280
-    public function getDocument()
281
-    {
263
+    public function getDocument() {
282 264
         return $this->document;
283 265
     }
284 266
 
@@ -288,8 +270,7 @@  discard block
 block discarded – undo
288 270
      * @param \EWW\Dpf\Domain\Model\Document $document
289 271
      * @return void
290 272
      */
291
-    public function setDocument(\EWW\Dpf\Domain\Model\Document $document)
292
-    {
273
+    public function setDocument(\EWW\Dpf\Domain\Model\Document $document) {
293 274
         $this->document = $document;
294 275
     }
295 276
 
@@ -298,8 +279,7 @@  discard block
 block discarded – undo
298 279
      *
299 280
      * @return boolean $primaryFile
300 281
      */
301
-    public function getPrimaryFile()
302
-    {
282
+    public function getPrimaryFile() {
303 283
         return $this->primaryFile;
304 284
     }
305 285
 
@@ -309,8 +289,7 @@  discard block
 block discarded – undo
309 289
      * @param boolean $primaryFile
310 290
      * @return void
311 291
      */
312
-    public function setPrimaryFile($primaryFile)
313
-    {
292
+    public function setPrimaryFile($primaryFile) {
314 293
         $this->primaryFile = boolval($primaryFile);
315 294
     }
316 295
 
@@ -319,8 +298,7 @@  discard block
 block discarded – undo
319 298
      *
320 299
      * @return boolean
321 300
      */
322
-    public function isPrimaryFile()
323
-    {
301
+    public function isPrimaryFile() {
324 302
         return $this->primaryFile;
325 303
     }
326 304
 
@@ -329,8 +307,7 @@  discard block
 block discarded – undo
329 307
      *
330 308
      * @return string $datastreamIdentifier
331 309
      */
332
-    public function getDatastreamIdentifier()
333
-    {
310
+    public function getDatastreamIdentifier() {
334 311
         return $this->datastreamIdentifier;
335 312
     }
336 313
 
@@ -340,8 +317,7 @@  discard block
 block discarded – undo
340 317
      * @param string $datastreamIdentifier
341 318
      * @return void
342 319
      */
343
-    public function setDatastreamIdentifier($datastreamIdentifier)
344
-    {
320
+    public function setDatastreamIdentifier($datastreamIdentifier) {
345 321
         $this->datastreamIdentifier = $datastreamIdentifier;
346 322
     }
347 323
 
@@ -373,8 +349,7 @@  discard block
 block discarded – undo
373 349
      *
374 350
      * @return string
375 351
      */
376
-    public function getUrl()
377
-    {
352
+    public function getUrl() {
378 353
         $url = $this->getLink();
379 354
 
380 355
         // FIXME: Checking for "datastreams" in the URL is Fedora 3 specific, for Fedora 4 we need a better solution.
Please login to merge, or discard this patch.
Classes/Domain/Model/MetadataObject.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@
 block discarded – undo
377 377
         if ($this->accessRestrictionRoles) {
378 378
             return array_map('trim', explode(',', $this->accessRestrictionRoles));
379 379
         } else {
380
-            return array();
380
+            return array ();
381 381
         }
382 382
     }
383 383
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @var boolean
87 87
      */
88
-    protected $modsExtension = false;
88
+    protected $modsExtension = FALSE;
89 89
 
90 90
     /**
91 91
      * inputOptionList
92 92
      *
93 93
      * @var \EWW\Dpf\Domain\Model\InputOptionList
94 94
      */
95
-    protected $inputOptionList = null;
95
+    protected $inputOptionList = NULL;
96 96
 
97 97
     /**
98 98
      * fillOutService
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     public function getChildren()
324 324
     {
325
-        return null;
325
+        return NULL;
326 326
     }
327 327
 
328 328
     /**
Please login to merge, or discard this patch.
Braces   +38 added lines, -76 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 /**
18 18
  * MetadataObject
19 19
  */
20
-class MetadataObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements MetadataMandatoryInterface
21
-{
20
+class MetadataObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements MetadataMandatoryInterface {
22 21
 
23 22
     /**
24 23
      * name
@@ -227,8 +226,7 @@  discard block
 block discarded – undo
227 226
      *
228 227
      * @return string $name
229 228
      */
230
-    public function getName()
231
-    {
229
+    public function getName() {
232 230
         return $this->name;
233 231
     }
234 232
 
@@ -238,8 +236,7 @@  discard block
 block discarded – undo
238 236
      * @param string $name
239 237
      * @return void
240 238
      */
241
-    public function setName($name)
242
-    {
239
+    public function setName($name) {
243 240
         $this->name = $name;
244 241
     }
245 242
 
@@ -248,8 +245,7 @@  discard block
 block discarded – undo
248 245
      *
249 246
      * @return string $displayName
250 247
      */
251
-    public function getDisplayName()
252
-    {
248
+    public function getDisplayName() {
253 249
         return $this->displayName;
254 250
     }
255 251
 
@@ -259,8 +255,7 @@  discard block
 block discarded – undo
259 255
      * @param string $displayName
260 256
      * @return void
261 257
      */
262
-    public function setDisplayName($displayName)
263
-    {
258
+    public function setDisplayName($displayName) {
264 259
         $this->displayName = $displayName;
265 260
     }
266 261
 
@@ -269,8 +264,7 @@  discard block
 block discarded – undo
269 264
      *
270 265
      * @return integer $maxIteration
271 266
      */
272
-    public function getMaxIteration()
273
-    {
267
+    public function getMaxIteration() {
274 268
         return $this->maxIteration;
275 269
     }
276 270
 
@@ -280,8 +274,7 @@  discard block
 block discarded – undo
280 274
      * @param integer $maxIteration
281 275
      * @return void
282 276
      */
283
-    public function setMaxIteration($maxIteration)
284
-    {
277
+    public function setMaxIteration($maxIteration) {
285 278
         $this->maxIteration = $maxIteration;
286 279
     }
287 280
 
@@ -290,8 +283,7 @@  discard block
 block discarded – undo
290 283
      *
291 284
      * @return string $mandatory
292 285
      */
293
-    public function getMandatory()
294
-    {
286
+    public function getMandatory() {
295 287
         return $this->mandatory;
296 288
     }
297 289
 
@@ -301,8 +293,7 @@  discard block
 block discarded – undo
301 293
      * @param string $mandatory
302 294
      * @return void
303 295
      */
304
-    public function setMandatory($mandatory)
305
-    {
296
+    public function setMandatory($mandatory) {
306 297
         $this->mandatory = $mandatory;
307 298
     }
308 299
 
@@ -311,8 +302,7 @@  discard block
 block discarded – undo
311 302
      *
312 303
      * @return boolean $modsExtension
313 304
      */
314
-    public function getModsExtension()
315
-    {
305
+    public function getModsExtension() {
316 306
         return $this->modsExtension;
317 307
     }
318 308
 
@@ -322,8 +312,7 @@  discard block
 block discarded – undo
322 312
      * @param boolean $modsExtension
323 313
      * @return void
324 314
      */
325
-    public function setModsExtension($modsExtension)
326
-    {
315
+    public function setModsExtension($modsExtension) {
327 316
         $this->modsExtension = boolval($modsExtension);
328 317
     }
329 318
 
@@ -332,8 +321,7 @@  discard block
 block discarded – undo
332 321
      *
333 322
      * @return boolean
334 323
      */
335
-    public function isModsExtension()
336
-    {
324
+    public function isModsExtension() {
337 325
         return $this->modsExtension;
338 326
     }
339 327
 
@@ -342,8 +330,7 @@  discard block
 block discarded – undo
342 330
      *
343 331
      * @return string $mapping
344 332
      */
345
-    public function getMapping()
346
-    {
333
+    public function getMapping() {
347 334
         return $this->mapping;
348 335
     }
349 336
 
@@ -353,8 +340,7 @@  discard block
 block discarded – undo
353 340
      * @param string $mapping
354 341
      * @return void
355 342
      */
356
-    public function setMapping($mapping)
357
-    {
343
+    public function setMapping($mapping) {
358 344
         $this->mapping = $mapping;
359 345
     }
360 346
 
@@ -363,8 +349,7 @@  discard block
 block discarded – undo
363 349
      *
364 350
      * @return string $relativeMapping
365 351
      */
366
-    public function getRelativeMapping()
367
-    {
352
+    public function getRelativeMapping() {
368 353
         return trim($this->mapping, " /");
369 354
     }
370 355
 
@@ -373,8 +358,7 @@  discard block
 block discarded – undo
373 358
      *
374 359
      * @return integer $inputField
375 360
      */
376
-    public function getInputField()
377
-    {
361
+    public function getInputField() {
378 362
         return $this->inputField;
379 363
     }
380 364
 
@@ -384,8 +368,7 @@  discard block
 block discarded – undo
384 368
      * @param integer $inputField
385 369
      * @return void
386 370
      */
387
-    public function setInputField($inputField)
388
-    {
371
+    public function setInputField($inputField) {
389 372
         $this->inputField = $inputField;
390 373
     }
391 374
 
@@ -394,8 +377,7 @@  discard block
 block discarded – undo
394 377
      *
395 378
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject
396 379
      */
397
-    public function getChildren()
398
-    {
380
+    public function getChildren() {
399 381
         return null;
400 382
     }
401 383
 
@@ -404,8 +386,7 @@  discard block
 block discarded – undo
404 386
      *
405 387
      * @return \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
406 388
      */
407
-    public function getInputOptionList()
408
-    {
389
+    public function getInputOptionList() {
409 390
         return $this->inputOptionList;
410 391
     }
411 392
 
@@ -415,8 +396,7 @@  discard block
 block discarded – undo
415 396
      * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
416 397
      * @return void
417 398
      */
418
-    public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList)
419
-    {
399
+    public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList) {
420 400
         $this->inputOptionList = $inputOptionList;
421 401
     }
422 402
 
@@ -425,8 +405,7 @@  discard block
 block discarded – undo
425 405
      *
426 406
      * @return string $fillOutService
427 407
      */
428
-    public function getFillOutService()
429
-    {
408
+    public function getFillOutService() {
430 409
         return $this->fillOutService;
431 410
     }
432 411
 
@@ -436,8 +415,7 @@  discard block
 block discarded – undo
436 415
      * @param string $fillOutService
437 416
      * @return void
438 417
      */
439
-    public function setFillOutService($fillOutService)
440
-    {
418
+    public function setFillOutService($fillOutService) {
441 419
         $this->fillOutService = $fillOutService;
442 420
     }
443 421
 
@@ -446,8 +424,7 @@  discard block
 block discarded – undo
446 424
      *
447 425
      * @return array $accessRestrictionRoles
448 426
      */
449
-    public function getAccessRestrictionRoles()
450
-    {
427
+    public function getAccessRestrictionRoles() {
451 428
         if ($this->accessRestrictionRoles) {
452 429
             return array_map('trim', explode(',', $this->accessRestrictionRoles));
453 430
         } else {
@@ -461,8 +438,7 @@  discard block
 block discarded – undo
461 438
      * @param array $accessRestrictionRoles
462 439
      * @return void
463 440
      */
464
-    public function setAccessRestrictionRoles($accessRestrictionRoles)
465
-    {
441
+    public function setAccessRestrictionRoles($accessRestrictionRoles) {
466 442
         $this->accessRestrictionRoles = implode(',', $accessRestrictionRoles);
467 443
     }
468 444
 
@@ -471,8 +447,7 @@  discard block
 block discarded – undo
471 447
      *
472 448
      * @return boolean $consent
473 449
      */
474
-    public function getConsent()
475
-    {
450
+    public function getConsent() {
476 451
         return $this->consent;
477 452
     }
478 453
 
@@ -482,8 +457,7 @@  discard block
 block discarded – undo
482 457
      * @param boolean $consent
483 458
      * @return void
484 459
      */
485
-    public function setConsent($consent)
486
-    {
460
+    public function setConsent($consent) {
487 461
         $this->consent = boolval($consent);
488 462
     }
489 463
 
@@ -492,8 +466,7 @@  discard block
 block discarded – undo
492 466
      *
493 467
      * @return string $defaultValue
494 468
      */
495
-    public function getDefaultValue()
496
-    {
469
+    public function getDefaultValue() {
497 470
         return $this->defaultValue;
498 471
     }
499 472
 
@@ -503,8 +476,7 @@  discard block
 block discarded – undo
503 476
      * @param string $defaultValue
504 477
      * @return void
505 478
      */
506
-    public function setDefaultValue($defaultValue)
507
-    {
479
+    public function setDefaultValue($defaultValue) {
508 480
         $this->defaultValue = $defaultValue;
509 481
     }
510 482
 
@@ -513,8 +485,7 @@  discard block
 block discarded – undo
513 485
      *
514 486
      * @return string $validation
515 487
      */
516
-    public function getValidation()
517
-    {
488
+    public function getValidation() {
518 489
         return $this->validation;
519 490
     }
520 491
 
@@ -524,8 +495,7 @@  discard block
 block discarded – undo
524 495
      * @param string $validation
525 496
      * @return void
526 497
      */
527
-    public function setValidation($validation)
528
-    {
498
+    public function setValidation($validation) {
529 499
         $this->validation = $validation;
530 500
     }
531 501
 
@@ -534,8 +504,7 @@  discard block
 block discarded – undo
534 504
      *
535 505
      * @return string $dataType
536 506
      */
537
-    public function getDataType()
538
-    {
507
+    public function getDataType() {
539 508
         return $this->dataType;
540 509
     }
541 510
 
@@ -545,32 +514,28 @@  discard block
 block discarded – undo
545 514
      * @param string $dataType
546 515
      * @return void
547 516
      */
548
-    public function setDataType($dataType)
549
-    {
517
+    public function setDataType($dataType) {
550 518
         $this->dataType = $dataType;
551 519
     }
552 520
 
553 521
     /**
554 522
      * @return string
555 523
      */
556
-    public function getGndFieldUid()
557
-    {
524
+    public function getGndFieldUid() {
558 525
         return $this->gndFieldUid;
559 526
     }
560 527
 
561 528
     /**
562 529
      * @param string $gndFieldUid
563 530
      */
564
-    public function setGndFieldUid($gndFieldUid)
565
-    {
531
+    public function setGndFieldUid($gndFieldUid) {
566 532
         $this->gndFieldUid = $gndFieldUid;
567 533
     }
568 534
 
569 535
     /**
570 536
      * @return integer
571 537
      */
572
-    public function getMaxInputLength()
573
-    {
538
+    public function getMaxInputLength() {
574 539
         if ($this->maxInputLength == 0) {
575 540
             if ($this->inputField == self::input) {
576 541
                 return 255;
@@ -585,8 +550,7 @@  discard block
 block discarded – undo
585 550
     /**
586 551
      * @return integer
587 552
      */
588
-    public function setMaxInputLength($maxInputLength)
589
-    {
553
+    public function setMaxInputLength($maxInputLength) {
590 554
         $this->maxInputLength = $maxInputLength;
591 555
     }
592 556
 
@@ -601,8 +565,7 @@  discard block
 block discarded – undo
601 565
     /**
602 566
      * @param bool $embargo
603 567
      */
604
-    public function setEmbargo(bool $embargo)
605
-    {
568
+    public function setEmbargo(bool $embargo) {
606 569
         $this->embargo = boolval($embargo);
607 570
     }
608 571
 
@@ -649,8 +612,7 @@  discard block
 block discarded – undo
649 612
     /**
650 613
      * @param string $rorMapping
651 614
      */
652
-    public function setRorMapping(string $rorMapping)
653
-    {
615
+    public function setRorMapping(string $rorMapping) {
654 616
         $this->rorMapping = $rorMapping;
655 617
     }
656 618
 
Please login to merge, or discard this patch.
Classes/Domain/Model/Viewer.php 1 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
  * Viewer (of a document)
19 19
  */
20
-class Viewer extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
21
-{
20
+class Viewer extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject {
22 21
     /**
23 22
      * feUserUid
24 23
      *
@@ -31,8 +30,7 @@  discard block
 block discarded – undo
31 30
      *
32 31
      * @return int $feUserUid
33 32
      */
34
-    public function getFeUserUid()
35
-    {
33
+    public function getFeUserUid() {
36 34
         return $this->feUserUid;
37 35
     }
38 36
 
@@ -42,8 +40,7 @@  discard block
 block discarded – undo
42 40
      * @param int $feUserUid
43 41
      * @return void
44 42
      */
45
-    public function setFeUserUid($feUserUid)
46
-    {
43
+    public function setFeUserUid($feUserUid) {
47 44
         $this->feUserUid = $feUserUid;
48 45
     }
49 46
 }
Please login to merge, or discard this patch.
Classes/Domain/Model/MetadataPage.php 3 patches
Braces   +16 added lines, -32 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 /**
18 18
  * MetadataPage
19 19
  */
20
-class MetadataPage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
21
-{
20
+class MetadataPage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
22 21
 
23 22
     /**
24 23
      * name
@@ -58,8 +57,7 @@  discard block
 block discarded – undo
58 57
     /**
59 58
      * __construct
60 59
      */
61
-    public function __construct()
62
-    {
60
+    public function __construct() {
63 61
         //Do not remove the next line: It would break the functionality
64 62
         $this->initStorageObjects();
65 63
     }
@@ -69,8 +67,7 @@  discard block
 block discarded – undo
69 67
      *
70 68
      * @return void
71 69
      */
72
-    protected function initStorageObjects()
73
-    {
70
+    protected function initStorageObjects() {
74 71
         $this->metadataGroup = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
75 72
     }
76 73
 
@@ -79,8 +76,7 @@  discard block
 block discarded – undo
79 76
      *
80 77
      * @return string $name
81 78
      */
82
-    public function getName()
83
-    {
79
+    public function getName() {
84 80
         return $this->name;
85 81
     }
86 82
 
@@ -90,8 +86,7 @@  discard block
 block discarded – undo
90 86
      * @param string $name
91 87
      * @return void
92 88
      */
93
-    public function setName($name)
94
-    {
89
+    public function setName($name) {
95 90
         $this->name = $name;
96 91
     }
97 92
 
@@ -100,8 +95,7 @@  discard block
 block discarded – undo
100 95
      *
101 96
      * @return string $displayName
102 97
      */
103
-    public function getDisplayName()
104
-    {
98
+    public function getDisplayName() {
105 99
         return $this->displayName;
106 100
     }
107 101
 
@@ -111,8 +105,7 @@  discard block
 block discarded – undo
111 105
      * @param string $displayName
112 106
      * @return void
113 107
      */
114
-    public function setDisplayName($displayName)
115
-    {
108
+    public function setDisplayName($displayName) {
116 109
         $this->displayName = $displayName;
117 110
     }
118 111
 
@@ -121,8 +114,7 @@  discard block
 block discarded – undo
121 114
      *
122 115
      * @return integer $pageNumber
123 116
      */
124
-    public function getPageNumber()
125
-    {
117
+    public function getPageNumber() {
126 118
         return $this->pageNumber;
127 119
     }
128 120
 
@@ -132,8 +124,7 @@  discard block
 block discarded – undo
132 124
      * @param integer $pageNumber
133 125
      * @return void
134 126
      */
135
-    public function setPageNumber($pageNumber)
136
-    {
127
+    public function setPageNumber($pageNumber) {
137 128
         $this->pageNumber = $pageNumber;
138 129
     }
139 130
 
@@ -143,8 +134,7 @@  discard block
 block discarded – undo
143 134
      * @param \EWW\Dpf\Domain\Model\MetadataGroup $metadataGroup
144 135
      * @return void
145 136
      */
146
-    public function addMetadataGroup(\EWW\Dpf\Domain\Model\MetadataGroup $metadataGroup)
147
-    {
137
+    public function addMetadataGroup(\EWW\Dpf\Domain\Model\MetadataGroup $metadataGroup) {
148 138
         $this->metadataGroup->attach($metadataGroup);
149 139
     }
150 140
 
@@ -154,8 +144,7 @@  discard block
 block discarded – undo
154 144
      * @param \EWW\Dpf\Domain\Model\MetadataGroup $metadataGroupToRemove The MetadataGroup to be removed
155 145
      * @return void
156 146
      */
157
-    public function removeMetadataGroup(\EWW\Dpf\Domain\Model\MetadataGroup $metadataGroupToRemove)
158
-    {
147
+    public function removeMetadataGroup(\EWW\Dpf\Domain\Model\MetadataGroup $metadataGroupToRemove) {
159 148
         $this->metadataGroup->detach($metadataGroupToRemove);
160 149
     }
161 150
 
@@ -164,8 +153,7 @@  discard block
 block discarded – undo
164 153
      *
165 154
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataGroup> $metadataGroup
166 155
      */
167
-    public function getMetadataGroup()
168
-    {
156
+    public function getMetadataGroup() {
169 157
         return $this->metadataGroup;
170 158
     }
171 159
 
@@ -175,8 +163,7 @@  discard block
 block discarded – undo
175 163
      * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataGroup> $metadataGroup
176 164
      * @return void
177 165
      */
178
-    public function setMetadataGroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $metadataGroup)
179
-    {
166
+    public function setMetadataGroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $metadataGroup) {
180 167
         $this->metadataGroup = $metadataGroup;
181 168
     }
182 169
 
@@ -185,8 +172,7 @@  discard block
 block discarded – undo
185 172
      *
186 173
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataGroup> $metadataGroup
187 174
      */
188
-    public function getChildren()
189
-    {
175
+    public function getChildren() {
190 176
         return $this->getMetadataGroup();
191 177
     }
192 178
 
@@ -195,8 +181,7 @@  discard block
 block discarded – undo
195 181
      *
196 182
      * @return array $accessRestrictionRoles
197 183
      */
198
-    public function getAccessRestrictionRoles()
199
-    {
184
+    public function getAccessRestrictionRoles() {
200 185
         if ($this->accessRestrictionRoles) {
201 186
             return array_map('trim', explode(',', $this->accessRestrictionRoles));
202 187
         } else {
@@ -210,8 +195,7 @@  discard block
 block discarded – undo
210 195
      * @param array $accessRestrictionRoles
211 196
      * @return void
212 197
      */
213
-    public function setAccessRestrictionRoles($accessRestrictionRoles)
214
-    {
198
+    public function setAccessRestrictionRoles($accessRestrictionRoles) {
215 199
         $this->accessRestrictionRoles = implode(',', $accessRestrictionRoles);
216 200
     }
217 201
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      *
47 47
      * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataGroup>
48 48
      */
49
-    protected $metadataGroup = null;
49
+    protected $metadataGroup = NULL;
50 50
 
51 51
     /**
52 52
      * accessRestrictionRoles
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@
 block discarded – undo
377 377
         if ($this->accessRestrictionRoles) {
378 378
             return array_map('trim', explode(',', $this->accessRestrictionRoles));
379 379
         } else {
380
-            return array();
380
+            return array ();
381 381
         }
382 382
     }
383 383
 
Please login to merge, or discard this patch.
Classes/Exceptions/InactivateDocumentErrorException.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class InactivateDocumentErrorException extends \Exception implements DPFExceptionInterface
18
-{
19
-    public function messageLanguageKey()
20
-    {
17
+class InactivateDocumentErrorException extends \Exception implements DPFExceptionInterface {
18
+    public function messageLanguageKey() {
21 19
         return 'LLL:EXT:dpf/Resources/Private/Language/locallang.xlf:document_inactivate.failure';
22 20
     }
23 21
 }
24 22
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Controller/DocumentFormController.php 3 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     protected function redirectToList($message = null)
24 24
     {
25
-        $this->redirect('list', 'DocumentForm', null, array('message' => $message));
25
+        $this->redirect('list', 'DocumentForm', null, array ('message' => $message));
26 26
     }
27 27
 
28 28
     /**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $notifier = $this->objectManager->get(Notifier::class);
68 68
             $notifier->sendNewDocumentNotification($newDocument);
69 69
 
70
-            if (key_exists('afterDocSavedRedirectPage',$this->settings) && $this->settings['afterDocSavedRedirectPage']) {
70
+            if (key_exists('afterDocSavedRedirectPage', $this->settings) && $this->settings['afterDocSavedRedirectPage']) {
71 71
                 $uri = $this->uriBuilder
72 72
                     ->setTargetPageUid($this->settings['afterDocSavedRedirectPage'])
73 73
                     ->build();
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
 
88 88
             $message[] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, 'dpf');
89 89
 
90
-            $this->addFlashMessage(implode(" ", $message), '', $severity,true);
91
-            $this->forward('new', 'DocumentForm', null, array('newDocumentForm' => $newDocumentForm));
90
+            $this->addFlashMessage(implode(" ", $message), '', $severity, true);
91
+            $this->forward('new', 'DocumentForm', null, array ('newDocumentForm' => $newDocumentForm));
92 92
         }
93 93
     }
94 94
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,11 +18,9 @@  discard block
 block discarded – undo
18 18
 use EWW\Dpf\Helper\DocumentMapper;
19 19
 use EWW\Dpf\Services\Email\Notifier;
20 20
 
21
-class DocumentFormController extends AbstractDocumentFormController
22
-{
21
+class DocumentFormController extends AbstractDocumentFormController {
23 22
 
24
-    protected function redirectToList($message = null)
25
-    {
23
+    protected function redirectToList($message = null) {
26 24
         $this->redirect('list', 'DocumentForm', null, array('message' => $message));
27 25
     }
28 26
 
@@ -34,8 +32,7 @@  discard block
 block discarded – undo
34 32
      * @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("newDocumentForm")
35 33
      * @return void
36 34
      */
37
-    public function newAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm = null, $returnDocumentId = 0)
38
-    {
35
+    public function newAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm = null, $returnDocumentId = 0) {
39 36
         $this->view->assign('documentForm', $newDocumentForm);
40 37
     }
41 38
 
@@ -45,8 +42,7 @@  discard block
 block discarded – undo
45 42
      * @param \EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm
46 43
      * @return void
47 44
      */
48
-    public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm)
49
-    {
45
+    public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm) {
50 46
         foreach ($newDocumentForm->getNewFiles() as $newFile) {
51 47
             $uid = $newFile->getUID();
52 48
             if (empty($uid)) {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
 class DocumentFormController extends AbstractDocumentFormController
22 22
 {
23 23
 
24
-    protected function redirectToList($message = null)
24
+    protected function redirectToList($message = NULL)
25 25
     {
26
-        $this->redirect('list', 'DocumentForm', null, array('message' => $message));
26
+        $this->redirect('list', 'DocumentForm', NULL, array('message' => $message));
27 27
     }
28 28
 
29 29
     /**
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("newDocumentForm")
35 35
      * @return void
36 36
      */
37
-    public function newAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm = null, $returnDocumentId = 0)
37
+    public function newAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm = NULL, $returnDocumentId = 0)
38 38
     {
39 39
         $this->view->assign('documentForm', $newDocumentForm);
40 40
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         foreach ($newDocumentForm->getNewFiles() as $newFile) {
51 51
             $uid = $newFile->getUID();
52 52
             if (empty($uid)) {
53
-                $newFile->setDownload(true);
53
+                $newFile->setDownload(TRUE);
54 54
             }
55 55
             $files[] = $newFile;
56 56
         }
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 
91 91
             $message[] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, 'dpf');
92 92
 
93
-            $this->addFlashMessage(implode(" ", $message), '', $severity,true);
94
-            $this->forward('new', 'DocumentForm', null, array('newDocumentForm' => $newDocumentForm));
93
+            $this->addFlashMessage(implode(" ", $message), '', $severity,TRUE);
94
+            $this->forward('new', 'DocumentForm', NULL, array('newDocumentForm' => $newDocumentForm));
95 95
         }
96 96
     }
97 97
 }
Please login to merge, or discard this patch.
Classes/Security/Voter.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @var array
34 34
      */
35
-    protected $attributes = array();
35
+    protected $attributes = array ();
36 36
 
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 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 TYPO3\CMS\Extbase\Object\ObjectManager;
19 19
 
20
-abstract class Voter
21
-{
20
+abstract class Voter {
22 21
     /**
23 22
      * security
24 23
      *
@@ -60,8 +59,7 @@  discard block
 block discarded – undo
60 59
      *
61 60
      * @return array
62 61
      */
63
-    public static function getVoters()
64
-    {
62
+    public static function getVoters() {
65 63
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
66 64
         $voters[] = $objectManager->get(\EWW\Dpf\Security\DocumentVoter::class);
67 65
         return $voters;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @var \EWW\Dpf\Security\Security
26 26
      * @TYPO3\CMS\Extbase\Annotation\Inject
27 27
      */
28
-    protected $security = null;
28
+    protected $security = NULL;
29 29
 
30 30
     /**
31 31
      * supported attributes
Please login to merge, or discard this patch.