Passed
Pull Request — master (#175)
by
unknown
08:32
created
ext_localconf.php 2 patches
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.
Upper-Lower-Casing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 );
36 36
 
37 37
 
38
-if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) {
38
+if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == FALSE) {
39 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';
@@ -120,15 +120,15 @@  discard block
 block discarded – undo
120 120
 );
121 121
 
122 122
 
123
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/MetaTags/MetaTags.php', '_metatags', 'list_type', true);
123
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/MetaTags/MetaTags.php', '_metatags', 'list_type', TRUE);
124 124
 $overrideSetup = 'plugin.tx_dpf_metatags.userFunc = EWW\Dpf\Plugins\MetaTags\MetaTags->main';
125 125
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
126 126
 
127
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/DownloadTool/DownloadTool.php', '_downloadtool', 'list_type', true);
127
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/DownloadTool/DownloadTool.php', '_downloadtool', 'list_type', TRUE);
128 128
 $overrideSetup = 'plugin.tx_dpf_downloadtool.userFunc = EWW\Dpf\Plugins\DownloadTool\DownloadTool->main';
129 129
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
130 130
 
131
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/RelatedListTool/RelatedListTool.php', '_relatedlisttool', 'list_type', true);
131
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/RelatedListTool/RelatedListTool.php', '_relatedlisttool', 'list_type', TRUE);
132 132
 $overrideSetup = 'plugin.tx_dpf_relatedlisttool.userFunc = EWW\Dpf\Plugins\RelatedListTool\RelatedListTool->main';
133 133
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
134 134
 
@@ -142,28 +142,28 @@  discard block
 block discarded – undo
142 142
     'actionChange',
143 143
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
144 144
     'cleanUpDocuments',
145
-    false
145
+    FALSE
146 146
 );
147 147
 $signalSlotDispatcher->connect(
148 148
     \EWW\Dpf\Controller\SearchController::class,
149 149
     'actionChange',
150 150
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
151 151
     'cleanUpDocuments',
152
-    false
152
+    FALSE
153 153
 );
154 154
 $signalSlotDispatcher->connect(
155 155
     \EWW\Dpf\Controller\DocumentFormBackofficeController::class,
156 156
     'actionChange',
157 157
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
158 158
     'cleanUpDocuments',
159
-    false
159
+    FALSE
160 160
 );
161 161
 $signalSlotDispatcher->connect(
162 162
     \EWW\Dpf\Controller\WorkspaceController::class,
163 163
     'actionChange',
164 164
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
165 165
     'cleanUpDocuments',
166
-    false
166
+    FALSE
167 167
 );
168 168
 
169 169
 // ElasticSearch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     'indexDocument',
173 173
     \EWW\Dpf\Services\ElasticSearch\ElasticSearch::class,
174 174
     'index',
175
-    false
175
+    FALSE
176 176
 );
177 177
 
178 178
 $signalSlotDispatcher->connect(
@@ -180,5 +180,5 @@  discard block
 block discarded – undo
180 180
     'deleteDocumentFromIndex',
181 181
     \EWW\Dpf\Services\ElasticSearch\ElasticSearch::class,
182 182
     'delete',
183
-    false
183
+    FALSE
184 184
 );
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 2 patches
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.
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 use \TYPO3\CMS\Core\Log\LogManager;
19 19
 use \TYPO3\CMS\Core\Utility\GeneralUtility;
20 20
 
21
-class Notifier
22
-{
21
+class Notifier {
23 22
 
24 23
     /**
25 24
      * clientRepository
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
     protected $documentTypeRepository = null;
40 39
 
41 40
 
42
-    public function sendNewDocumentNotification(\EWW\Dpf\Domain\Model\Document $document)
43
-    {
41
+    public function sendNewDocumentNotification(\EWW\Dpf\Domain\Model\Document $document) {
44 42
 
45 43
         try {
46 44
             $client = $this->clientRepository->findAll()->current();
@@ -117,8 +115,7 @@  discard block
 block discarded – undo
117 115
 
118 116
     }
119 117
 
120
-    public function sendIngestNotification(\EWW\Dpf\Domain\Model\Document $document)
121
-    {
118
+    public function sendIngestNotification(\EWW\Dpf\Domain\Model\Document $document) {
122 119
 
123 120
         try {
124 121
             $client = $this->clientRepository->findAll()->current();
@@ -230,8 +227,7 @@  discard block
 block discarded – undo
230 227
         }
231 228
     }
232 229
 
233
-    public function sendRegisterNotification(\EWW\Dpf\Domain\Model\Document $document)
234
-    {
230
+    public function sendRegisterNotification(\EWW\Dpf\Domain\Model\Document $document) {
235 231
 
236 232
         try {
237 233
             $client = $this->clientRepository->findAll()->current();
@@ -290,8 +286,7 @@  discard block
 block discarded – undo
290 286
 
291 287
     }
292 288
 
293
-    protected function replaceMarkers($message, $args)
294
-    {
289
+    protected function replaceMarkers($message, $args) {
295 290
         if (is_array($args)) {
296 291
             foreach ($args as $key => $value) {
297 292
                 $message = str_replace($key, $value, $message);
@@ -301,8 +296,7 @@  discard block
 block discarded – undo
301 296
     }
302 297
 
303 298
 
304
-    protected function sendMail($reveiver, $subject, $body, $args, $mailType)
305
-    {
299
+    protected function sendMail($reveiver, $subject, $body, $args, $mailType) {
306 300
         $emailReceiver = array();
307 301
         $emailReceiver[$reveiver] = $reveiver;
308 302
         $message = (new \TYPO3\CMS\Core\Mail\MailMessage())
Please login to merge, or discard this patch.
Classes/Services/Transfer/FedoraRepository.php 2 patches
Braces   +10 added lines, -20 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
22 22
 use \EWW\Dpf\Services\Logger\TransferLogger;
23 23
 use \Httpful\Request;
24 24
 
25
-class FedoraRepository implements Repository
26
-{
25
+class FedoraRepository implements Repository {
27 26
 
28 27
     /**
29 28
      * documentTransferLogRepository
@@ -64,8 +63,7 @@  discard block
 block discarded – undo
64 63
      * @return string
65 64
      * @throws \Exception
66 65
      */
67
-    public function ingest($document, $metsXml)
68
-    {
66
+    public function ingest($document, $metsXml) {
69 67
         try {
70 68
 
71 69
             $response = Request::post($this->clientConfigurationManager->getSwordHost() . "/sword/" . $this->getSWORDCollection())
@@ -84,8 +82,7 @@  discard block
 block discarded – undo
84 82
                 TransferLogger::Log('INGEST', $document->getUid(), null, $response);
85 83
                 throw new \EWW\Dpf\Exceptions\IngestDocumentErrorException("Fedora error while ingest document.");
86 84
             }
87
-        }
88
-        catch (\Exception $exception) {
85
+        } catch (\Exception $exception) {
89 86
             TransferLogger::Log('INGEST', $document->getUid(), null, $exception->getMessage());
90 87
 
91 88
             if ($exception instanceof \Httpful\Exception\ConnectionErrorException) {
@@ -107,8 +104,7 @@  discard block
 block discarded – undo
107 104
      * @return string
108 105
      * @throws \Exception
109 106
      */
110
-    public function update($document, $metsXml)
111
-    {
107
+    public function update($document, $metsXml) {
112 108
 
113 109
         $remoteId = $document->getObjectIdentifier();
114 110
 
@@ -149,8 +145,7 @@  discard block
 block discarded – undo
149 145
      * @return string
150 146
      * @throws \Exception
151 147
      */
152
-    public function retrieve($remoteId)
153
-    {
148
+    public function retrieve($remoteId) {
154 149
 
155 150
         try {
156 151
             $response = Request::get($this->clientConfigurationManager->getFedoraHost() . "/fedora/objects/" . $remoteId . "/methods/qucosa:SDef/getMETSDissemination")
@@ -186,8 +181,7 @@  discard block
 block discarded – undo
186 181
      * @return string
187 182
      * @throws \Exception
188 183
      */
189
-    public function getNextDocumentId()
190
-    {
184
+    public function getNextDocumentId() {
191 185
         try {
192 186
             $response = Request::get($this->clientConfigurationManager->getFedoraHost() . "/fedora/management/getNextPID?numPIDs=1&namespace=qucosa&xml=true")
193 187
                 ->authenticateWith($this->clientConfigurationManager->getFedoraUser(), $this->clientConfigurationManager->getFedoraPassword())
@@ -224,8 +218,7 @@  discard block
 block discarded – undo
224 218
      * @return boolean
225 219
      * @throws \Exception
226 220
      */
227
-    public function delete($document, $state)
228
-    {
221
+    public function delete($document, $state) {
229 222
 
230 223
         $remoteId = $document->getObjectIdentifier();
231 224
 
@@ -274,8 +267,7 @@  discard block
 block discarded – undo
274 267
      * @param  \Httpful\Response $response
275 268
      * @return string
276 269
      */
277
-    protected function getRemoteDocumentId($response)
278
-    {
270
+    protected function getRemoteDocumentId($response) {
279 271
 
280 272
         // Get repository ID and write into document
281 273
         $responseDom = new \DOMDocument();
@@ -292,8 +284,7 @@  discard block
 block discarded – undo
292 284
         return null;
293 285
     }
294 286
 
295
-    protected function getOwnerId($pid = NULL)
296
-    {
287
+    protected function getOwnerId($pid = NULL) {
297 288
         if ($pid) {
298 289
             $this->clientConfigurationManager->setConfigurationPid($pid);
299 290
         }
@@ -306,8 +297,7 @@  discard block
 block discarded – undo
306 297
         return $ownerId;
307 298
     }
308 299
 
309
-    protected function getSWORDCollection()
310
-    {
300
+    protected function getSWORDCollection() {
311 301
         return $this->clientConfigurationManager->getSwordCollectionNamespace();
312 302
     }
313 303
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
             if (!$response->hasErrors() && $response->code == 201) {
82 82
                 return $this->getRemoteDocumentId($response);
83 83
             } else {
84
-                TransferLogger::Log('INGEST', $document->getUid(), null, $response);
84
+                TransferLogger::Log('INGEST', $document->getUid(), NULL, $response);
85 85
                 throw new \EWW\Dpf\Exceptions\IngestDocumentErrorException("Fedora error while ingest document.");
86 86
             }
87 87
         }
88 88
         catch (\Exception $exception) {
89
-            TransferLogger::Log('INGEST', $document->getUid(), null, $exception->getMessage());
89
+            TransferLogger::Log('INGEST', $document->getUid(), NULL, $exception->getMessage());
90 90
 
91 91
             if ($exception instanceof \Httpful\Exception\ConnectionErrorException) {
92 92
                 $message = $exception->getMessage();
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             }
97 97
         }
98 98
 
99
-        return null;
99
+        return NULL;
100 100
     }
101 101
 
102 102
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                 throw new \EWW\Dpf\Exceptions\UpdateDocumentErrorException("Fedora error while update document.");
130 130
             }
131 131
         } catch (\Exception $exception) {
132
-            TransferLogger::Log('UPDATE', $document->getUid(), null, $exception->getMessage());
132
+            TransferLogger::Log('UPDATE', $document->getUid(), NULL, $exception->getMessage());
133 133
 
134 134
             if ($exception instanceof \Httpful\Exception\ConnectionErrorException) {
135 135
                 $message = $exception->getMessage();
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             }
140 140
         }
141 141
 
142
-        return null;
142
+        return NULL;
143 143
     }
144 144
 
145 145
     /**
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
             if (!$response->hasErrors() && $response->code == 200) {
163 163
                 return $response->__toString();
164 164
             } else {
165
-                TransferLogger::Log('RETRIEVE', null, $remoteId, $response);
165
+                TransferLogger::Log('RETRIEVE', NULL, $remoteId, $response);
166 166
                 throw new \EWW\Dpf\Exceptions\RetrieveDocumentErrorException("Fedora has returned an error.");
167 167
             }
168 168
         } catch (\Exception $exception) {
169
-            TransferLogger::Log('RETRIEVE', null, $remoteId, $exception->getMessage());
169
+            TransferLogger::Log('RETRIEVE', NULL, $remoteId, $exception->getMessage());
170 170
 
171 171
             if ($exception instanceof \Httpful\Exception\ConnectionErrorException) {
172 172
                 $message = $exception->getMessage();
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             }
177 177
         }
178 178
 
179
-        return null;
179
+        return NULL;
180 180
     }
181 181
 
182 182
     /**
@@ -199,11 +199,11 @@  discard block
 block discarded – undo
199 199
             if (!$response->hasErrors() && $response->code == 200) {
200 200
                 return $response->__toString();
201 201
             } else {
202
-                TransferLogger::Log('GET_NEXT_DOCUMENT_ID', null, null, $response);
202
+                TransferLogger::Log('GET_NEXT_DOCUMENT_ID', NULL, NULL, $response);
203 203
                 throw new \EWW\Dpf\Exceptions\NextDocumentIdErrorException("Fedora error while getting a document id.");
204 204
             }
205 205
         } catch (\Exception $exception) {
206
-            TransferLogger::Log('GET_NEXT_DOCUMENT_ID', null, null, $exception->getMessage());
206
+            TransferLogger::Log('GET_NEXT_DOCUMENT_ID', NULL, NULL, $exception->getMessage());
207 207
 
208 208
             if ($exception instanceof \Httpful\Exception\ConnectionErrorException) {
209 209
                 $message = $exception->getMessage();
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             }
214 214
         }
215 215
 
216
-        return null;
216
+        return NULL;
217 217
     }
218 218
 
219 219
     /**
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
             // if transfer successful
241 241
             if (!$response->hasErrors() && $response->code == 204) {
242
-                return true;
242
+                return TRUE;
243 243
             } else {
244 244
                 TransferLogger::Log('DELETE', $document->getUid(), $remoteId, $response);
245 245
                 switch ($state) {
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
                 }
256 256
             }
257 257
         } catch (\Exception $exception) {
258
-            TransferLogger::Log('DELETE', $document->getUid(), null, $exception->getMessage());
258
+            TransferLogger::Log('DELETE', $document->getUid(), NULL, $exception->getMessage());
259 259
 
260 260
             if ($exception instanceof \Httpful\Exception\ConnectionErrorException) {
261 261
                 $message = $exception->getMessage();
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
             }
266 266
         }
267 267
 
268
-        return false;
268
+        return FALSE;
269 269
     }
270 270
 
271 271
     /**
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
             return $objectIdentifier;
290 290
         }
291 291
 
292
-        return null;
292
+        return NULL;
293 293
     }
294 294
 
295 295
     protected function getOwnerId($pid = NULL)
Please login to merge, or discard this patch.
Classes/Services/Document/DocumentManager.php 3 patches
Upper-Lower-Casing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      * @var \TYPO3\CMS\Extbase\Object\ObjectManager
18 18
      * @inject
19 19
      */
20
-    protected $objectManager = null;
20
+    protected $objectManager = NULL;
21 21
 
22 22
     /**
23 23
      * documentRepository
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @var \EWW\Dpf\Domain\Repository\DocumentRepository
26 26
      * @inject
27 27
      */
28
-    protected $documentRepository = null;
28
+    protected $documentRepository = NULL;
29 29
 
30 30
     /**
31 31
      * fileRepository
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @var \EWW\Dpf\Domain\Repository\FileRepository
34 34
      * @inject
35 35
      */
36
-    protected $fileRepository = null;
36
+    protected $fileRepository = NULL;
37 37
 
38 38
     /**
39 39
      * bookmarkRepository
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @var \EWW\Dpf\Domain\Repository\BookmarkRepository
42 42
      * @inject
43 43
      */
44
-    protected $bookmarkRepository = null;
44
+    protected $bookmarkRepository = NULL;
45 45
 
46 46
     /**
47 47
      * persistence manager
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
58 58
      * @inject
59 59
      */
60
-    protected $signalSlotDispatcher = null;
60
+    protected $signalSlotDispatcher = NULL;
61 61
 
62 62
     /**
63 63
      * security
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * @var \EWW\Dpf\Security\Security
66 66
      * @inject
67 67
      */
68
-    protected $security = null;
68
+    protected $security = NULL;
69 69
 
70 70
     /**
71 71
      * Returns a document specified by repository object identifier or dataset uid.
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     public function read($identifier)
79 79
     {
80 80
         if (!$identifier) {
81
-            return null;
81
+            return NULL;
82 82
         }
83 83
 
84 84
         $document = $this->documentRepository->findByIdentifier($identifier);
@@ -99,14 +99,14 @@  discard block
 block discarded – undo
99 99
             );
100 100
 
101 101
         } catch (\EWW\Dpf\Exceptions\RetrieveDocumentErrorException $exception) {
102
-            return null;
102
+            return NULL;
103 103
         }
104 104
 
105 105
         if ($document instanceof Document) {
106 106
             return $document;
107 107
         }
108 108
 
109
-        return null;
109
+        return NULL;
110 110
     }
111 111
 
112 112
     /**
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
122 122
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException
123 123
      */
124
-    public function update(Document $document, $workflowTransition = null, $deletedFiles = [], $newFiles = [])
124
+    public function update(Document $document, $workflowTransition = NULL, $deletedFiles = [], $newFiles = [])
125 125
     {
126 126
         // xml data fields are limited to 64 KB
127 127
         if (strlen($document->getXmlData()) >= 64 * 1024 || strlen($document->getSlubInfoData() >= 64 * 1024)) {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         if ($workflowTransition) {
135 135
             if (!$workflow->can($document, $workflowTransition)) {
136
-                return false;
136
+                return FALSE;
137 137
             }
138 138
             $workflow->apply($document, $workflowTransition);
139 139
         }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         if ($document->isSuggestion()) {
142 142
 
143 143
             // if local suggestion copy
144
-            $updateResult = false;
144
+            $updateResult = FALSE;
145 145
 
146 146
         } elseif ($document->isTemporaryCopy()) {
147 147
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 }
191 191
                 $updateResult = $document->getDocumentIdentifier();
192 192
             } else {
193
-                $updateResult = false;
193
+                $updateResult = FALSE;
194 194
             }
195 195
         } else {
196 196
 
@@ -292,13 +292,13 @@  discard block
 block discarded – undo
292 292
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
293 293
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException
294 294
      */
295
-    protected function updateRemotely($document, $workflowTransition = null, $deletedFiles = [], $newFiles = [])
295
+    protected function updateRemotely($document, $workflowTransition = NULL, $deletedFiles = [], $newFiles = [])
296 296
     {
297 297
         $lastModDate = $this->getDocumentTransferManager()->getLastModDate($document->getObjectIdentifier());
298 298
         $docLastModDate = $document->getRemoteLastModDate();
299 299
         if ($lastModDate !== $docLastModDate && !empty($docLastModDate)) {
300 300
             // There is a newer version in the fedora repository.
301
-            return false;
301
+            return FALSE;
302 302
         }
303 303
 
304 304
         $this->updateFiles($document, $deletedFiles, $newFiles);
@@ -318,13 +318,13 @@  discard block
 block discarded – undo
318 318
                 break;
319 319
 
320 320
             default:
321
-                $transferState = null;
321
+                $transferState = NULL;
322 322
                 break;
323 323
         }
324 324
 
325 325
         if ($transferState) {
326 326
             if (!$this->getDocumentTransferManager()->delete($document, $transferState)) {
327
-                return false;
327
+                return FALSE;
328 328
             }
329 329
         }
330 330
 
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
             return $document->getDocumentIdentifier();
339 339
         }
340 340
 
341
-        return false;
341
+        return FALSE;
342 342
     }
343 343
 
344 344
     /**
@@ -351,9 +351,9 @@  discard block
 block discarded – undo
351 351
         $currentDate = new \DateTime('now');
352 352
         if($currentDate > $document->getEmbargoDate()){
353 353
             // embargo is expired
354
-            return false;
354
+            return FALSE;
355 355
         } else {
356
-            return true;
356
+            return TRUE;
357 357
         }
358 358
 
359 359
     }
Please login to merge, or discard this 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.
Braces   +11 added lines, -19 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@  discard block
 block discarded – undo
9 9
 use EWW\Dpf\Domain\Workflow\DocumentWorkflow;
10 10
 use EWW\Dpf\Controller\AbstractController;
11 11
 
12
-class DocumentManager
13
-{
12
+class DocumentManager {
14 13
     /**
15 14
      * objectManager
16 15
      *
@@ -75,8 +74,7 @@  discard block
 block discarded – undo
75 74
      * @return Document|null
76 75
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
77 76
      */
78
-    public function read($identifier)
79
-    {
77
+    public function read($identifier) {
80 78
         if (!$identifier) {
81 79
             return null;
82 80
         }
@@ -121,8 +119,7 @@  discard block
 block discarded – undo
121 119
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
122 120
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException
123 121
      */
124
-    public function update(Document $document, $workflowTransition = null, $deletedFiles = [], $newFiles = [])
125
-    {
122
+    public function update(Document $document, $workflowTransition = null, $deletedFiles = [], $newFiles = []) {
126 123
         // xml data fields are limited to 64 KB
127 124
         if (strlen($document->getXmlData()) >= 64 * 1024 || strlen($document->getSlubInfoData() >= 64 * 1024)) {
128 125
             throw new \EWW\Dpf\Exceptions\DocumentMaxSizeErrorException("Maximum document size exceeded.");
@@ -183,7 +180,7 @@  discard block
 block discarded – undo
183 180
                 }
184 181
 
185 182
                 // check embargo
186
-                if(!$this->hasActiveEmbargo($document)){
183
+                if(!$this->hasActiveEmbargo($document)) {
187 184
                     $this->removeDocument($document);
188 185
                 } else {
189 186
                     $document->setState(DocumentWorkflow::LOCAL_STATE_IN_PROGRESS . ':' . $document->getRemoteState());
@@ -221,8 +218,7 @@  discard block
 block discarded – undo
221 218
     /**
222 219
      * @return DocumentTransferManager
223 220
      */
224
-    protected function getDocumentTransferManager()
225
-    {
221
+    protected function getDocumentTransferManager() {
226 222
         /** @var DocumentTransferManager $documentTransferManager */
227 223
         $documentTransferManager = $this->objectManager->get(DocumentTransferManager::class);
228 224
 
@@ -244,8 +240,7 @@  discard block
 block discarded – undo
244 240
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
245 241
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException
246 242
      */
247
-    protected function updateFiles(Document $document, $deletedFiles, $newFiles)
248
-    {
243
+    protected function updateFiles(Document $document, $deletedFiles, $newFiles) {
249 244
         // Delete files
250 245
         /** @var File $deleteFile */
251 246
         foreach ($deletedFiles as $deleteFile) {
@@ -272,8 +267,7 @@  discard block
 block discarded – undo
272 267
      * @param $document
273 268
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
274 269
      */
275
-    protected function removeDocument($document)
276
-    {
270
+    protected function removeDocument($document) {
277 271
         $files = $this->fileRepository->findByDocument($document->getUid());
278 272
         foreach ($files as $file) {
279 273
             $this->fileRepository->remove($file);
@@ -292,8 +286,7 @@  discard block
 block discarded – undo
292 286
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
293 287
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException
294 288
      */
295
-    protected function updateRemotely($document, $workflowTransition = null, $deletedFiles = [], $newFiles = [])
296
-    {
289
+    protected function updateRemotely($document, $workflowTransition = null, $deletedFiles = [], $newFiles = []) {
297 290
         $lastModDate = $this->getDocumentTransferManager()->getLastModDate($document->getObjectIdentifier());
298 291
         $docLastModDate = $document->getRemoteLastModDate();
299 292
         if ($lastModDate !== $docLastModDate && !empty($docLastModDate)) {
@@ -330,7 +323,7 @@  discard block
 block discarded – undo
330 323
 
331 324
         if ($this->getDocumentTransferManager()->update($document)) {
332 325
 
333
-            if(!$this->hasActiveEmbargo($document)){
326
+            if(!$this->hasActiveEmbargo($document)) {
334 327
                 $this->removeDocument($document);
335 328
             } else {
336 329
                 $document->setState(DocumentWorkflow::LOCAL_STATE_IN_PROGRESS . ':' . $document->getRemoteState());
@@ -346,10 +339,9 @@  discard block
 block discarded – undo
346 339
      * @return bool (true: if no embargo is set or embargo is expired, false: embargo is active)
347 340
      * @throws \Exception
348 341
      */
349
-    protected function hasActiveEmbargo($document)
350
-    {
342
+    protected function hasActiveEmbargo($document) {
351 343
         $currentDate = new \DateTime('now');
352
-        if($currentDate > $document->getEmbargoDate()){
344
+        if($currentDate > $document->getEmbargoDate()) {
353 345
             // embargo is expired
354 346
             return false;
355 347
         } else {
Please login to merge, or discard this patch.
Classes/Tasks/EmbargoTask.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
 use EWW\Dpf\Domain\Repository\DocumentRepository;
10 10
 
11 11
 
12
-class EmbargoTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask
13
-{
12
+class EmbargoTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
14 13
 
15 14
     public function execute() {
16 15
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
         foreach ($embargoDocuments as $document) {
24 24
             if ($currentDate > $document->getEmbargoDate()) {
25 25
 
26
-                if ($document->getRemoteState() == DocumentWorkflow::REMOTE_STATE_ACTIVE OR
27
-                    $document->getRemoteState() == DocumentWorkflow::REMOTE_STATE_DELETED OR
28
-                    $document->getRemoteState() == DocumentWorkflow::REMOTE_STATE_INACTIVE OR
29
-                    $document->getLocalState() == DocumentWorkflow::LOCAL_STATE_IN_PROGRESS OR
30
-                    $document->getLocalState() == DocumentWorkflow::LOCAL_STATE_POSTPONED OR
26
+                if ($document->getRemoteState() == DocumentWorkflow::REMOTE_STATE_ACTIVE or
27
+                    $document->getRemoteState() == DocumentWorkflow::REMOTE_STATE_DELETED or
28
+                    $document->getRemoteState() == DocumentWorkflow::REMOTE_STATE_INACTIVE or
29
+                    $document->getLocalState() == DocumentWorkflow::LOCAL_STATE_IN_PROGRESS or
30
+                    $document->getLocalState() == DocumentWorkflow::LOCAL_STATE_POSTPONED or
31 31
                     $document->getLocalState() == DocumentWorkflow::LOCAL_STATE_DISCARDED) {
32 32
                     // send message
33 33
                     $notifier = $objectManager->get(Notifier::class);
Please login to merge, or discard this patch.
Classes/Domain/Model/Document.php 1 patch
Braces   +62 added lines, -124 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
 /**
21 21
  * Document
22 22
  */
23
-class Document extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
24
-{
23
+class Document extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
25 24
     /**
26 25
      * title
27 26
      *
@@ -183,8 +182,7 @@  discard block
 block discarded – undo
183 182
     /**
184 183
      * __construct
185 184
      */
186
-    public function __construct()
187
-    {
185
+    public function __construct() {
188 186
         //Do not remove the next line: It would break the functionality
189 187
         $this->initStorageObjects();
190 188
     }
@@ -194,8 +192,7 @@  discard block
 block discarded – undo
194 192
      *
195 193
      * @return void
196 194
      */
197
-    protected function initStorageObjects()
198
-    {
195
+    protected function initStorageObjects() {
199 196
         $this->file = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
200 197
     }
201 198
 
@@ -204,8 +201,7 @@  discard block
 block discarded – undo
204 201
      *
205 202
      * @return string $title
206 203
      */
207
-    public function getTitle()
208
-    {
204
+    public function getTitle() {
209 205
         return $this->title;
210 206
     }
211 207
 
@@ -215,8 +211,7 @@  discard block
 block discarded – undo
215 211
      * @param string $title
216 212
      * @return void
217 213
      */
218
-    public function setTitle($title)
219
-    {
214
+    public function setTitle($title) {
220 215
         $this->title = $title;
221 216
         //htmlspecialchars_decode($title,ENT_QUOTES);
222 217
     }
@@ -226,8 +221,7 @@  discard block
 block discarded – undo
226 221
      *
227 222
      * @return array $authors
228 223
      */
229
-    public function getAuthors()
230
-    {
224
+    public function getAuthors() {
231 225
         return array_map('trim', explode(";", $this->authors));
232 226
     }
233 227
 
@@ -237,8 +231,7 @@  discard block
 block discarded – undo
237 231
      * @param array $authors
238 232
      * @return void
239 233
      */
240
-    public function setAuthors($authors)
241
-    {
234
+    public function setAuthors($authors) {
242 235
         $authors = implode("; ", $authors);
243 236
         $this->authors = $authors;
244 237
     }
@@ -248,8 +241,7 @@  discard block
 block discarded – undo
248 241
      *
249 242
      * @return string $xmlData
250 243
      */
251
-    public function getXmlData()
252
-    {
244
+    public function getXmlData() {
253 245
         return $this->xmlData;
254 246
     }
255 247
 
@@ -259,8 +251,7 @@  discard block
 block discarded – undo
259 251
      * @param string $xmlData
260 252
      * @return void
261 253
      */
262
-    public function setXmlData($xmlData)
263
-    {
254
+    public function setXmlData($xmlData) {
264 255
         $this->xmlData = $xmlData;
265 256
     }
266 257
 
@@ -269,8 +260,7 @@  discard block
 block discarded – undo
269 260
      *
270 261
      * @return string $slubInfoData
271 262
      */
272
-    public function getSlubInfoData()
273
-    {
263
+    public function getSlubInfoData() {
274 264
         return $this->slubInfoData;
275 265
     }
276 266
 
@@ -279,8 +269,7 @@  discard block
 block discarded – undo
279 269
      *
280 270
      * @return string $slubInfoData
281 271
      */
282
-    public function setSlubInfoData($slubInfoData)
283
-    {
272
+    public function setSlubInfoData($slubInfoData) {
284 273
         $this->slubInfoData = $slubInfoData;
285 274
     }
286 275
 
@@ -289,8 +278,7 @@  discard block
 block discarded – undo
289 278
      *
290 279
      * @return \EWW\Dpf\Domain\Model\DocumentType $documentType
291 280
      */
292
-    public function getDocumentType()
293
-    {
281
+    public function getDocumentType() {
294 282
         return $this->documentType;
295 283
     }
296 284
 
@@ -300,8 +288,7 @@  discard block
 block discarded – undo
300 288
      * @param \EWW\Dpf\Domain\Model\DocumentType $documentType
301 289
      * @return void
302 290
      */
303
-    public function setDocumentType(\EWW\Dpf\Domain\Model\DocumentType $documentType)
304
-    {
291
+    public function setDocumentType(\EWW\Dpf\Domain\Model\DocumentType $documentType) {
305 292
         $this->documentType = $documentType;
306 293
     }
307 294
 
@@ -310,8 +297,7 @@  discard block
 block discarded – undo
310 297
      *
311 298
      * @return string
312 299
      */
313
-    public function getObjectIdentifier()
314
-    {
300
+    public function getObjectIdentifier() {
315 301
         return $this->objectIdentifier;
316 302
     }
317 303
 
@@ -321,8 +307,7 @@  discard block
 block discarded – undo
321 307
      * @param string $objectIdentifier
322 308
      * @return void
323 309
      */
324
-    public function setObjectIdentifier($objectIdentifier)
325
-    {
310
+    public function setObjectIdentifier($objectIdentifier) {
326 311
         // Due to uniqe key uc_object_identifier, which should ignore empty object identifiers.
327 312
         $this->objectIdentifier = empty($objectIdentifier)? null : $objectIdentifier;
328 313
     }
@@ -332,8 +317,7 @@  discard block
 block discarded – undo
332 317
      *
333 318
      * @return string
334 319
      */
335
-    public function getReservedObjectIdentifier()
336
-    {
320
+    public function getReservedObjectIdentifier() {
337 321
         return $this->reservedObjectIdentifier;
338 322
     }
339 323
 
@@ -343,8 +327,7 @@  discard block
 block discarded – undo
343 327
      * @param string $reservedObjectIdentifier
344 328
      * @return void
345 329
      */
346
-    public function setReservedObjectIdentifier($reservedObjectIdentifier)
347
-    {
330
+    public function setReservedObjectIdentifier($reservedObjectIdentifier) {
348 331
         $this->reservedObjectIdentifier = $reservedObjectIdentifier;
349 332
     }
350 333
 
@@ -353,8 +336,7 @@  discard block
 block discarded – undo
353 336
      *
354 337
      * @return string
355 338
      */
356
-    public function getTransferStatus()
357
-    {
339
+    public function getTransferStatus() {
358 340
         return $this->transferStatus;
359 341
     }
360 342
 
@@ -364,8 +346,7 @@  discard block
 block discarded – undo
364 346
      * @param string
365 347
      * @return void
366 348
      */
367
-    public function setTransferStatus($transferStatus)
368
-    {
349
+    public function setTransferStatus($transferStatus) {
369 350
         $this->transferStatus = $transferStatus;
370 351
     }
371 352
 
@@ -374,8 +355,7 @@  discard block
 block discarded – undo
374 355
      *
375 356
      * @return integer
376 357
      */
377
-    public function getTransferDate()
378
-    {
358
+    public function getTransferDate() {
379 359
         return $this->transferDate;
380 360
     }
381 361
 
@@ -385,8 +365,7 @@  discard block
 block discarded – undo
385 365
      * @param integer $transferDate
386 366
      * @return void
387 367
      */
388
-    public function setTransferDate($transferDate)
389
-    {
368
+    public function setTransferDate($transferDate) {
390 369
         $this->transferDate = $transferDate;
391 370
     }
392 371
 
@@ -395,8 +374,7 @@  discard block
 block discarded – undo
395 374
      *
396 375
      * @var integer
397 376
      */
398
-    public function getTransferErrorCode()
399
-    {
377
+    public function getTransferErrorCode() {
400 378
         return $this->transferErrorCode;
401 379
     }
402 380
 
@@ -406,8 +384,7 @@  discard block
 block discarded – undo
406 384
      * @param integer $transferErrorCode
407 385
      * @return void
408 386
      */
409
-    public function setTransferErrorCode($transferErrorCode)
410
-    {
387
+    public function setTransferErrorCode($transferErrorCode) {
411 388
         $this->transferErrorCode = $transferErrorCode;
412 389
     }
413 390
 
@@ -416,8 +393,7 @@  discard block
 block discarded – undo
416 393
      *
417 394
      * @var string
418 395
      */
419
-    public function getTransferResponse()
420
-    {
396
+    public function getTransferResponse() {
421 397
         return $this->transferResponse;
422 398
     }
423 399
 
@@ -427,8 +403,7 @@  discard block
 block discarded – undo
427 403
      * @param string $transferResponse
428 404
      * @return void
429 405
      */
430
-    public function setTransferResponse($transferResponse)
431
-    {
406
+    public function setTransferResponse($transferResponse) {
432 407
         $this->transferResponse = $transferResponse;
433 408
     }
434 409
 
@@ -437,8 +412,7 @@  discard block
 block discarded – undo
437 412
      *
438 413
      * @var integer
439 414
      */
440
-    public function getTransferHttpStatus()
441
-    {
415
+    public function getTransferHttpStatus() {
442 416
         return $this->transferHttpStatus;
443 417
     }
444 418
 
@@ -448,8 +422,7 @@  discard block
 block discarded – undo
448 422
      * @param integer $transferHttpStatus
449 423
      * @return void
450 424
      */
451
-    public function setTransferHttpStatus($transferHttpStatus)
452
-    {
425
+    public function setTransferHttpStatus($transferHttpStatus) {
453 426
         $this->transferHttpStatus = $transferHttpStatus;
454 427
     }
455 428
 
@@ -459,8 +432,7 @@  discard block
 block discarded – undo
459 432
      * @param \EWW\Dpf\Domain\Model\File $file
460 433
      * @return void
461 434
      */
462
-    public function addFile(\EWW\Dpf\Domain\Model\File $file)
463
-    {
435
+    public function addFile(\EWW\Dpf\Domain\Model\File $file) {
464 436
         $this->file->attach($file);
465 437
     }
466 438
 
@@ -470,8 +442,7 @@  discard block
 block discarded – undo
470 442
      * @param \EWW\Dpf\Domain\Model\File $fileToRemove The File to be removed
471 443
      * @return void
472 444
      */
473
-    public function removeFile(\EWW\Dpf\Domain\Model\File $fileToRemove)
474
-    {
445
+    public function removeFile(\EWW\Dpf\Domain\Model\File $fileToRemove) {
475 446
         $this->file->detach($fileToRemove);
476 447
     }
477 448
 
@@ -480,8 +451,7 @@  discard block
 block discarded – undo
480 451
      *
481 452
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\File> $file
482 453
      */
483
-    public function getFile()
484
-    {
454
+    public function getFile() {
485 455
         return $this->file;
486 456
     }
487 457
 
@@ -491,8 +461,7 @@  discard block
 block discarded – undo
491 461
      * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\File> $file
492 462
      * @return void
493 463
      */
494
-    public function setFile(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $file)
495
-    {
464
+    public function setFile(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $file) {
496 465
         $this->file = $file;
497 466
     }
498 467
 
@@ -501,8 +470,7 @@  discard block
 block discarded – undo
501 470
      *
502 471
      * @return array
503 472
      */
504
-    public function getFileData()
505
-    {
473
+    public function getFileData() {
506 474
 
507 475
         $fileId = new \EWW\Dpf\Services\Transfer\FileId($this);
508 476
 
@@ -552,8 +520,7 @@  discard block
 block discarded – undo
552 520
      *
553 521
      * @return array
554 522
      */
555
-    public function getCurrentFileData()
556
-    {
523
+    public function getCurrentFileData() {
557 524
 
558 525
         $fileId = new \EWW\Dpf\Services\Transfer\FileId($this);
559 526
 
@@ -601,8 +568,7 @@  discard block
 block discarded – undo
601 568
      *
602 569
      * @return boolean $changed
603 570
      */
604
-    public function getChanged()
605
-    {
571
+    public function getChanged() {
606 572
         return $this->changed;
607 573
     }
608 574
 
@@ -612,8 +578,7 @@  discard block
 block discarded – undo
612 578
      * @param boolean $changed
613 579
      * @return void
614 580
      */
615
-    public function setChanged($changed)
616
-    {
581
+    public function setChanged($changed) {
617 582
         $this->changed = $changed;
618 583
     }
619 584
 
@@ -622,8 +587,7 @@  discard block
 block discarded – undo
622 587
      *
623 588
      * @return boolean $valid
624 589
      */
625
-    public function getValid()
626
-    {
590
+    public function getValid() {
627 591
         return $this->valid;
628 592
     }
629 593
 
@@ -633,8 +597,7 @@  discard block
 block discarded – undo
633 597
      * @param boolean $valid
634 598
      * @return void
635 599
      */
636
-    public function setValid($valid)
637
-    {
600
+    public function setValid($valid) {
638 601
         $this->valid = $valid;
639 602
     }
640 603
 
@@ -643,8 +606,7 @@  discard block
 block discarded – undo
643 606
      *
644 607
      * @return string
645 608
      */
646
-    public function getDateIssued()
647
-    {
609
+    public function getDateIssued() {
648 610
         return empty($this->dateIssued) ? '' : $this->dateIssued;
649 611
     }
650 612
 
@@ -654,8 +616,7 @@  discard block
 block discarded – undo
654 616
      * @param string $dateIssued
655 617
      * @return void
656 618
      */
657
-    public function setDateIssued($dateIssued)
658
-    {
619
+    public function setDateIssued($dateIssued) {
659 620
         $this->dateIssued = empty($dateIssued) ? '' : $dateIssued;
660 621
     }
661 622
 
@@ -665,8 +626,7 @@  discard block
 block discarded – undo
665 626
      *
666 627
      * @return string
667 628
      */
668
-    public function getProcessNumber()
669
-    {
629
+    public function getProcessNumber() {
670 630
         return $this->processNumber;
671 631
     }
672 632
 
@@ -676,8 +636,7 @@  discard block
 block discarded – undo
676 636
      * @param string $processNumber
677 637
      * @return void
678 638
      */
679
-    public function setProcessNumber($processNumber)
680
-    {
639
+    public function setProcessNumber($processNumber) {
681 640
         $this->processNumber = trim($processNumber);
682 641
     }
683 642
 
@@ -687,8 +646,7 @@  discard block
 block discarded – undo
687 646
      *
688 647
      * @return string
689 648
      */
690
-    public function getSubmitterName()
691
-    {
649
+    public function getSubmitterName() {
692 650
         try {
693 651
             $slub = new \EWW\Dpf\Helper\Slub($this->getSlubInfoData());
694 652
             return $slub->getSubmitterName();
@@ -702,8 +660,7 @@  discard block
 block discarded – undo
702 660
      *
703 661
      * @return string
704 662
      */
705
-    public function getQucosaUrn()
706
-    {
663
+    public function getQucosaUrn() {
707 664
         $mods = new \EWW\Dpf\Helper\Mods($this->getXmlData());
708 665
         return $mods->getQucosaUrn();
709 666
     }
@@ -713,8 +670,7 @@  discard block
 block discarded – undo
713 670
      *
714 671
      * @return int
715 672
      */
716
-    public function getCreator()
717
-    {
673
+    public function getCreator() {
718 674
         return $this->creator? $this->creator : 0;
719 675
     }
720 676
 
@@ -724,23 +680,19 @@  discard block
 block discarded – undo
724 680
      * @param int $creator
725 681
      * @return void
726 682
      */
727
-    public function setCreator($creator)
728
-    {
683
+    public function setCreator($creator) {
729 684
         $this->creator = $creator;
730 685
     }
731 686
 
732
-    public function getState()
733
-    {
687
+    public function getState() {
734 688
         return $this->state;
735 689
     }
736 690
 
737
-    public function setState($state)
738
-    {
691
+    public function setState($state) {
739 692
         $this->state = $state;
740 693
     }
741 694
 
742
-    public function getRemoteState()
743
-    {
695
+    public function getRemoteState() {
744 696
         $state = explode(':', $this->state);
745 697
         if (is_array($state) && array_key_exists(1, $state)) {
746 698
             return $state[1];
@@ -778,8 +730,7 @@  discard block
 block discarded – undo
778 730
     /**
779 731
      * @return string
780 732
      */
781
-    public function getRemoteLastModDate()
782
-    {
733
+    public function getRemoteLastModDate() {
783 734
         return $this->remoteLastModDate;
784 735
     }
785 736
 
@@ -787,16 +738,14 @@  discard block
 block discarded – undo
787 738
      * @param string $remoteLastModDate
788 739
      * @return void
789 740
      */
790
-    public function setRemoteLastModDate($remoteLastModDate)
791
-    {
741
+    public function setRemoteLastModDate($remoteLastModDate) {
792 742
         $this->remoteLastModDate = $remoteLastModDate;
793 743
     }
794 744
 
795 745
     /**
796 746
      * @return integer
797 747
      */
798
-    public function getTstamp()
799
-    {
748
+    public function getTstamp() {
800 749
         return $this->tstamp;
801 750
     }
802 751
 
@@ -811,8 +760,7 @@  discard block
 block discarded – undo
811 760
     /**
812 761
      * @param bool $suggestion
813 762
      */
814
-    public function setSuggestion(bool $suggestion)
815
-    {
763
+    public function setSuggestion(bool $suggestion) {
816 764
         $this->suggestion = $suggestion;
817 765
     }
818 766
 
@@ -827,8 +775,7 @@  discard block
 block discarded – undo
827 775
     /**
828 776
      * @param string $linkedUid
829 777
      */
830
-    public function setLinkedUid(string $linkedUid)
831
-    {
778
+    public function setLinkedUid(string $linkedUid) {
832 779
         $this->linkedUid = $linkedUid;
833 780
     }
834 781
 
@@ -843,8 +790,7 @@  discard block
 block discarded – undo
843 790
     /**
844 791
      * @param string $comment
845 792
      */
846
-    public function setComment(string $comment)
847
-    {
793
+    public function setComment(string $comment) {
848 794
         $this->comment = $comment;
849 795
     }
850 796
 
@@ -881,8 +827,7 @@  discard block
 block discarded – undo
881 827
      *
882 828
      * @return string|int
883 829
      */
884
-    public function getDocumentIdentifier()
885
-    {
830
+    public function getDocumentIdentifier() {
886 831
         return $this->getObjectIdentifier()? $this->getObjectIdentifier() : $this->getUid();
887 832
     }
888 833
 
@@ -891,8 +836,7 @@  discard block
 block discarded – undo
891 836
      *
892 837
      * @return bool
893 838
      */
894
-    public function isWorkingCopy()
895
-    {
839
+    public function isWorkingCopy() {
896 840
         return $this->getObjectIdentifier() && !$this->isTemporary() && !$this->isSuggestion();
897 841
     }
898 842
 
@@ -902,8 +846,7 @@  discard block
 block discarded – undo
902 846
      *
903 847
      * @return bool
904 848
      */
905
-    public function isTemporaryCopy()
906
-    {
849
+    public function isTemporaryCopy() {
907 850
         return $this->getObjectIdentifier() && $this->isTemporary() && !$this->isSuggestion();
908 851
     }
909 852
 
@@ -913,8 +856,7 @@  discard block
 block discarded – undo
913 856
      *
914 857
      * @return string|null
915 858
      */
916
-    public function getPublicationYear()
917
-    {
859
+    public function getPublicationYear() {
918 860
         $mods = new Mods($this->getXmlData());
919 861
         $year =  $mods->getPublishingYear();
920 862
         return $year? $year : "";
@@ -925,8 +867,7 @@  discard block
 block discarded – undo
925 867
      *
926 868
      * @return string|null
927 869
      */
928
-    public function getMainTitle()
929
-    {
870
+    public function getMainTitle() {
930 871
         $mods = new Mods($this->getXmlData());
931 872
         $title = $mods->getTitle();
932 873
         return $title? $title : "";
@@ -938,8 +879,7 @@  discard block
 block discarded – undo
938 879
      *
939 880
      * @return string|null
940 881
      */
941
-    public function getSourceDetails()
942
-    {
882
+    public function getSourceDetails() {
943 883
         $mods = new Mods($this->getXmlData());
944 884
         $data = $mods->getSourceDetails();
945 885
         return $data;
@@ -956,8 +896,7 @@  discard block
 block discarded – undo
956 896
     /**
957 897
      * @param \DateTime|null $embargoDate
958 898
      */
959
-    public function setEmbargoDate(?\DateTime $embargoDate)
960
-    {
899
+    public function setEmbargoDate(?\DateTime $embargoDate) {
961 900
         $this->embargoDate = $embargoDate;
962 901
     }
963 902
 
@@ -972,8 +911,7 @@  discard block
 block discarded – undo
972 911
     /**
973 912
      * @param \DateTime|null $embargoDate
974 913
      */
975
-    public function setEmbargoDate(?\DateTime $embargoDate)
976
-    {
914
+    public function setEmbargoDate(?\DateTime $embargoDate) {
977 915
         $this->embargoDate = $embargoDate;
978 916
     }
979 917
 
Please login to merge, or discard this patch.
Classes/Domain/Model/MetadataObject.php 1 patch
Braces   +37 added lines, -74 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
@@ -158,8 +157,7 @@  discard block
 block discarded – undo
158 157
      *
159 158
      * @return string $name
160 159
      */
161
-    public function getName()
162
-    {
160
+    public function getName() {
163 161
         return $this->name;
164 162
     }
165 163
 
@@ -169,8 +167,7 @@  discard block
 block discarded – undo
169 167
      * @param string $name
170 168
      * @return void
171 169
      */
172
-    public function setName($name)
173
-    {
170
+    public function setName($name) {
174 171
         $this->name = $name;
175 172
     }
176 173
 
@@ -179,8 +176,7 @@  discard block
 block discarded – undo
179 176
      *
180 177
      * @return string $displayName
181 178
      */
182
-    public function getDisplayName()
183
-    {
179
+    public function getDisplayName() {
184 180
         return $this->displayName;
185 181
     }
186 182
 
@@ -190,8 +186,7 @@  discard block
 block discarded – undo
190 186
      * @param string $displayName
191 187
      * @return void
192 188
      */
193
-    public function setDisplayName($displayName)
194
-    {
189
+    public function setDisplayName($displayName) {
195 190
         $this->displayName = $displayName;
196 191
     }
197 192
 
@@ -200,8 +195,7 @@  discard block
 block discarded – undo
200 195
      *
201 196
      * @return integer $maxIteration
202 197
      */
203
-    public function getMaxIteration()
204
-    {
198
+    public function getMaxIteration() {
205 199
         return $this->maxIteration;
206 200
     }
207 201
 
@@ -211,8 +205,7 @@  discard block
 block discarded – undo
211 205
      * @param integer $maxIteration
212 206
      * @return void
213 207
      */
214
-    public function setMaxIteration($maxIteration)
215
-    {
208
+    public function setMaxIteration($maxIteration) {
216 209
         $this->maxIteration = $maxIteration;
217 210
     }
218 211
 
@@ -221,8 +214,7 @@  discard block
 block discarded – undo
221 214
      *
222 215
      * @return string $mandatory
223 216
      */
224
-    public function getMandatory()
225
-    {
217
+    public function getMandatory() {
226 218
         return $this->mandatory;
227 219
     }
228 220
 
@@ -232,8 +224,7 @@  discard block
 block discarded – undo
232 224
      * @param string $mandatory
233 225
      * @return void
234 226
      */
235
-    public function setMandatory($mandatory)
236
-    {
227
+    public function setMandatory($mandatory) {
237 228
         $this->mandatory = $mandatory;
238 229
     }
239 230
 
@@ -242,8 +233,7 @@  discard block
 block discarded – undo
242 233
      *
243 234
      * @return boolean $modsExtension
244 235
      */
245
-    public function getModsExtension()
246
-    {
236
+    public function getModsExtension() {
247 237
         return $this->modsExtension;
248 238
     }
249 239
 
@@ -253,8 +243,7 @@  discard block
 block discarded – undo
253 243
      * @param boolean $modsExtension
254 244
      * @return void
255 245
      */
256
-    public function setModsExtension($modsExtension)
257
-    {
246
+    public function setModsExtension($modsExtension) {
258 247
         $this->modsExtension = $modsExtension;
259 248
     }
260 249
 
@@ -263,8 +252,7 @@  discard block
 block discarded – undo
263 252
      *
264 253
      * @return boolean
265 254
      */
266
-    public function isModsExtension()
267
-    {
255
+    public function isModsExtension() {
268 256
         return $this->modsExtension;
269 257
     }
270 258
 
@@ -273,8 +261,7 @@  discard block
 block discarded – undo
273 261
      *
274 262
      * @return string $mapping
275 263
      */
276
-    public function getMapping()
277
-    {
264
+    public function getMapping() {
278 265
         return $this->mapping;
279 266
     }
280 267
 
@@ -284,8 +271,7 @@  discard block
 block discarded – undo
284 271
      * @param string $mapping
285 272
      * @return void
286 273
      */
287
-    public function setMapping($mapping)
288
-    {
274
+    public function setMapping($mapping) {
289 275
         $this->mapping = $mapping;
290 276
     }
291 277
 
@@ -294,8 +280,7 @@  discard block
 block discarded – undo
294 280
      *
295 281
      * @return string $relativeMapping
296 282
      */
297
-    public function getRelativeMapping()
298
-    {
283
+    public function getRelativeMapping() {
299 284
         $modsRegExp = "/^.*?mods:mods/i";
300 285
         $mapping    = preg_replace($modsRegExp, "", $this->mapping);
301 286
         return trim($mapping, " /");
@@ -306,8 +291,7 @@  discard block
 block discarded – undo
306 291
      *
307 292
      * @return integer $inputField
308 293
      */
309
-    public function getInputField()
310
-    {
294
+    public function getInputField() {
311 295
         return $this->inputField;
312 296
     }
313 297
 
@@ -317,8 +301,7 @@  discard block
 block discarded – undo
317 301
      * @param integer $inputField
318 302
      * @return void
319 303
      */
320
-    public function setInputField($inputField)
321
-    {
304
+    public function setInputField($inputField) {
322 305
         $this->inputField = $inputField;
323 306
     }
324 307
 
@@ -327,8 +310,7 @@  discard block
 block discarded – undo
327 310
      *
328 311
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject
329 312
      */
330
-    public function getChildren()
331
-    {
313
+    public function getChildren() {
332 314
         return null;
333 315
     }
334 316
 
@@ -337,8 +319,7 @@  discard block
 block discarded – undo
337 319
      *
338 320
      * @return \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
339 321
      */
340
-    public function getInputOptionList()
341
-    {
322
+    public function getInputOptionList() {
342 323
         return $this->inputOptionList;
343 324
     }
344 325
 
@@ -348,8 +329,7 @@  discard block
 block discarded – undo
348 329
      * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
349 330
      * @return void
350 331
      */
351
-    public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList)
352
-    {
332
+    public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList) {
353 333
         $this->inputOptionList = $inputOptionList;
354 334
     }
355 335
 
@@ -358,8 +338,7 @@  discard block
 block discarded – undo
358 338
      *
359 339
      * @return string $fillOutService
360 340
      */
361
-    public function getFillOutService()
362
-    {
341
+    public function getFillOutService() {
363 342
         return $this->fillOutService;
364 343
     }
365 344
 
@@ -369,8 +348,7 @@  discard block
 block discarded – undo
369 348
      * @param string $fillOutService
370 349
      * @return void
371 350
      */
372
-    public function setFillOutService($fillOutService)
373
-    {
351
+    public function setFillOutService($fillOutService) {
374 352
         $this->fillOutService = $fillOutService;
375 353
     }
376 354
 
@@ -379,8 +357,7 @@  discard block
 block discarded – undo
379 357
      *
380 358
      * @return array $accessRestrictionRoles
381 359
      */
382
-    public function getAccessRestrictionRoles()
383
-    {
360
+    public function getAccessRestrictionRoles() {
384 361
         if ($this->accessRestrictionRoles) {
385 362
             return array_map('trim', explode(',', $this->accessRestrictionRoles));
386 363
         } else {
@@ -394,8 +371,7 @@  discard block
 block discarded – undo
394 371
      * @param array $accessRestrictionRoles
395 372
      * @return void
396 373
      */
397
-    public function setAccessRestrictionRoles($accessRestrictionRoles)
398
-    {
374
+    public function setAccessRestrictionRoles($accessRestrictionRoles) {
399 375
         $this->accessRestrictionRoles = implode(',', $accessRestrictionRoles);
400 376
     }
401 377
 
@@ -404,8 +380,7 @@  discard block
 block discarded – undo
404 380
      *
405 381
      * @return boolean $consent
406 382
      */
407
-    public function getConsent()
408
-    {
383
+    public function getConsent() {
409 384
         return $this->consent;
410 385
     }
411 386
 
@@ -415,8 +390,7 @@  discard block
 block discarded – undo
415 390
      * @param boolean $consent
416 391
      * @return void
417 392
      */
418
-    public function setConsent($consent)
419
-    {
393
+    public function setConsent($consent) {
420 394
         $this->consent = $consent;
421 395
     }
422 396
 
@@ -425,8 +399,7 @@  discard block
 block discarded – undo
425 399
      *
426 400
      * @return string $defaultValue
427 401
      */
428
-    public function getDefaultValue()
429
-    {
402
+    public function getDefaultValue() {
430 403
         return $this->defaultValue;
431 404
     }
432 405
 
@@ -436,8 +409,7 @@  discard block
 block discarded – undo
436 409
      * @param string $defaultValue
437 410
      * @return void
438 411
      */
439
-    public function setDefaultValue($defaultValue)
440
-    {
412
+    public function setDefaultValue($defaultValue) {
441 413
         $this->defaultValue = $defaultValue;
442 414
     }
443 415
 
@@ -446,8 +418,7 @@  discard block
 block discarded – undo
446 418
      *
447 419
      * @return string $validation
448 420
      */
449
-    public function getValidation()
450
-    {
421
+    public function getValidation() {
451 422
         return $this->validation;
452 423
     }
453 424
 
@@ -457,8 +428,7 @@  discard block
 block discarded – undo
457 428
      * @param string $validation
458 429
      * @return void
459 430
      */
460
-    public function setValidation($validation)
461
-    {
431
+    public function setValidation($validation) {
462 432
         $this->validation = $validation;
463 433
     }
464 434
 
@@ -467,8 +437,7 @@  discard block
 block discarded – undo
467 437
      *
468 438
      * @return string $dataType
469 439
      */
470
-    public function getDataType()
471
-    {
440
+    public function getDataType() {
472 441
         return $this->dataType;
473 442
     }
474 443
 
@@ -478,32 +447,28 @@  discard block
 block discarded – undo
478 447
      * @param string $dataType
479 448
      * @return void
480 449
      */
481
-    public function setDataType($dataType)
482
-    {
450
+    public function setDataType($dataType) {
483 451
         $this->dataType = $dataType;
484 452
     }
485 453
 
486 454
     /**
487 455
      * @return string
488 456
      */
489
-    public function getGndFieldUid()
490
-    {
457
+    public function getGndFieldUid() {
491 458
         return $this->gndFieldUid;
492 459
     }
493 460
 
494 461
     /**
495 462
      * @param string $gndFieldUid
496 463
      */
497
-    public function setGndFieldUid($gndFieldUid)
498
-    {
464
+    public function setGndFieldUid($gndFieldUid) {
499 465
         $this->gndFieldUid = $gndFieldUid;
500 466
     }
501 467
 
502 468
     /**
503 469
      * @return integer
504 470
      */
505
-    public function getMaxInputLength()
506
-    {
471
+    public function getMaxInputLength() {
507 472
         if ($this->maxInputLength == 0) {
508 473
             if ($this->inputField == self::input) {
509 474
                 return 255;
@@ -518,8 +483,7 @@  discard block
 block discarded – undo
518 483
     /**
519 484
      * @return integer
520 485
      */
521
-    public function setMaxInputLength($maxInputLength)
522
-    {
486
+    public function setMaxInputLength($maxInputLength) {
523 487
         $this->maxInputLength = $maxInputLength;
524 488
     }
525 489
 
@@ -534,8 +498,7 @@  discard block
 block discarded – undo
534 498
     /**
535 499
      * @param bool $embargo
536 500
      */
537
-    public function setEmbargo(bool $embargo)
538
-    {
501
+    public function setEmbargo(bool $embargo) {
539 502
         $this->embargo = $embargo;
540 503
     }
541 504
 
Please login to merge, or discard this patch.