Passed
Pull Request — master (#211)
by
unknown
15:53
created
Configuration/TCA/tx_dpf_domain_model_metadataobject.php 1 patch
Spacing   +112 added lines, -112 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,75 +36,75 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'name, display_name, max_iteration, mandatory, validator, validation, validation_error_message, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/default.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, validator, validation, validation_error_message, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type',
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, validator, validation, validation_error_message, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type, --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, validator, validation, validation_error_message, mapping, mods_extension, json_mapping, input_field, deposit_license, max_input_length, input_option_list, fill_out_service, gnd_field_uid, default_value, access_restriction_roles, consent, embargo, fis_person_mapping, fis_organisation_mapping, gnd_person_mapping, gnd_organisation_mapping, ror_mapping, zdb_mapping, unpaywall_mapping, orcid_person_mapping, help_text, object_type, --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
                 'default' => 0,
63 63
             ),
64 64
         ),
65
-        'l10n_parent'       => array(
65
+        'l10n_parent'       => array (
66 66
             'displayCond' => 'FIELD:sys_language_uid:>:0',
67 67
             'exclude'     => 1,
68 68
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
69
-            'config'      => array(
69
+            'config'      => array (
70 70
                 'type'                => 'select',
71 71
                 'renderType'          => 'selectSingle',
72
-                'items'               => array(
73
-                    array('', 0),
72
+                'items'               => array (
73
+                    array ('', 0),
74 74
                 ),
75 75
                 'foreign_table'       => 'tx_dpf_domain_model_metadataobject',
76 76
                 'foreign_table_where' => 'AND tx_dpf_domain_model_metadataobject.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadataobject.sys_language_uid IN (-1,0)',
77 77
                 'default' => 0,
78 78
             ),
79 79
         ),
80
-        'l10n_diffsource'   => array(
81
-            'config' => array(
80
+        'l10n_diffsource'   => array (
81
+            'config' => array (
82 82
                 'type' => 'passthrough',
83 83
             ),
84 84
         ),
85 85
 
86
-        't3ver_label'       => array(
86
+        't3ver_label'       => array (
87 87
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
88
-            'config' => array(
88
+            'config' => array (
89 89
                 'type' => 'input',
90 90
                 'size' => 30,
91 91
                 'max'  => 255,
92 92
             ),
93 93
         ),
94 94
 
95
-        'hidden'            => array(
95
+        'hidden'            => array (
96 96
             'exclude'   => 1,
97 97
             'l10n_mode' => 'exclude',
98 98
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
99
-            'config'    => array(
99
+            'config'    => array (
100 100
                 'type' => 'check',
101 101
             ),
102 102
         ),
103
-        'starttime'         => array(
103
+        'starttime'         => array (
104 104
             'exclude'   => 1,
105 105
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
106
-            'config'    => array(
107
-                'behaviour' => array(
106
+            'config'    => array (
107
+                'behaviour' => array (
108 108
                     'allowLanguageSynchronization' => true
109 109
                 ),
110 110
                 'type'     => 'input',
@@ -113,16 +113,16 @@  discard block
 block discarded – undo
113 113
                 'eval'     => 'datetime',
114 114
                 'checkbox' => 0,
115 115
                 'default'  => 0,
116
-                'range'    => array(
116
+                'range'    => array (
117 117
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
118 118
                 ),
119 119
             ),
120 120
         ),
121
-        'endtime'           => array(
121
+        'endtime'           => array (
122 122
             'exclude'   => 1,
123 123
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
124
-            'config'    => array(
125
-                'behaviour' => array(
124
+            'config'    => array (
125
+                'behaviour' => array (
126 126
                     'allowLanguageSynchronization' => true
127 127
                 ),
128 128
                 'type'     => 'input',
@@ -131,185 +131,185 @@  discard block
 block discarded – undo
131 131
                 'eval'     => 'datetime',
132 132
                 'checkbox' => 0,
133 133
                 'default'  => 0,
134
-                'range'    => array(
134
+                'range'    => array (
135 135
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
136 136
                 ),
137 137
             ),
138 138
         ),
139 139
 
140
-        'name'              => array(
140
+        'name'              => array (
141 141
             'exclude'   => 1,
142 142
             'l10n_mode' => 'exclude',
143 143
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.name',
144
-            'config'    => array(
144
+            'config'    => array (
145 145
                 'type' => 'input',
146 146
                 'size' => 30,
147 147
                 'eval' => 'trim',
148 148
             ),
149 149
         ),
150
-        'display_name'      => array(
150
+        'display_name'      => array (
151 151
             'exclude' => 1,
152 152
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.display_name',
153
-            'config'  => array(
153
+            'config'  => array (
154 154
                 'type' => 'input',
155 155
                 'size' => 30,
156 156
                 'eval' => 'trim',
157 157
             ),
158 158
         ),
159
-        'max_iteration'     => array(
159
+        'max_iteration'     => array (
160 160
             'exclude'   => 1,
161 161
             'l10n_mode' => 'exclude',
162 162
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_iteration',
163
-            'config'    => array(
163
+            'config'    => array (
164 164
                 'type' => 'input',
165 165
                 'size' => 4,
166 166
                 'eval' => 'int',
167 167
             ),
168 168
         ),
169
-        'mandatory'         => array(
169
+        'mandatory'         => array (
170 170
             'exclude'   => 1,
171 171
             'l10n_mode' => 'exclude',
172 172
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory',
173
-            'config'    => array(
173
+            'config'    => array (
174 174
                 'type' => 'select',
175 175
                 'renderType' => 'selectSingle',
176 176
                 'size' => 1,
177 177
                 'maxitems' => 1,
178
-                'items' => array(
179
-                    array('',''),
180
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY),
181
-                    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),
178
+                'items' => array (
179
+                    array ('', ''),
180
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY),
181
+                    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),
182 182
                 ),
183 183
             ),
184 184
         ),
185
-        'mapping'           => array(
185
+        'mapping'           => array (
186 186
             'exclude'   => 1,
187 187
             'l10n_mode' => 'exclude',
188 188
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mapping',
189
-            'config'    => array(
189
+            'config'    => array (
190 190
                 'type' => 'input',
191 191
                 'size' => 30,
192 192
                 'eval' => 'trim',
193 193
             ),
194 194
         ),
195
-        'json_mapping'           => array(
195
+        'json_mapping'           => array (
196 196
             'exclude'   => 1,
197 197
             'l10n_mode' => 'exclude',
198 198
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.json_mapping',
199
-            'config'    => array(
199
+            'config'    => array (
200 200
                 'type' => 'input',
201 201
                 'size' => 30,
202 202
                 'eval' => 'trim',
203 203
             ),
204 204
         ),
205
-        'validator'         => array(
205
+        'validator'         => 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.validator',
209
-            'config'    => array(
209
+            'config'    => array (
210 210
                 'type'     => 'select',
211 211
                 'renderType' => 'selectSingle',
212
-                'items'    => array(
213
-                    array('', ''),
214
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator.regexp', \EWW\Dpf\Domain\Model\MetadataObject::VALIDATOR_REGEXP),
215
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator.date', \EWW\Dpf\Domain\Model\MetadataObject::VALIDATOR_DATE),
212
+                'items'    => array (
213
+                    array ('', ''),
214
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator.regexp', \EWW\Dpf\Domain\Model\MetadataObject::VALIDATOR_REGEXP),
215
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validator.date', \EWW\Dpf\Domain\Model\MetadataObject::VALIDATOR_DATE),
216 216
                 ),
217 217
                 'size'     => 1,
218 218
                 'maxitems' => 1,
219 219
                 'eval'     => '',
220 220
             ),
221 221
         ),
222
-        'validation'        => array(
222
+        'validation'        => array (
223 223
             'exclude'   => 1,
224 224
             'l10n_mode' => 'exclude',
225 225
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation',
226
-            'config'    => array(
226
+            'config'    => array (
227 227
                 'type' => 'input',
228 228
                 'size' => 30,
229 229
                 'eval' => 'trim',
230 230
             ),
231 231
         ),
232
-        'validation_error_message'        => array(
232
+        'validation_error_message'        => array (
233 233
             'exclude'   => 1,
234 234
             'l10n_mode' => 'exclude',
235 235
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.validation_error_message',
236
-            'config'    => array(
236
+            'config'    => array (
237 237
                 'type' => 'input',
238 238
                 'size' => 30,
239 239
                 'eval' => 'trim',
240 240
             ),
241 241
         ),
242
-        'mods_extension'    => array(
242
+        'mods_extension'    => array (
243 243
             'exclude'   => 1,
244 244
             'l10n_mode' => 'exclude',
245 245
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.mods_extension',
246
-            'config'    => array(
246
+            'config'    => array (
247 247
                 'type'    => 'check',
248 248
                 'default' => 0,
249 249
             ),
250 250
         ),
251
-        'access_restriction_roles' => array(
251
+        'access_restriction_roles' => array (
252 252
             'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.access_restriction_roles',
253
-            'config' => array(
253
+            'config' => array (
254 254
                 'type' => 'select',
255 255
                 'renderType' => 'selectMultipleSideBySide',
256 256
                 'size' => 2,
257 257
                 'maxitems' => 2,
258
-                'items' => array(
259
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER),
260
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN),
258
+                'items' => array (
259
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER),
260
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN),
261 261
                 ),
262 262
             ),
263 263
         ),
264
-        'consent'           => array(
264
+        'consent'           => array (
265 265
             'exclude'   => 1,
266 266
             'l10n_mode' => 'exclude',
267 267
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.consent',
268
-            'config'    => array(
268
+            'config'    => array (
269 269
                 'type'    => 'check',
270 270
                 'default' => 0,
271 271
             ),
272 272
         ),
273
-        'input_field'       => array(
273
+        'input_field'       => array (
274 274
             'onChange' => 'reload',
275 275
             'exclude'   => 1,
276 276
             'l10n_mode' => 'exclude',
277 277
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_field',
278
-            'config'    => array(
278
+            'config'    => array (
279 279
                 'onChange' => 'reload',
280 280
                 'type'     => 'select',
281 281
                 'renderType' => 'selectSingle',
282
-                'items'    => array(
283
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input),
284
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea),
285
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select),
286
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox),
287
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden),
288
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN),
289
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.markdownTextarea', \EWW\Dpf\Domain\Model\MetadataObject::textareaMarkdown),
290
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.fileUpload', \EWW\Dpf\Domain\Model\MetadataObject::FILE_UPLOAD)
282
+                'items'    => array (
283
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.input', \EWW\Dpf\Domain\Model\MetadataObject::input),
284
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.textarea', \EWW\Dpf\Domain\Model\MetadataObject::textarea),
285
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.select', \EWW\Dpf\Domain\Model\MetadataObject::select),
286
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.checkbox', \EWW\Dpf\Domain\Model\MetadataObject::checkbox),
287
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.hidden', \EWW\Dpf\Domain\Model\MetadataObject::hidden),
288
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.inputDropdown', \EWW\Dpf\Domain\Model\MetadataObject::INPUTDROPDOWN),
289
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.markdownTextarea', \EWW\Dpf\Domain\Model\MetadataObject::textareaMarkdown),
290
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_type.fileUpload', \EWW\Dpf\Domain\Model\MetadataObject::FILE_UPLOAD)
291 291
                 ),
292 292
                 'size'     => 1,
293 293
                 'maxitems' => 1,
294 294
                 'eval'     => '',
295 295
             ),
296 296
         ),
297
-        'deposit_license'       => array(
298
-            'displayCond' => array(
299
-                'OR' => array(
297
+        'deposit_license'       => array (
298
+            'displayCond' => array (
299
+                'OR' => array (
300 300
                     'FIELD:input_field:REQ:false',
301
-                    'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::checkbox,
301
+                    'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::checkbox,
302 302
                 ),
303 303
             ),
304 304
             'exclude'   => 1,
305 305
             'l10n_mode' => 'exclude',
306 306
             'label'     => 'Checkbox Value',
307
-            'config'    => array(
307
+            'config'    => array (
308 308
                 'type'     => 'select',
309 309
                 'renderType' => 'selectSingle',
310 310
                 'foreign_table' => 'tx_dpf_domain_model_depositlicense',
311
-                'items'    => array(
312
-                    array('', 0),
311
+                'items'    => array (
312
+                    array ('', 0),
313 313
                 ),
314 314
                 'size'     => 1,
315 315
                 'maxitems' => 1,
@@ -317,32 +317,32 @@  discard block
 block discarded – undo
317 317
                 'default'  => 0,
318 318
             ),
319 319
         ),
320
-        'max_input_length'       => array(
321
-            'displayCond' => array(
322
-                'OR' => array(
320
+        'max_input_length'       => array (
321
+            'displayCond' => array (
322
+                'OR' => array (
323 323
                     'FIELD:input_field:REQ:false',
324
-                    'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::input,
325
-                    'FIELD:input_field:=:'.\EWW\Dpf\Domain\Model\MetadataObject::textarea,
324
+                    'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::input,
325
+                    'FIELD:input_field:=:' . \EWW\Dpf\Domain\Model\MetadataObject::textarea,
326 326
                 ),
327 327
             ),
328 328
             'exclude'   => 1,
329 329
             'l10n_mode' => 'exclude',
330 330
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.max_input_length',
331
-            'config'    => array(
331
+            'config'    => array (
332 332
                 'type' => 'input',
333 333
                 'size' => 4,
334 334
                 'eval' => 'trim,number',
335 335
                 'default' => 0,
336 336
             ),
337 337
         ),
338
-        'input_option_list' => array(
338
+        'input_option_list' => array (
339 339
             'exclude' => 1,
340 340
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.input_option_list',
341
-            'config'  => array(
341
+            'config'  => array (
342 342
                 'type'                => 'select',
343 343
                 'renderType'          => 'selectSingle',
344
-                'items'               => array(
345
-                    array('', 0),
344
+                'items'               => array (
345
+                    array ('', 0),
346 346
                 ),
347 347
                 'foreign_table'       => 'tx_dpf_domain_model_inputoptionlist',
348 348
                 'foreign_table_where' => ' AND (tx_dpf_domain_model_inputoptionlist.pid=###CURRENT_PID###) AND (tx_dpf_domain_model_inputoptionlist.sys_language_uid = 0)',
@@ -351,27 +351,27 @@  discard block
 block discarded – undo
351 351
                 'default'             => 0,
352 352
             ),
353 353
         ),
354
-        'default_value'     => array(
354
+        'default_value'     => array (
355 355
             'exclude' => 1,
356 356
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.default_value',
357
-            'config'  => array(
357
+            'config'  => array (
358 358
                 'type' => 'text',
359 359
                 'cols' => 20,
360 360
                 'rows' => 3,
361 361
                 'eval' => 'trim',
362 362
             ),
363 363
         ),
364
-        'fill_out_service'  => array(
364
+        'fill_out_service'  => 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_metadataobject.fill_out_service',
368
-            'config'    => array(
368
+            'config'    => array (
369 369
                 'type'     => 'select',
370 370
                 'renderType' => 'selectSingle',
371
-                'items'    => array(
372
-                    array('', 0),
373
-                    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),
374
-                    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),
371
+                'items'    => array (
372
+                    array ('', 0),
373
+                    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),
374
+                    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),
375 375
                 ),
376 376
                 'size'     => 1,
377 377
                 'maxitems' => 1,
@@ -379,26 +379,26 @@  discard block
 block discarded – undo
379 379
             ),
380 380
             'onChange' => 'reload',
381 381
         ),
382
-        'gnd_field_uid' => array(
383
-            'displayCond' => 'FIELD:fill_out_service:=:'.\EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND,
382
+        'gnd_field_uid' => array (
383
+            'displayCond' => 'FIELD:fill_out_service:=:' . \EWW\Dpf\Domain\Model\MetadataObject::FILL_OUT_SERVICE_GND,
384 384
             'exclude'   => 0,
385 385
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.gnd_field_uid',
386
-            'config'  => array(
386
+            'config'  => array (
387 387
                 'type' => 'input',
388 388
                 'size' => 30,
389 389
                 'eval' => 'trim',
390 390
             ),
391 391
         ),
392
-        'metadatagroup'     => array(
393
-            'config' => array(
392
+        'metadatagroup'     => array (
393
+            'config' => array (
394 394
                 'type' => 'passthrough',
395 395
             ),
396 396
         ),
397
-        'embargo'    => array(
397
+        'embargo'    => array (
398 398
             'exclude'   => 1,
399 399
             'l10n_mode' => 'exclude',
400 400
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.embargo',
401
-            'config'    => array(
401
+            'config'    => array (
402 402
                 'type'    => 'check',
403 403
                 'default' => 0,
404 404
             ),
@@ -483,10 +483,10 @@  discard block
 block discarded – undo
483 483
                 ],
484 484
             ],
485 485
         ],
486
-        'help_text'                => array(
486
+        'help_text'                => array (
487 487
             'exclude' => 1,
488 488
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadataobject.help_text',
489
-            'config'  => array(
489
+            'config'  => array (
490 490
                 'type' => 'text',
491 491
                 'cols' => 40,
492 492
                 'rows' => 15,
Please login to merge, or discard this patch.
class.ext_update.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
             }
147 147
         }
148 148
 
149
-       // $GLOBALS['TYPO3_DB']->sql_query("ALTER TABLE tx_dpf_domain_model_documenttype CHANGE virtual zzz_deleted_virtual SMALLINT UNSIGNED DEFAULT 0 NOT NULL");
149
+        // $GLOBALS['TYPO3_DB']->sql_query("ALTER TABLE tx_dpf_domain_model_documenttype CHANGE virtual zzz_deleted_virtual SMALLINT UNSIGNED DEFAULT 0 NOT NULL");
150 150
 
151 151
     }
152 152
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function access() {
35 35
         $registry = GeneralUtility::makeInstance(Registry::class);
36
-        $version = $registry->get('tx_dpf','updatescript-'.self::NEW_VERSION);
36
+        $version = $registry->get('tx_dpf', 'updatescript-' . self::NEW_VERSION);
37 37
         // If the version has already been registered in the table sys_register the updatscript will be blocked.
38 38
         if ($version) {
39 39
             return FALSE;
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function main() {
46 46
         // This script registers itself into the sys_registry table to prevent a re-run with the same version number.
47 47
         $registry = GeneralUtility::makeInstance(Registry::class);
48
-        $newVersion = $registry->get('tx_dpf','updatescript-'.self::NEW_VERSION);
48
+        $newVersion = $registry->get('tx_dpf', 'updatescript-' . self::NEW_VERSION);
49 49
 
50 50
         if ($newVersion) {
51 51
             return FALSE;
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
                 // 3->4: (new UpdateVirtualType)->execute();
58 58
                 (new UpdateMetadataObjectValidator)->execute();
59 59
             } catch (\Throwable $throwable) {
60
-                return "Error while updating the extension: ".($throwable->getMessage());
60
+                return "Error while updating the extension: " . ($throwable->getMessage());
61 61
             }
62
-            $registry->set('tx_dpf','updatescript-'.self::NEW_VERSION, TRUE);
62
+            $registry->set('tx_dpf', 'updatescript-' . self::NEW_VERSION, TRUE);
63 63
             return "The extension has been successfully updated.";
64 64
         }
65 65
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             foreach ($repository->crossClientFindAll() as $record) {
124 124
                 if ($record['backend_only']) {
125 125
                     $recordObject = $repository->findByUid($record['uid']);
126
-                    $recordObject->setAccessRestrictionRoles(array(Security::ROLE_LIBRARIAN, Security::ROLE_RESEARCHER));
126
+                    $recordObject->setAccessRestrictionRoles(array (Security::ROLE_LIBRARIAN, Security::ROLE_RESEARCHER));
127 127
                     $repository->update($recordObject);
128 128
                 }
129 129
             }
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -66,16 +66,14 @@  discard block
 block discarded – undo
66 66
 }
67 67
 
68 68
 
69
-class UpdateState
70
-{
69
+class UpdateState {
71 70
     const OBJECT_STATE_NEW             = "NEW";
72 71
     const OBJECT_STATE_ACTIVE          = "ACTIVE";
73 72
     const OBJECT_STATE_INACTIVE        = "INACTIVE";
74 73
     const OBJECT_STATE_DELETED         = "DELETED";
75 74
     const OBJECT_STATE_LOCALLY_DELETED = "LOCALLY_DELETED";
76 75
 
77
-    public function execute()
78
-    {
76
+    public function execute() {
79 77
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
80 78
         $documentRepository = $objectManager->get(DocumentRepository::class);
81 79
 
@@ -110,8 +108,7 @@  discard block
 block discarded – undo
110 108
     }
111 109
 }
112 110
 
113
-class UpdateAccessRestrictions
114
-{
111
+class UpdateAccessRestrictions {
115 112
     public function execute() {
116 113
 
117 114
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
@@ -131,8 +128,7 @@  discard block
 block discarded – undo
131 128
     }
132 129
 }
133 130
 
134
-class UpdateVirtualType
135
-{
131
+class UpdateVirtualType {
136 132
     public function execute() {
137 133
 
138 134
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
@@ -151,8 +147,7 @@  discard block
 block discarded – undo
151 147
     }
152 148
 }
153 149
 
154
-class UpdateMetadataObjectValidator
155
-{
150
+class UpdateMetadataObjectValidator {
156 151
     public function execute() {
157 152
 
158 153
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
Please login to merge, or discard this patch.
Classes/Domain/Model/MetadataObject.php 1 patch
Braces   +42 added lines, -84 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
@@ -241,8 +240,7 @@  discard block
 block discarded – undo
241 240
      *
242 241
      * @return string $name
243 242
      */
244
-    public function getName()
245
-    {
243
+    public function getName() {
246 244
         return $this->name;
247 245
     }
248 246
 
@@ -252,8 +250,7 @@  discard block
 block discarded – undo
252 250
      * @param string $name
253 251
      * @return void
254 252
      */
255
-    public function setName($name)
256
-    {
253
+    public function setName($name) {
257 254
         $this->name = $name;
258 255
     }
259 256
 
@@ -262,8 +259,7 @@  discard block
 block discarded – undo
262 259
      *
263 260
      * @return string $displayName
264 261
      */
265
-    public function getDisplayName()
266
-    {
262
+    public function getDisplayName() {
267 263
         return $this->displayName;
268 264
     }
269 265
 
@@ -273,8 +269,7 @@  discard block
 block discarded – undo
273 269
      * @param string $displayName
274 270
      * @return void
275 271
      */
276
-    public function setDisplayName($displayName)
277
-    {
272
+    public function setDisplayName($displayName) {
278 273
         $this->displayName = $displayName;
279 274
     }
280 275
 
@@ -283,8 +278,7 @@  discard block
 block discarded – undo
283 278
      *
284 279
      * @return integer $maxIteration
285 280
      */
286
-    public function getMaxIteration()
287
-    {
281
+    public function getMaxIteration() {
288 282
         if ($this->isRepeatable()) {
289 283
             return $this->maxIteration;
290 284
         }
@@ -297,8 +291,7 @@  discard block
 block discarded – undo
297 291
      * @param integer $maxIteration
298 292
      * @return void
299 293
      */
300
-    public function setMaxIteration($maxIteration)
301
-    {
294
+    public function setMaxIteration($maxIteration) {
302 295
         if ($this->isRepeatable()) {
303 296
             $this->maxIteration = $maxIteration;
304 297
         } else {
@@ -311,8 +304,7 @@  discard block
 block discarded – undo
311 304
      *
312 305
      * @return string $mandatory
313 306
      */
314
-    public function getMandatory()
315
-    {
307
+    public function getMandatory() {
316 308
         return $this->mandatory;
317 309
     }
318 310
 
@@ -322,8 +314,7 @@  discard block
 block discarded – undo
322 314
      * @param string $mandatory
323 315
      * @return void
324 316
      */
325
-    public function setMandatory($mandatory)
326
-    {
317
+    public function setMandatory($mandatory) {
327 318
         $this->mandatory = $mandatory;
328 319
     }
329 320
 
@@ -332,8 +323,7 @@  discard block
 block discarded – undo
332 323
      *
333 324
      * @return boolean $modsExtension
334 325
      */
335
-    public function getModsExtension()
336
-    {
326
+    public function getModsExtension() {
337 327
         return $this->modsExtension;
338 328
     }
339 329
 
@@ -343,8 +333,7 @@  discard block
 block discarded – undo
343 333
      * @param boolean $modsExtension
344 334
      * @return void
345 335
      */
346
-    public function setModsExtension($modsExtension)
347
-    {
336
+    public function setModsExtension($modsExtension) {
348 337
         $this->modsExtension = boolval($modsExtension);
349 338
     }
350 339
 
@@ -353,8 +342,7 @@  discard block
 block discarded – undo
353 342
      *
354 343
      * @return boolean
355 344
      */
356
-    public function isModsExtension()
357
-    {
345
+    public function isModsExtension() {
358 346
         return $this->modsExtension;
359 347
     }
360 348
 
@@ -363,8 +351,7 @@  discard block
 block discarded – undo
363 351
      *
364 352
      * @return string $mapping
365 353
      */
366
-    public function getMapping()
367
-    {
354
+    public function getMapping() {
368 355
         return $this->mapping;
369 356
     }
370 357
 
@@ -374,8 +361,7 @@  discard block
 block discarded – undo
374 361
      * @param string $mapping
375 362
      * @return void
376 363
      */
377
-    public function setMapping($mapping)
378
-    {
364
+    public function setMapping($mapping) {
379 365
         $this->mapping = $mapping;
380 366
     }
381 367
 
@@ -384,8 +370,7 @@  discard block
 block discarded – undo
384 370
      *
385 371
      * @return string $relativeMapping
386 372
      */
387
-    public function getRelativeMapping()
388
-    {
373
+    public function getRelativeMapping() {
389 374
         return trim($this->mapping, " /");
390 375
     }
391 376
 
@@ -394,8 +379,7 @@  discard block
 block discarded – undo
394 379
      *
395 380
      * @return integer $inputField
396 381
      */
397
-    public function getInputField()
398
-    {
382
+    public function getInputField() {
399 383
         return $this->inputField;
400 384
     }
401 385
 
@@ -405,8 +389,7 @@  discard block
 block discarded – undo
405 389
      * @param integer $inputField
406 390
      * @return void
407 391
      */
408
-    public function setInputField($inputField)
409
-    {
392
+    public function setInputField($inputField) {
410 393
         $this->inputField = $inputField;
411 394
     }
412 395
 
@@ -415,8 +398,7 @@  discard block
 block discarded – undo
415 398
      *
416 399
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject
417 400
      */
418
-    public function getChildren()
419
-    {
401
+    public function getChildren() {
420 402
         return null;
421 403
     }
422 404
 
@@ -425,8 +407,7 @@  discard block
 block discarded – undo
425 407
      *
426 408
      * @return \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
427 409
      */
428
-    public function getInputOptionList()
429
-    {
410
+    public function getInputOptionList() {
430 411
         return $this->inputOptionList;
431 412
     }
432 413
 
@@ -436,8 +417,7 @@  discard block
 block discarded – undo
436 417
      * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
437 418
      * @return void
438 419
      */
439
-    public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList)
440
-    {
420
+    public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList) {
441 421
         $this->inputOptionList = $inputOptionList;
442 422
     }
443 423
 
@@ -446,8 +426,7 @@  discard block
 block discarded – undo
446 426
      *
447 427
      * @return string $fillOutService
448 428
      */
449
-    public function getFillOutService()
450
-    {
429
+    public function getFillOutService() {
451 430
         return $this->fillOutService;
452 431
     }
453 432
 
@@ -457,8 +436,7 @@  discard block
 block discarded – undo
457 436
      * @param string $fillOutService
458 437
      * @return void
459 438
      */
460
-    public function setFillOutService($fillOutService)
461
-    {
439
+    public function setFillOutService($fillOutService) {
462 440
         $this->fillOutService = $fillOutService;
463 441
     }
464 442
 
@@ -467,8 +445,7 @@  discard block
 block discarded – undo
467 445
      *
468 446
      * @return array $accessRestrictionRoles
469 447
      */
470
-    public function getAccessRestrictionRoles()
471
-    {
448
+    public function getAccessRestrictionRoles() {
472 449
         if ($this->accessRestrictionRoles) {
473 450
             return array_map('trim', explode(',', $this->accessRestrictionRoles));
474 451
         } else {
@@ -482,8 +459,7 @@  discard block
 block discarded – undo
482 459
      * @param array $accessRestrictionRoles
483 460
      * @return void
484 461
      */
485
-    public function setAccessRestrictionRoles($accessRestrictionRoles)
486
-    {
462
+    public function setAccessRestrictionRoles($accessRestrictionRoles) {
487 463
         $this->accessRestrictionRoles = implode(',', $accessRestrictionRoles);
488 464
     }
489 465
 
@@ -492,8 +468,7 @@  discard block
 block discarded – undo
492 468
      *
493 469
      * @return boolean $consent
494 470
      */
495
-    public function getConsent()
496
-    {
471
+    public function getConsent() {
497 472
         return $this->consent;
498 473
     }
499 474
 
@@ -503,8 +478,7 @@  discard block
 block discarded – undo
503 478
      * @param boolean $consent
504 479
      * @return void
505 480
      */
506
-    public function setConsent($consent)
507
-    {
481
+    public function setConsent($consent) {
508 482
         $this->consent = boolval($consent);
509 483
     }
510 484
 
@@ -513,8 +487,7 @@  discard block
 block discarded – undo
513 487
      *
514 488
      * @return string $defaultValue
515 489
      */
516
-    public function getDefaultValue()
517
-    {
490
+    public function getDefaultValue() {
518 491
         return $this->defaultValue;
519 492
     }
520 493
 
@@ -524,8 +497,7 @@  discard block
 block discarded – undo
524 497
      * @param string $defaultValue
525 498
      * @return void
526 499
      */
527
-    public function setDefaultValue($defaultValue)
528
-    {
500
+    public function setDefaultValue($defaultValue) {
529 501
         $this->defaultValue = $defaultValue;
530 502
     }
531 503
 
@@ -534,8 +506,7 @@  discard block
 block discarded – undo
534 506
      *
535 507
      * @return string $validation
536 508
      */
537
-    public function getValidation()
538
-    {
509
+    public function getValidation() {
539 510
         return $this->validation;
540 511
     }
541 512
 
@@ -545,8 +516,7 @@  discard block
 block discarded – undo
545 516
      * @param string $validation
546 517
      * @return void
547 518
      */
548
-    public function setValidation($validation)
549
-    {
519
+    public function setValidation($validation) {
550 520
         $this->validation = $validation;
551 521
     }
552 522
 
@@ -571,8 +541,7 @@  discard block
 block discarded – undo
571 541
      *
572 542
      * @return string $validator
573 543
      */
574
-    public function getValidator()
575
-    {
544
+    public function getValidator() {
576 545
         return $this->validator;
577 546
     }
578 547
 
@@ -582,32 +551,28 @@  discard block
 block discarded – undo
582 551
      * @param string $validator
583 552
      * @return void
584 553
      */
585
-    public function setValidator($validator)
586
-    {
554
+    public function setValidator($validator) {
587 555
         $this->validator = $validator;
588 556
     }
589 557
 
590 558
     /**
591 559
      * @return string
592 560
      */
593
-    public function getGndFieldUid()
594
-    {
561
+    public function getGndFieldUid() {
595 562
         return $this->gndFieldUid;
596 563
     }
597 564
 
598 565
     /**
599 566
      * @param string $gndFieldUid
600 567
      */
601
-    public function setGndFieldUid($gndFieldUid)
602
-    {
568
+    public function setGndFieldUid($gndFieldUid) {
603 569
         $this->gndFieldUid = $gndFieldUid;
604 570
     }
605 571
 
606 572
     /**
607 573
      * @return integer
608 574
      */
609
-    public function getMaxInputLength()
610
-    {
575
+    public function getMaxInputLength() {
611 576
         if ($this->maxInputLength == 0) {
612 577
             if ($this->inputField == self::input) {
613 578
                 return 255;
@@ -622,8 +587,7 @@  discard block
 block discarded – undo
622 587
     /**
623 588
      * @return integer
624 589
      */
625
-    public function setMaxInputLength($maxInputLength)
626
-    {
590
+    public function setMaxInputLength($maxInputLength) {
627 591
         $this->maxInputLength = $maxInputLength;
628 592
     }
629 593
 
@@ -638,8 +602,7 @@  discard block
 block discarded – undo
638 602
     /**
639 603
      * @param bool $embargo
640 604
      */
641
-    public function setEmbargo(bool $embargo)
642
-    {
605
+    public function setEmbargo(bool $embargo) {
643 606
         $this->embargo = boolval($embargo);
644 607
     }
645 608
 
@@ -686,8 +649,7 @@  discard block
 block discarded – undo
686 649
     /**
687 650
      * @param string $rorMapping
688 651
      */
689
-    public function setRorMapping(string $rorMapping)
690
-    {
652
+    public function setRorMapping(string $rorMapping) {
691 653
         $this->rorMapping = $rorMapping;
692 654
     }
693 655
 
@@ -841,32 +803,28 @@  discard block
 block discarded – undo
841 803
     /**
842 804
      * @return bool
843 805
      */
844
-    public function isUploadField()
845
-    {
806
+    public function isUploadField() {
846 807
         return $this->getInputField() == self::FILE_UPLOAD;
847 808
     }
848 809
 
849 810
     /**
850 811
      * @return bool
851 812
      */
852
-    public function isFileLabelField()
853
-    {
813
+    public function isFileLabelField() {
854 814
         return $this->getObjectType() == 'fileLabel';
855 815
     }
856 816
 
857 817
     /**
858 818
      * @return bool
859 819
      */
860
-    public function isFileDownloadField()
861
-    {
820
+    public function isFileDownloadField() {
862 821
         return $this->getObjectType() == 'fileDownload';
863 822
     }
864 823
 
865 824
     /**
866 825
      * @return bool
867 826
      */
868
-    public function isFileArchiveField()
869
-    {
827
+    public function isFileArchiveField() {
870 828
         return $this->getObjectType() == 'fileArchive';
871 829
     }
872 830
 
Please login to merge, or discard this patch.
Classes/Domain/Model/DocumentFormField.php 1 patch
Braces   +20 added lines, -40 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 DocumentFormField extends AbstractFormElement
18
-{
17
+class DocumentFormField extends AbstractFormElement {
19 18
     protected $file;
20 19
 
21 20
     protected $value;
@@ -75,13 +74,11 @@  discard block
 block discarded – undo
75 74
      */
76 75
     protected $objectType = '';
77 76
 
78
-    public function getValue()
79
-    {
77
+    public function getValue() {
80 78
         return $this->value;
81 79
     }
82 80
 
83
-    public function setValue($value, $defaultValue = '')
84
-    {
81
+    public function setValue($value, $defaultValue = '') {
85 82
 
86 83
         $this->hasDefaultValue = !empty($defaultValue);
87 84
 
@@ -112,13 +109,11 @@  discard block
 block discarded – undo
112 109
         }
113 110
     }
114 111
 
115
-    public function getInputField()
116
-    {
112
+    public function getInputField() {
117 113
         return $this->inputField;
118 114
     }
119 115
 
120
-    public function setInputField($inputField)
121
-    {
116
+    public function setInputField($inputField) {
122 117
         $this->inputField = $inputField;
123 118
     }
124 119
 
@@ -126,8 +121,7 @@  discard block
 block discarded – undo
126 121
      *
127 122
      * @return array
128 123
      */
129
-    public function getInputOptions()
130
-    {
124
+    public function getInputOptions() {
131 125
         return $this->inputOptions;
132 126
     }
133 127
 
@@ -135,8 +129,7 @@  discard block
 block discarded – undo
135 129
      *
136 130
      * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
137 131
      */
138
-    public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null)
139
-    {
132
+    public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) {
140 133
 
141 134
         $this->inputOptions = array();
142 135
 
@@ -156,8 +149,7 @@  discard block
 block discarded – undo
156 149
      *
157 150
      * @return string $fillOutService
158 151
      */
159
-    public function getFillOutService()
160
-    {
152
+    public function getFillOutService() {
161 153
         return $this->fillOutService;
162 154
     }
163 155
 
@@ -167,8 +159,7 @@  discard block
 block discarded – undo
167 159
      * @param string $fillOutService
168 160
      * @return void
169 161
      */
170
-    public function setFillOutService($fillOutService)
171
-    {
162
+    public function setFillOutService($fillOutService) {
172 163
         $this->fillOutService = $fillOutService;
173 164
     }
174 165
 
@@ -177,8 +168,7 @@  discard block
 block discarded – undo
177 168
      *
178 169
      * @return boolean $consent
179 170
      */
180
-    public function getConsent()
181
-    {
171
+    public function getConsent() {
182 172
         return $this->consent;
183 173
     }
184 174
 
@@ -188,23 +178,19 @@  discard block
 block discarded – undo
188 178
      * @param boolean $consent
189 179
      * @return void
190 180
      */
191
-    public function setConsent($consent)
192
-    {
181
+    public function setConsent($consent) {
193 182
         $this->consent = boolval($consent);
194 183
     }
195 184
 
196
-    public function getHasDefaultValue()
197
-    {
185
+    public function getHasDefaultValue() {
198 186
         return $this->hasDefaultValue;
199 187
     }
200 188
 
201
-    public function getValidation()
202
-    {
189
+    public function getValidation() {
203 190
         return $this->validation;
204 191
     }
205 192
 
206
-    public function setValidation($validation)
207
-    {
193
+    public function setValidation($validation) {
208 194
         $this->validation = $validation;
209 195
     }
210 196
 
@@ -213,8 +199,7 @@  discard block
 block discarded – undo
213 199
      *
214 200
      * @return string
215 201
      */
216
-    public function getValidator()
217
-    {
202
+    public function getValidator() {
218 203
         return $this->validator;
219 204
     }
220 205
 
@@ -224,8 +209,7 @@  discard block
 block discarded – undo
224 209
      * @param string $validator
225 210
      * @return void
226 211
      */
227
-    public function setValidator($validator)
228
-    {
212
+    public function setValidator($validator) {
229 213
         $this->validator = $validator;
230 214
     }
231 215
 
@@ -287,8 +271,7 @@  discard block
 block discarded – undo
287 271
     /**
288 272
      * @return mixed
289 273
      */
290
-    public function getDepositLicense()
291
-    {
274
+    public function getDepositLicense() {
292 275
         return $this->depositLicense;
293 276
     }
294 277
 
@@ -316,8 +299,7 @@  discard block
 block discarded – undo
316 299
         $this->helpText = $helpText;
317 300
     }
318 301
 
319
-    public function getHelpTextLong()
320
-    {
302
+    public function getHelpTextLong() {
321 303
         if ($this->helpText) {
322 304
             $domDocument = new \DOMDocument();
323 305
             $domDocument->loadXML("<html>".$this->helpText."</html>");
@@ -330,8 +312,7 @@  discard block
 block discarded – undo
330 312
         }
331 313
     }
332 314
 
333
-    public function getHelpTextShort()
334
-    {
315
+    public function getHelpTextShort() {
335 316
         if ($this->helpText) {
336 317
             $domDocument = new \DOMDocument();
337 318
             $domDocument->loadXML("<html>" . $this->helpText . "</html>");
@@ -346,8 +327,7 @@  discard block
 block discarded – undo
346 327
     /**
347 328
      * @return mixed
348 329
      */
349
-    public function getFile()
350
-    {
330
+    public function getFile() {
351 331
         return $this->file;
352 332
     }
353 333
 
Please login to merge, or discard this patch.