Passed
Pull Request — master (#175)
by
unknown
08:32
created
ext_localconf.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
22 22
     require_once $composerAutoloadFile;
23 23
 }
24 24
 
25
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array(
25
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array (
26 26
     'extension'   => $_EXTKEY,
27 27
     'title'       => 'Qucosa-Dokumente ans Repository übertragen.',
28 28
     'description' => '',
29 29
 );
30 30
 
31
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\EmbargoTask'] = array(
31
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\EmbargoTask'] = array (
32 32
     'extension' => $_EXTKEY,
33 33
     'title' => 'Kitodo.Publication Embargo Task',
34 34
     'description' => 'Embargo task for sending information to admins or publish files automatically if the embargo date is expired',
@@ -36,20 +36,20 @@  discard block
 block discarded – undo
36 36
 
37 37
 
38 38
 if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) {
39
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array();
39
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array ();
40 40
 }
41 41
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'EWW\Dpf\Command\TransferCommandController';
42 42
 
43 43
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
44 44
     'EWW.' . $_EXTKEY,
45 45
     'Qucosaform',
46
-    array(
46
+    array (
47 47
         'DocumentForm'     => 'list,new,create,edit,update,delete,cancel',
48 48
         'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut',
49 49
         'Gnd'              => 'search',
50 50
     ),
51 51
     // non-cacheable actions
52
-    array(
52
+    array (
53 53
         'DocumentForm'     => 'list,new,create,edit,update,delete,cancel,ajaxGroup,ajaxFileGroup,ajaxField',
54 54
         'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut',
55 55
         'Gnd'              => 'search',
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
62 62
     'EWW.' . $_EXTKEY,
63 63
     'Frontendsearch',
64
-    array(
64
+    array (
65 65
         'SearchFE' => 'search,extendedSearch,showSearchForm',
66 66
     ),
67 67
     // non-cacheable actions
68
-    array(
68
+    array (
69 69
         'SearchFE' => 'search,extendedSearch'
70 70
     )
71 71
 );
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
74 74
     'EWW.' . $_EXTKEY,
75 75
     'Getfile',
76
-    array(
76
+    array (
77 77
         'GetFile'     => 'attachment',
78 78
     ),
79 79
     // non-cacheable actions
80
-    array(
80
+    array (
81 81
         'GetFile'     => 'attachment',
82 82
     )
83 83
 );
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
87 87
     'EWW.' . $_EXTKEY,
88 88
     'Backoffice',
89
-    array(
89
+    array (
90 90
         'Workspace'        => 'listWorkspace, initIndex, '
91 91
             .'batch, batchRegister, batchRemove, batchReleaseValidated, batchReleaseUnvalidated, uploadFiles',
92 92
         'Document'         => 'logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, '
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         'Gnd'              => 'search',
103 103
     ),
104 104
     // non-cacheable actions
105
-    array(
105
+    array (
106 106
         'Workspace'        => 'listWorkspace, initIndex, '
107 107
             .'batch, batchRegister, batchRemove, batchReleaseValidated, batchReleaseUnvalidated, uploadFiles',
108 108
         'Document'         => 'logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, '
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_document.php 1 patch
Spacing   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     die('Access denied.');
17 17
 }
18 18
 
19
-return array(
20
-    'ctrl' => array(
19
+return array (
20
+    'ctrl' => array (
21 21
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document',
22 22
         'label'                    => 'title',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -38,151 +38,151 @@  discard block
 block discarded – undo
38 38
         object_identifier, transfer_status, file, creator, temporary, remote_last_mod_date, automatic_embargo',
39 39
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_document.gif',
40 40
     ),
41
-    'interface' => array(
41
+    'interface' => array (
42 42
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden,
43 43
         title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, valid, changed,
44 44
         state, reserved_object_identifier, object_identifier,
45 45
         transfer_status, file, creator, temporary, remote_last_mod_date, automatic_embargo',
46 46
     ),
47
-    'types'     => array(
48
-        '1' => array('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1, 
47
+    'types'     => array (
48
+        '1' => array ('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1, 
49 49
         title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, valid, changed,
50 50
         state, reserved_object_identifier, object_identifier,
51 51
         transfer_status, file, creator, temporary, remote_last_mod_date, automatic_embargo,
52 52
         --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'),
53 53
     ),
54
-    'palettes'  => array(
55
-        '1' => array('showitem' => ''),
54
+    'palettes'  => array (
55
+        '1' => array ('showitem' => ''),
56 56
     ),
57
-    'columns'   => array(
57
+    'columns'   => array (
58 58
 
59
-        'sys_language_uid'           => array(
59
+        'sys_language_uid'           => array (
60 60
             'exclude' => 1,
61 61
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
62
-            'config'  => array(
62
+            'config'  => array (
63 63
                 'type'                => 'select',
64 64
                 'renderType'          => 'selectSingle',
65 65
                 'foreign_table'       => 'sys_language',
66 66
                 'foreign_table_where' => 'ORDER BY sys_language.title',
67
-                'items'               => array(
68
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
69
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
67
+                'items'               => array (
68
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
69
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
70 70
                 ),
71 71
             ),
72 72
         ),
73
-        'l10n_parent'                => array(
73
+        'l10n_parent'                => array (
74 74
             'displayCond' => 'FIELD:sys_language_uid:>:0',
75 75
             'exclude'     => 1,
76 76
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
77
-            'config'      => array(
77
+            'config'      => array (
78 78
                 'type'                => 'select',
79 79
                 'renderType'          => 'selectSingle',
80
-                'items'               => array(
81
-                    array('', 0),
80
+                'items'               => array (
81
+                    array ('', 0),
82 82
                 ),
83 83
                 'foreign_table'       => 'tx_dpf_domain_model_document',
84 84
                 'foreign_table_where' => 'AND tx_dpf_domain_model_document.pid=###CURRENT_PID### AND tx_dpf_domain_model_document.sys_language_uid IN (-1,0)',
85 85
             ),
86 86
         ),
87
-        'l10n_diffsource'            => array(
88
-            'config' => array(
87
+        'l10n_diffsource'            => array (
88
+            'config' => array (
89 89
                 'type' => 'passthrough',
90 90
             ),
91 91
         ),
92 92
 
93
-        't3ver_label'                => array(
93
+        't3ver_label'                => array (
94 94
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
95
-            'config' => array(
95
+            'config' => array (
96 96
                 'type' => 'input',
97 97
                 'size' => 30,
98 98
                 'max'  => 255,
99 99
             ),
100 100
         ),
101 101
 
102
-        'hidden'                     => array(
102
+        'hidden'                     => array (
103 103
             'exclude' => 1,
104 104
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
105
-            'config'  => array(
105
+            'config'  => array (
106 106
                 'type' => 'check',
107 107
             ),
108 108
         ),
109
-        'starttime'                  => array(
109
+        'starttime'                  => array (
110 110
             'exclude'   => 1,
111 111
             'l10n_mode' => 'mergeIfNotBlank',
112 112
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
113
-            'config'    => array(
113
+            'config'    => array (
114 114
                 'type'     => 'input',
115 115
                 'renderType' => 'inputDateTime',
116 116
                 'size'     => 13,
117 117
                 'eval'     => 'datetime',
118 118
                 'checkbox' => 0,
119 119
                 'default'  => 0,
120
-                'range'    => array(
120
+                'range'    => array (
121 121
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
122 122
                 ),
123 123
             ),
124 124
         ),
125
-        'endtime'                    => array(
125
+        'endtime'                    => array (
126 126
             'exclude'   => 1,
127 127
             'l10n_mode' => 'mergeIfNotBlank',
128 128
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
129
-            'config'    => array(
129
+            'config'    => array (
130 130
                 'type'     => 'input',
131 131
                 'renderType' => 'inputDateTime',
132 132
                 'size'     => 13,
133 133
                 'eval'     => 'datetime',
134 134
                 'checkbox' => 0,
135 135
                 'default'  => 0,
136
-                'range'    => array(
136
+                'range'    => array (
137 137
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
138 138
                 ),
139 139
             ),
140 140
         ),
141 141
 
142
-        'title'                      => array(
142
+        'title'                      => array (
143 143
             'exclude' => 1,
144 144
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.title',
145
-            'config'  => array(
145
+            'config'  => array (
146 146
                 'type' => 'input',
147 147
                 'size' => 30,
148 148
                 'eval' => 'trim',
149 149
             ),
150 150
         ),
151 151
 
152
-        'authors'                    => array(
152
+        'authors'                    => array (
153 153
             'exclude' => 1,
154 154
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.authors',
155
-            'config'  => array(
155
+            'config'  => array (
156 156
                 'type' => 'input',
157 157
                 'size' => 30,
158 158
                 'eval' => 'trim',
159 159
             ),
160 160
         ),
161 161
 
162
-        'xml_data'                   => array(
162
+        'xml_data'                   => array (
163 163
             'exclude' => 1,
164 164
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.xml_data',
165
-            'config'  => array(
165
+            'config'  => array (
166 166
                 'type' => 'text',
167 167
                 'cols' => 40,
168 168
                 'rows' => 15,
169 169
                 'eval' => 'trim',
170 170
             ),
171 171
         ),
172
-        'slub_info_data'             => array(
172
+        'slub_info_data'             => array (
173 173
             'exclude' => 1,
174 174
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.slub_info_data',
175
-            'config'  => array(
175
+            'config'  => array (
176 176
                 'type' => 'text',
177 177
                 'cols' => 40,
178 178
                 'rows' => 15,
179 179
                 'eval' => 'trim',
180 180
             ),
181 181
         ),
182
-        'document_type'              => array(
182
+        'document_type'              => array (
183 183
             'exclude' => 1,
184 184
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.document_type',
185
-            'config'  => array(
185
+            'config'  => array (
186 186
                 'type'                => 'select',
187 187
                 'renderType'          => 'selectSingle',
188 188
                 'foreign_table'       => 'tx_dpf_domain_model_documenttype',
@@ -192,20 +192,20 @@  discard block
 block discarded – undo
192 192
             ),
193 193
         ),
194 194
 
195
-        'crdate'                     => array(
195
+        'crdate'                     => array (
196 196
             'exclude' => 0,
197 197
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.creationDate',
198
-            'config'  => array(
198
+            'config'  => array (
199 199
                 'type'   => 'none',
200 200
                 'format' => 'datetime',
201 201
                 'eval'   => 'datetime',
202 202
             ),
203 203
         ),
204 204
 
205
-        'tstamp'                     => array(
205
+        'tstamp'                     => array (
206 206
             'exclude' => 0,
207 207
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.timestamp',
208
-            'config'  => array(
208
+            'config'  => array (
209 209
                 'type'   => 'input',
210 210
                 'renderType' => 'inputDateTime',
211 211
                 'format' => 'datetime',
@@ -213,108 +213,108 @@  discard block
 block discarded – undo
213 213
             ),
214 214
         ),
215 215
 
216
-        'transfer_status'            => array(
216
+        'transfer_status'            => array (
217 217
             'exclude' => 0,
218 218
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.transfer_status',
219
-            'config'  => array(
219
+            'config'  => array (
220 220
                 'type' => 'input',
221 221
                 'size' => '30',
222 222
                 'eval' => 'trim',
223 223
             ),
224 224
         ),
225 225
 
226
-        'object_identifier'          => array(
226
+        'object_identifier'          => array (
227 227
             'exclude' => 0,
228 228
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.object_identifier',
229
-            'config'  => array(
229
+            'config'  => array (
230 230
                 'type' => 'input',
231 231
                 'size' => '30',
232 232
                 'eval' => 'trim',
233 233
             ),
234 234
         ),
235 235
 
236
-        'reserved_object_identifier' => array(
236
+        'reserved_object_identifier' => array (
237 237
             'exclude' => 0,
238 238
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.reserved_object_identifier',
239
-            'config'  => array(
239
+            'config'  => array (
240 240
                 'type' => 'input',
241 241
                 'size' => '30',
242 242
                 'eval' => 'trim',
243 243
             ),
244 244
         ),
245 245
 
246
-        'process_number' => array(
246
+        'process_number' => array (
247 247
             'exclude' => 0,
248 248
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.process_number',
249
-            'config'  => array(
249
+            'config'  => array (
250 250
                 'type' => 'input',
251 251
                 'size' => '30',
252 252
                 'eval' => 'trim',
253 253
             ),
254 254
         ),
255 255
 
256
-        'state'                      => array(
256
+        'state'                      => array (
257 257
             'exclude' => 0,
258 258
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.state',
259
-            'config'  => array(
259
+            'config'  => array (
260 260
                 'type' => 'input',
261 261
                 'size' => '30',
262 262
                 'eval' => 'trim',
263 263
             ),
264 264
         ),
265 265
 
266
-        'remote_last_mod_date'       => array(
266
+        'remote_last_mod_date'       => array (
267 267
             'exclude' => 1,
268 268
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.remote_last_mod_date',
269
-            'config'  => array(
269
+            'config'  => array (
270 270
                 'type' => 'input',
271 271
                 'size' => 30,
272 272
                 'eval' => 'trim',
273 273
             ),
274 274
         ),
275 275
 
276
-        'changed'                    => array(
276
+        'changed'                    => array (
277 277
             'exclude'   => 1,
278 278
             'l10n_mode' => 'exclude',
279 279
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.changed',
280
-            'config'    => array(
280
+            'config'    => array (
281 281
                 'type'    => 'check',
282 282
                 'default' => 0,
283 283
             ),
284 284
         ),
285 285
 
286
-        'valid'                      => array(
286
+        'valid'                      => array (
287 287
             'exclude'   => 1,
288 288
             'l10n_mode' => 'exclude',
289 289
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.valid',
290
-            'config'    => array(
290
+            'config'    => array (
291 291
                 'type'    => 'check',
292 292
                 'default' => 0,
293 293
             ),
294 294
         ),
295 295
 
296
-        'date_issued'                => array(
296
+        'date_issued'                => array (
297 297
             'exclude' => 1,
298 298
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.date_issued',
299
-            'config'  => array(
299
+            'config'  => array (
300 300
                 'type' => 'input',
301 301
                 'size' => 30,
302 302
                 'eval' => 'trim',
303 303
             ),
304 304
         ),
305 305
 
306
-        'file'                       => array(
306
+        'file'                       => array (
307 307
             'exclude' => 1,
308 308
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.file',
309
-            'config'  => array(
309
+            'config'  => array (
310 310
                 'type'          => 'inline',
311 311
                 'foreign_table' => 'tx_dpf_domain_model_file',
312 312
                 'foreign_field' => 'document',
313
-                'behaviour'     => array(
313
+                'behaviour'     => array (
314 314
                     'disableMovingChildrenWithParent' => 1,
315 315
                 ),
316 316
                 'maxitems'      => 9999,
317
-                'appearance'    => array(
317
+                'appearance'    => array (
318 318
                     'collapseAll'                     => 0,
319 319
                     'levelLinksPosition'              => 'top',
320 320
                     'showSynchronizationLink'         => 1,
@@ -325,13 +325,13 @@  discard block
 block discarded – undo
325 325
 
326 326
         ),
327 327
 
328
-        'creator'              => array(
328
+        'creator'              => array (
329 329
             'exclude' => 1,
330 330
             'label'   => 'Creator',
331
-            'config'  => array(
331
+            'config'  => array (
332 332
                 'type'          => 'select',
333 333
                 'items' => array (
334
-                    array('', 0),
334
+                    array ('', 0),
335 335
                 ),
336 336
                 'renderType'    => 'selectSingle',
337 337
                 'foreign_table' => 'fe_users',
@@ -340,60 +340,60 @@  discard block
 block discarded – undo
340 340
             ),
341 341
         ),
342 342
 
343
-        'temporary'                      => array(
343
+        'temporary'                      => array (
344 344
             'exclude'   => 1,
345 345
             'l10n_mode' => 'exclude',
346 346
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.temporary',
347
-            'config'    => array(
347
+            'config'    => array (
348 348
                 'type'    => 'check',
349 349
                 'default' => 0,
350 350
             ),
351 351
         ),
352 352
 
353 353
 
354
-        'suggestion' => array(
354
+        'suggestion' => array (
355 355
             'exclude'   => 1,
356 356
             'l10n_mode' => 'exclude',
357 357
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.suggestion',
358
-            'config'    => array(
358
+            'config'    => array (
359 359
                 'type'    => 'check',
360 360
                 'default' => 0,
361 361
             ),
362 362
         ),
363 363
 
364
-        'linked_uid' => array(
364
+        'linked_uid' => array (
365 365
             'exclude'   => 1,
366 366
             'l10n_mode' => 'exclude',
367 367
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.linked_uid',
368
-            'config'    => array(
368
+            'config'    => array (
369 369
                 'type'    => 'check'
370 370
             ),
371 371
         ),
372 372
 
373
-        'comment' => array(
373
+        'comment' => array (
374 374
             'exclude' => 1,
375 375
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.comment',
376
-            'config'  => array(
376
+            'config'  => array (
377 377
                 'type' => 'input',
378 378
                 'size' => 30,
379 379
                 'eval' => 'trim',
380 380
             ),
381 381
         ),
382 382
 
383
-        'automatic_embargo'    => array(
383
+        'automatic_embargo'    => array (
384 384
             'exclude'   => 1,
385 385
             'l10n_mode' => 'exclude',
386 386
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.embargo',
387
-            'config'    => array(
387
+            'config'    => array (
388 388
                 'type'    => 'check',
389 389
                 'default' => 0,
390 390
             ),
391 391
         ),
392 392
 
393
-        'embargo_date'    => array(
393
+        'embargo_date'    => array (
394 394
             'exclude' => 1,
395 395
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.embargo_date',
396
-            'config'  => array(
396
+            'config'  => array (
397 397
                 'type'     => 'input',
398 398
                 'renderType' => 'inputDateTime',
399 399
                 'size'     => 10,
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_metadataobject.php 1 patch
Spacing   +95 added lines, -95 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     die('Access denied.');
17 17
 }
18 18
 
19
-return array(
20
-    'ctrl' => array(
19
+return array (
20
+    'ctrl' => array (
21 21
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject',
22 22
         'label'                    => 'name',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -36,257 +36,257 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_metadataobject.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
42
+    'types'     => array (
43
+        '1' => array ('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, max_iteration, mandatory, data_type, validation, mapping, mods_extension, input_field, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
44 44
     ),
45
-    'palettes'  => array(
46
-        '1' => array('showitem' => ''),
45
+    'palettes'  => array (
46
+        '1' => array ('showitem' => ''),
47 47
     ),
48
-    'columns'   => array(
48
+    'columns'   => array (
49 49
 
50
-        'sys_language_uid'  => array(
50
+        'sys_language_uid'  => array (
51 51
             'exclude' => 1,
52 52
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
53
-            'config'  => array(
53
+            'config'  => array (
54 54
                 'type'                => 'select',
55 55
                 'renderType'          => 'selectSingle',
56 56
                 'foreign_table'       => 'sys_language',
57 57
                 'foreign_table_where' => 'ORDER BY sys_language.title',
58
-                'items'               => array(
59
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
60
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
58
+                'items'               => array (
59
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
60
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
61 61
                 ),
62 62
             ),
63 63
         ),
64
-        'l10n_parent'       => array(
64
+        'l10n_parent'       => array (
65 65
             'displayCond' => 'FIELD:sys_language_uid:>:0',
66 66
             'exclude'     => 1,
67 67
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
68
-            'config'      => array(
68
+            'config'      => array (
69 69
                 'type'                => 'select',
70 70
                 'renderType'          => 'selectSingle',
71
-                'items'               => array(
72
-                    array('', 0),
71
+                'items'               => array (
72
+                    array ('', 0),
73 73
                 ),
74 74
                 'foreign_table'       => 'tx_dpf_domain_model_metadataobject',
75 75
                 'foreign_table_where' => 'AND tx_dpf_domain_model_metadataobject.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadataobject.sys_language_uid IN (-1,0)',
76 76
             ),
77 77
         ),
78
-        'l10n_diffsource'   => array(
79
-            'config' => array(
78
+        'l10n_diffsource'   => array (
79
+            'config' => array (
80 80
                 'type' => 'passthrough',
81 81
             ),
82 82
         ),
83 83
 
84
-        't3ver_label'       => array(
84
+        't3ver_label'       => array (
85 85
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
86
-            'config' => array(
86
+            'config' => array (
87 87
                 'type' => 'input',
88 88
                 'size' => 30,
89 89
                 'max'  => 255,
90 90
             ),
91 91
         ),
92 92
 
93
-        'hidden'            => array(
93
+        'hidden'            => array (
94 94
             'exclude'   => 1,
95 95
             'l10n_mode' => 'exclude',
96 96
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
97
-            'config'    => array(
97
+            'config'    => array (
98 98
                 'type' => 'check',
99 99
             ),
100 100
         ),
101
-        'starttime'         => array(
101
+        'starttime'         => array (
102 102
             'exclude'   => 1,
103 103
             'l10n_mode' => 'mergeIfNotBlank',
104 104
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
105
-            'config'    => array(
105
+            'config'    => array (
106 106
                 'type'     => 'input',
107 107
                 'renderType' => 'inputDateTime',
108 108
                 'size'     => 13,
109 109
                 'eval'     => 'datetime',
110 110
                 'checkbox' => 0,
111 111
                 'default'  => 0,
112
-                'range'    => array(
112
+                'range'    => array (
113 113
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
114 114
                 ),
115 115
             ),
116 116
         ),
117
-        'endtime'           => array(
117
+        'endtime'           => array (
118 118
             'exclude'   => 1,
119 119
             'l10n_mode' => 'mergeIfNotBlank',
120 120
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
121
-            'config'    => array(
121
+            'config'    => array (
122 122
                 'type'     => 'input',
123 123
                 'renderType' => 'inputDateTime',
124 124
                 'size'     => 13,
125 125
                 'eval'     => 'datetime',
126 126
                 'checkbox' => 0,
127 127
                 'default'  => 0,
128
-                'range'    => array(
128
+                'range'    => array (
129 129
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
130 130
                 ),
131 131
             ),
132 132
         ),
133 133
 
134
-        'name'              => array(
134
+        'name'              => array (
135 135
             'exclude'   => 1,
136 136
             'l10n_mode' => 'exclude',
137 137
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.name',
138
-            'config'    => array(
138
+            'config'    => array (
139 139
                 'type' => 'input',
140 140
                 'size' => 30,
141 141
                 'eval' => 'trim',
142 142
             ),
143 143
         ),
144
-        'display_name'      => array(
144
+        'display_name'      => array (
145 145
             'exclude' => 1,
146 146
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.display_name',
147
-            'config'  => array(
147
+            'config'  => array (
148 148
                 'type' => 'input',
149 149
                 'size' => 30,
150 150
                 'eval' => 'trim',
151 151
             ),
152 152
         ),
153
-        'max_iteration'     => array(
153
+        'max_iteration'     => array (
154 154
             'exclude'   => 1,
155 155
             'l10n_mode' => 'exclude',
156 156
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_iteration',
157
-            'config'    => array(
157
+            'config'    => array (
158 158
                 'type' => 'input',
159 159
                 'size' => 4,
160 160
                 'eval' => 'int',
161 161
             ),
162 162
         ),
163
-        'mandatory'         => array(
163
+        'mandatory'         => array (
164 164
             'exclude'   => 1,
165 165
             'l10n_mode' => 'exclude',
166 166
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory',
167
-            'config'    => array(
167
+            'config'    => array (
168 168
                 'type' => 'select',
169 169
                 'size' => 1,
170 170
                 'maxitems' => 1,
171
-                'items' => array(
172
-                    array('',''),
173
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY),
174
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY),
171
+                'items' => array (
172
+                    array ('', ''),
173
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY),
174
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY),
175 175
                 ),
176 176
             ),
177 177
         ),
178
-        'mapping'           => array(
178
+        'mapping'           => array (
179 179
             'exclude'   => 1,
180 180
             'l10n_mode' => 'exclude',
181 181
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mapping',
182
-            'config'    => array(
182
+            'config'    => array (
183 183
                 'type' => 'input',
184 184
                 'size' => 30,
185 185
                 'eval' => 'trim',
186 186
             ),
187 187
         ),
188
-        'data_type'         => array(
188
+        'data_type'         => array (
189 189
             'exclude'   => 1,
190 190
             'l10n_mode' => 'exclude',
191 191
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type',
192
-            'config'    => array(
192
+            'config'    => array (
193 193
                 'type'     => 'select',
194 194
                 'renderType' => 'selectSingle',
195
-                'items'    => array(
196
-                    array('', ''),
197
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.regexp', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_REGEXP),
198
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.date', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_DATE),
195
+                'items'    => array (
196
+                    array ('', ''),
197
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.regexp', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_REGEXP),
198
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.data_type.date', \EWW\Dpf\Domain\Model\MetadataObject::INPUT_DATA_TYPE_DATE),
199 199
                 ),
200 200
                 'size'     => 1,
201 201
                 'maxitems' => 1,
202 202
                 'eval'     => '',
203 203
             ),
204 204
         ),
205
-        'validation'        => array(
205
+        'validation'        => array (
206 206
             'exclude'   => 1,
207 207
             'l10n_mode' => 'exclude',
208 208
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation',
209
-            'config'    => array(
209
+            'config'    => array (
210 210
                 'type' => 'input',
211 211
                 'size' => 30,
212 212
                 'eval' => 'trim',
213 213
             ),
214 214
         ),
215
-        'mods_extension'    => array(
215
+        'mods_extension'    => array (
216 216
             'exclude'   => 1,
217 217
             'l10n_mode' => 'exclude',
218 218
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mods_extension',
219
-            'config'    => array(
219
+            'config'    => array (
220 220
                 'type'    => 'check',
221 221
                 'default' => 0,
222 222
             ),
223 223
         ),
224
-        'access_restriction_roles' => array(
224
+        'access_restriction_roles' => array (
225 225
             'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.access_restriction_roles',
226
-            'config' => array(
226
+            'config' => array (
227 227
                 'type' => 'select',
228 228
                 'size' => 2,
229 229
                 'maxitems' => 2,
230
-                'items' => array(
231
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER),
232
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN),
230
+                'items' => array (
231
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER),
232
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN),
233 233
                 ),
234 234
             ),
235 235
         ),
236
-        'consent'           => array(
236
+        'consent'           => array (
237 237
             'exclude'   => 1,
238 238
             'l10n_mode' => 'exclude',
239 239
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.consent',
240
-            'config'    => array(
240
+            'config'    => array (
241 241
                 'type'    => 'check',
242 242
                 'default' => 0,
243 243
             ),
244 244
         ),
245
-        'input_field'       => array(
245
+        'input_field'       => array (
246 246
             'exclude'   => 1,
247 247
             'l10n_mode' => 'exclude',
248 248
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_field',
249
-            'config'    => array(
249
+            'config'    => array (
250 250
                 'type'     => 'select',
251 251
                 'renderType' => 'selectSingle',
252
-                'items'    => array(
253
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input),
254
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea),
255
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select),
256
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox),
257
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden),
258
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN),
252
+                'items'    => array (
253
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input),
254
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea),
255
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select),
256
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox),
257
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden),
258
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN),
259 259
                 ),
260 260
                 'size'     => 1,
261 261
                 'maxitems' => 1,
262 262
                 'eval'     => '',
263 263
             ),
264 264
         ),
265
-        'max_input_length'       => array(
266
-            'displayCond' => array(
267
-                'OR' => array(
265
+        'max_input_length'       => array (
266
+            'displayCond' => array (
267
+                'OR' => array (
268 268
                     'FIELD:input_field:REQ:false',
269
-                    'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::input,
270
-                    'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::textarea,
269
+                    'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::input,
270
+                    'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::textarea,
271 271
                 ),
272 272
             ),
273 273
             'exclude'   => 1,
274 274
             'l10n_mode' => 'exclude',
275 275
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_input_length',
276
-            'config'    => array(
276
+            'config'    => array (
277 277
                 'type' => 'input',
278 278
                 'size' => 4,
279 279
                 'eval' => 'trim,number',
280 280
             ),
281 281
         ),
282
-        'input_option_list' => array(
282
+        'input_option_list' => array (
283 283
             'exclude' => 1,
284 284
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_option_list',
285
-            'config'  => array(
285
+            'config'  => array (
286 286
                 'type'                => 'select',
287 287
                 'renderType'          => 'selectSingle',
288
-                'items'               => array(
289
-                    array('', 0),
288
+                'items'               => array (
289
+                    array ('', 0),
290 290
                 ),
291 291
                 'foreign_table'       => 'tx_dpf_domain_model_inputoptionlist',
292 292
                 'foreign_table_where' => ' AND (tx_dpf_domain_model_inputoptionlist.pid=###CURRENT_PID###) AND (tx_dpf_domain_model_inputoptionlist.sys_language_uid = 0)',
@@ -294,27 +294,27 @@  discard block
 block discarded – undo
294 294
                 'maxitems'            => 1,
295 295
             ),
296 296
         ),
297
-        'default_value'     => array(
297
+        'default_value'     => array (
298 298
             'exclude' => 1,
299 299
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.default_value',
300
-            'config'  => array(
300
+            'config'  => array (
301 301
                 'type' => 'text',
302 302
                 'cols' => 20,
303 303
                 'rows' => 3,
304 304
                 'eval' => 'trim',
305 305
             ),
306 306
         ),
307
-        'fill_out_service'  => array(
307
+        'fill_out_service'  => array (
308 308
             'exclude'   => 1,
309 309
             'l10n_mode' => 'exclude',
310 310
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service',
311
-            'config'    => array(
311
+            'config'    => array (
312 312
                 'type'     => 'select',
313 313
                 'renderType' => 'selectSingle',
314
-                'items'    => array(
315
-                    array('', 0),
316
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.urn', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_URN),
317
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.gnd', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND),
314
+                'items'    => array (
315
+                    array ('', 0),
316
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.urn', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_URN),
317
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.fill_out_service.gnd', \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND),
318 318
                 ),
319 319
                 'size'     => 1,
320 320
                 'maxitems' => 1,
@@ -322,26 +322,26 @@  discard block
 block discarded – undo
322 322
             ),
323 323
             'onChange' => 'reload',
324 324
         ),
325
-        'gnd_field_uid' => array(
326
-            'displayCond' => 'FIELD:fill_out_service:=:'.\EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND,
325
+        'gnd_field_uid' => array (
326
+            'displayCond' => 'FIELD:fill_out_service:=:' . \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND,
327 327
             'exclude'   => 0,
328 328
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.gnd_field_uid',
329
-            'config'  => array(
329
+            'config'  => array (
330 330
                 'type' => 'input',
331 331
                 'size' => 30,
332 332
                 'eval' => 'trim',
333 333
             ),
334 334
         ),
335
-        'metadatagroup'     => array(
336
-            'config' => array(
335
+        'metadatagroup'     => array (
336
+            'config' => array (
337 337
                 'type' => 'passthrough',
338 338
             ),
339 339
         ),
340
-        'embargo'    => array(
340
+        'embargo'    => array (
341 341
             'exclude'   => 1,
342 342
             'l10n_mode' => 'exclude',
343 343
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.embargo',
344
-            'config'    => array(
344
+            'config'    => array (
345 345
                 'type'    => 'check',
346 346
                 'default' => 0,
347 347
             ),
Please login to merge, or discard this patch.
Classes/Services/Email/Notifier.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
             $logger->log(
111 111
                 LogLevel::ERROR, "sendNewDocumentNotification failed",
112
-                array(
112
+                array (
113 113
                     'document' => $document
114 114
                 )
115 115
             );
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
             $logger->log(
168 168
                 LogLevel::ERROR, "sendIngestNotification failed",
169
-                array(
169
+                array (
170 170
                     'document' => $document
171 171
                 )
172 172
             );
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
             $logger->log(
225 225
                 LogLevel::ERROR, "sendRegisterNotification failed",
226
-                array(
226
+                array (
227 227
                     'document' => $document
228 228
                 )
229 229
             );
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 
283 283
             $logger->log(
284 284
                 LogLevel::ERROR, "sendRegisterNotification failed",
285
-                array(
285
+                array (
286 286
                     'document' => $document
287 287
                 )
288 288
             );
@@ -303,13 +303,13 @@  discard block
 block discarded – undo
303 303
 
304 304
     protected function sendMail($reveiver, $subject, $body, $args, $mailType)
305 305
     {
306
-        $emailReceiver = array();
306
+        $emailReceiver = array ();
307 307
         $emailReceiver[$reveiver] = $reveiver;
308 308
         $message = (new \TYPO3\CMS\Core\Mail\MailMessage())
309
-            ->setFrom(array('[email protected]' => '[email protected]'))
309
+            ->setFrom(array ('[email protected]' => '[email protected]'))
310 310
             ->setTo($emailReceiver)
311
-            ->setSubject($this->replaceMarkers($subject,$args))
312
-            ->setBody($this->replaceMarkers($body,$args),$mailType);
311
+            ->setSubject($this->replaceMarkers($subject, $args))
312
+            ->setBody($this->replaceMarkers($body, $args), $mailType);
313 313
         $message->send();
314 314
     }
315 315
 
Please login to merge, or discard this patch.
Classes/Domain/Repository/DocumentRepository.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             case Security::ROLE_RESEARCHER:
45 45
                 $query->matching(
46 46
                     $query->logicalAnd(
47
-                        array(
47
+                        array (
48 48
                             $query->equals('suggestion', true),
49 49
                             $query->equals('creator', $creatorUid)
50 50
                         )
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $query = $this->createQuery();
65 65
 
66
-        $constraints = array(
66
+        $constraints = array (
67 67
             $query->logicalNot($query->equals('object_identifier', '')),
68 68
             $query->logicalNot($query->equals('object_identifier', NULL)));
69 69
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $result = $query->execute();
83 83
 
84
-        $objectIdentifiers = array();
84
+        $objectIdentifiers = array ();
85 85
 
86 86
         foreach ($result as $document) {
87 87
             $objectIdentifiers[$document->getObjectIdentifier()] = $document->getObjectIdentifier();
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
         $query = $this->createQuery();
102 102
         $query->getQuerySettings()->setRespectStoragePage(FALSE);
103 103
 
104
-        $constraints = array();
105
-        $constraints[] =  $query->equals('process_number', '');
106
-        $constraints[] =  $query->equals('process_number', NULL);
104
+        $constraints = array ();
105
+        $constraints[] = $query->equals('process_number', '');
106
+        $constraints[] = $query->equals('process_number', NULL);
107 107
 
108 108
         if (count($constraints)) {
109 109
             $query->matching(
@@ -127,10 +127,10 @@  discard block
 block discarded – undo
127 127
     {
128 128
         $query = $this->createQuery();
129 129
 
130
-        $dateTimeObj= new \DateTime();
131
-        $dateTimeObj->sub(new \DateInterval("PT".$timeout."S"));
130
+        $dateTimeObj = new \DateTime();
131
+        $dateTimeObj->sub(new \DateInterval("PT" . $timeout . "S"));
132 132
 
133
-        $constraints = array();
133
+        $constraints = array ();
134 134
         $constraints[] = $query->lessThan('tstamp', $dateTimeObj->getTimestamp());
135 135
 
136 136
         $query->matching(
@@ -153,10 +153,10 @@  discard block
 block discarded – undo
153 153
     {
154 154
         $query = $this->createQuery();
155 155
 
156
-        $dateTimeObj= new \DateTime();
157
-        $dateTimeObj->sub(new \DateInterval("PT".$timeout."S"));
156
+        $dateTimeObj = new \DateTime();
157
+        $dateTimeObj->sub(new \DateInterval("PT" . $timeout . "S"));
158 158
 
159
-        $constraints = array();
159
+        $constraints = array ();
160 160
         $constraints[] = $query->lessThan('tstamp', $dateTimeObj->getTimestamp());
161 161
 
162 162
         $query->matching(
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $query = $this->createQuery();
180 180
 
181
-        $constraints = array(
181
+        $constraints = array (
182 182
             $query->equals('object_identifier', $objectIdentifier),
183 183
             $query->logicalNot($query->equals('temporary', TRUE)),
184 184
             $query->logicalNot($query->equals('suggestion', TRUE))
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     {
277 277
 
278 278
         $query = $this->createQuery();
279
-        $query->statement( "update tx_dpf_domain_model_document set creator = owner");
279
+        $query->statement("update tx_dpf_domain_model_document set creator = owner");
280 280
         $query->execute();
281 281
 
282 282
     }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
         $query = $this->createQuery();
294 294
         $query->matching(
295 295
             $query->logicalAnd(
296
-                array(
296
+                array (
297 297
                     $query->logicalNot(
298 298
                         $query->equals('embargo_date', 0)
299 299
                     )
Please login to merge, or discard this patch.
Classes/Services/Document/DocumentManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                 }
184 184
 
185 185
                 // check embargo
186
-                if(!$this->hasActiveEmbargo($document)){
186
+                if (!$this->hasActiveEmbargo($document)) {
187 187
                     $this->removeDocument($document);
188 188
                 } else {
189 189
                     $document->setState(DocumentWorkflow::LOCAL_STATE_IN_PROGRESS . ':' . $document->getRemoteState());
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
         if ($this->getDocumentTransferManager()->update($document)) {
332 332
 
333
-            if(!$this->hasActiveEmbargo($document)){
333
+            if (!$this->hasActiveEmbargo($document)) {
334 334
                 $this->removeDocument($document);
335 335
             } else {
336 336
                 $document->setState(DocumentWorkflow::LOCAL_STATE_IN_PROGRESS . ':' . $document->getRemoteState());
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
     protected function hasActiveEmbargo($document)
350 350
     {
351 351
         $currentDate = new \DateTime('now');
352
-        if($currentDate > $document->getEmbargoDate()){
352
+        if ($currentDate > $document->getEmbargoDate()) {
353 353
             // embargo is expired
354 354
             return false;
355 355
         } else {
Please login to merge, or discard this patch.