Passed
Push — master ( f02d33...dc5694 )
by Ralf
19:35
created
Configuration/TCA/tx_dpf_domain_model_metadatagroup.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
             'exclude'   => 1,
184 184
             'l10n_mode' => 'exclude',
185 185
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mapping',
186
-           // 'displayCond' => 'FIELD:group_type:!IN:file',
186
+            // 'displayCond' => 'FIELD:group_type:!IN:file',
187 187
             'config'    => array(
188 188
                 'type' => 'input',
189 189
                 'size' => 30,
Please login to merge, or discard this patch.
Spacing   +64 added lines, -64 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_metadatagroup',
22 22
         'label'                    => 'name',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -36,75 +36,75 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, json_mapping, max_iteration, metadata_object, access_restriction_roles, info_text, group_type, optional_groups, required_groups',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/default.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, json_mapping, max_iteration, metadata_object, access_restriction_roles, info_text, group_type, optional_groups, required_groups',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, name, display_name, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, json_mapping, max_iteration, metadata_object, access_restriction_roles, info_text, group_type, optional_groups, required_groups, --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, mandatory, mapping_for_reading, mapping, mods_extension_mapping, mods_extension_reference, json_mapping, max_iteration, metadata_object, access_restriction_roles, info_text, group_type, optional_groups, required_groups, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
44 44
     ),
45
-    'palettes'  => array(
46
-        '1' => array('showitem' => ''),
45
+    'palettes'  => array (
46
+        '1' => array ('showitem' => ''),
47 47
     ),
48
-    'columns'   => array(
48
+    'columns'   => array (
49 49
 
50
-        'sys_language_uid'         => array(
50
+        'sys_language_uid'         => array (
51 51
             'exclude' => 1,
52 52
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
53
-            'config'  => array(
53
+            'config'  => array (
54 54
                 'type'                => 'select',
55 55
                 'renderType'          => 'selectSingle',
56 56
                 'foreign_table'       => 'sys_language',
57 57
                 'foreign_table_where' => 'ORDER BY sys_language.title',
58
-                'items'               => array(
59
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
60
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
58
+                'items'               => array (
59
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
60
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
61 61
                 ),
62 62
                 'default' => 0,
63 63
             ),
64 64
         ),
65
-        'l10n_parent'              => array(
65
+        'l10n_parent'              => array (
66 66
             'displayCond' => 'FIELD:sys_language_uid:>:0',
67 67
             'exclude'     => 1,
68 68
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
69
-            'config'      => array(
69
+            'config'      => array (
70 70
                 'type'                => 'select',
71 71
                 'renderType'          => 'selectSingle',
72
-                'items'               => array(
73
-                    array('', 0),
72
+                'items'               => array (
73
+                    array ('', 0),
74 74
                 ),
75 75
                 'foreign_table'       => 'tx_dpf_domain_model_metadatagroup',
76 76
                 'foreign_table_where' => 'AND tx_dpf_domain_model_metadatagroup.pid=###CURRENT_PID### AND tx_dpf_domain_model_metadatagroup.sys_language_uid IN (-1,0)',
77 77
                 'default' => 0,
78 78
             ),
79 79
         ),
80
-        'l10n_diffsource'          => array(
81
-            'config' => array(
80
+        'l10n_diffsource'          => array (
81
+            'config' => array (
82 82
                 'type' => 'passthrough',
83 83
             ),
84 84
         ),
85 85
 
86
-        't3ver_label'              => array(
86
+        't3ver_label'              => array (
87 87
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
88
-            'config' => array(
88
+            'config' => array (
89 89
                 'type' => 'input',
90 90
                 'size' => 30,
91 91
                 'max'  => 255,
92 92
             ),
93 93
         ),
94 94
 
95
-        'hidden'                   => array(
95
+        'hidden'                   => array (
96 96
             'exclude'   => 1,
97 97
             'l10n_mode' => 'exclude',
98 98
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
99
-            'config'    => array(
99
+            'config'    => array (
100 100
                 'type' => 'check',
101 101
             ),
102 102
         ),
103
-        'starttime'                => array(
103
+        'starttime'                => array (
104 104
             'exclude'   => 1,
105 105
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
106
-            'config'    => array(
107
-                'behaviour' => array(
106
+            'config'    => array (
107
+                'behaviour' => array (
108 108
                     'allowLanguageSynchronization' => true
109 109
                 ),
110 110
                 'type'     => 'input',
@@ -113,144 +113,144 @@  discard block
 block discarded – undo
113 113
                 'eval'     => 'datetime',
114 114
                 'checkbox' => 0,
115 115
                 'default'  => 0,
116
-                'range'    => array(
116
+                'range'    => array (
117 117
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
118 118
                 ),
119 119
             ),
120 120
         ),
121
-        'endtime'                  => array(
121
+        'endtime'                  => array (
122 122
             'exclude'   => 1,
123 123
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
124
-            'config'    => array(
124
+            'config'    => array (
125 125
                 'type'     => 'input',
126 126
                 'renderType' => 'inputDateTime',
127 127
                 'size'     => 13,
128 128
                 'eval'     => 'datetime',
129 129
                 'checkbox' => 0,
130 130
                 'default'  => 0,
131
-                'range'    => array(
131
+                'range'    => array (
132 132
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
133 133
                 ),
134 134
             ),
135 135
         ),
136 136
 
137
-        'name'                     => array(
137
+        'name'                     => array (
138 138
             'exclude'   => 1,
139 139
             'l10n_mode' => 'exclude',
140 140
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.name',
141
-            'config'    => array(
141
+            'config'    => array (
142 142
                 'type' => 'input',
143 143
                 'size' => 30,
144 144
                 'eval' => 'trim,uniqueInPid',
145 145
             ),
146 146
         ),
147
-        'display_name'             => array(
147
+        'display_name'             => array (
148 148
             'exclude' => 1,
149 149
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.display_name',
150
-            'config'  => array(
150
+            'config'  => array (
151 151
                 'type' => 'input',
152 152
                 'size' => 30,
153 153
                 'eval' => 'trim',
154 154
             ),
155 155
         ),
156
-        'mandatory'                => array(
156
+        'mandatory'                => array (
157 157
             'exclude'   => 1,
158 158
             'l10n_mode' => 'exclude',
159 159
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory',
160
-            'config'    => array(
160
+            'config'    => array (
161 161
                 'type' => 'select',
162 162
                 'renderType' => 'selectSingle',
163 163
                 'size' => 1,
164 164
                 'maxitems' => 1,
165
-                'items' => array(
166
-                    array('',''),
167
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY),
168
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY),
165
+                'items' => array (
166
+                    array ('', ''),
167
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_yes', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY),
168
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mandatory_file_only', \EWW\Dpf\Domain\Model\MetadataMandatoryInterface::MANDATORY_FILE_ONLY),
169 169
                 ),
170 170
             ),
171 171
         ),
172
-        'mapping_for_reading'      => array(
172
+        'mapping_for_reading'      => array (
173 173
             'exclude'   => 1,
174 174
             'l10n_mode' => 'exclude',
175 175
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mapping_for_reading',
176 176
             'displayCond' => 'FIELD:group_type:!IN:file',
177
-            'config'    => array(
177
+            'config'    => array (
178 178
                 'type' => 'input',
179 179
                 'size' => 30,
180 180
                 'eval' => 'trim',
181 181
             ),
182 182
         ),
183
-        'mapping'                  => array(
183
+        'mapping'                  => array (
184 184
             'exclude'   => 1,
185 185
             'l10n_mode' => 'exclude',
186 186
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mapping',
187 187
            // 'displayCond' => 'FIELD:group_type:!IN:file',
188
-            'config'    => array(
188
+            'config'    => array (
189 189
                 'type' => 'input',
190 190
                 'size' => 30,
191 191
                 'eval' => 'trim',
192 192
             ),
193 193
         ),
194
-        'mods_extension_mapping'   => array(
194
+        'mods_extension_mapping'   => array (
195 195
             'exclude'   => 1,
196 196
             'l10n_mode' => 'exclude',
197 197
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.mods_extension_mapping',
198 198
             'displayCond' => 'FIELD:group_type:!IN:file',
199
-            'config'    => array(
199
+            'config'    => array (
200 200
                 'type' => 'input',
201 201
                 'size' => 30,
202 202
                 'eval' => 'trim',
203 203
             ),
204 204
         ),
205
-        'mods_extension_reference' => array(
205
+        'mods_extension_reference' => 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_metadatagroup.mods_extension_reference',
209 209
             'displayCond' => 'FIELD:group_type:!IN:file',
210
-            'config'    => array(
210
+            'config'    => array (
211 211
                 'type' => 'input',
212 212
                 'size' => 30,
213 213
                 'eval' => 'trim',
214 214
             ),
215 215
         ),
216
-        'json_mapping'                  => array(
216
+        'json_mapping'                  => array (
217 217
             'exclude'   => 1,
218 218
             'l10n_mode' => 'exclude',
219 219
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.json_mapping',
220 220
             'displayCond' => 'FIELD:group_type:!IN:file',
221
-            'config'    => array(
221
+            'config'    => array (
222 222
                 'type' => 'input',
223 223
                 'size' => 30,
224 224
                 'eval' => 'trim',
225 225
             ),
226 226
         ),
227
-        'max_iteration'            => array(
227
+        'max_iteration'            => array (
228 228
             'exclude'   => 1,
229 229
             'l10n_mode' => 'exclude',
230 230
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.max_iteration',
231
-            'config'    => array(
231
+            'config'    => array (
232 232
                 'type' => 'input',
233 233
                 'size' => 4,
234 234
                 'eval' => 'int',
235 235
             ),
236 236
         ),
237
-        'access_restriction_roles' => array(
237
+        'access_restriction_roles' => array (
238 238
             'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.access_restriction_roles',
239
-            'config' => array(
239
+            'config' => array (
240 240
                 'type' => 'select',
241 241
                 'renderType' => 'selectMultipleSideBySide',
242 242
                 'size' => 2,
243 243
                 'maxitems' => 2,
244
-                'items' => array(
245
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER),
246
-                    array('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN),
244
+                'items' => array (
245
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_researcher', EWW\Dpf\Security\Security::ROLE_RESEARCHER),
246
+                    array ('LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feusergroup.kitodo_role_librarian', EWW\Dpf\Security\Security::ROLE_LIBRARIAN),
247 247
                 ),
248 248
             ),
249 249
         ),
250
-        'info_text'                => array(
250
+        'info_text'                => array (
251 251
             'exclude' => 1,
252 252
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.info_text',
253
-            'config'  => array(
253
+            'config'  => array (
254 254
                 'type' => 'text',
255 255
                 'cols' => 40,
256 256
                 'rows' => 15,
@@ -258,24 +258,24 @@  discard block
 block discarded – undo
258 258
                 'enableRichtext' => true,
259 259
             ),
260 260
         ),
261
-        'metadata_object'          => array(
261
+        'metadata_object'          => array (
262 262
             'exclude'   => 1,
263 263
             'l10n_mode' => 'exclude',
264 264
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_metadatagroup.metadata_object',
265
-            'config'    => array(
265
+            'config'    => array (
266 266
                 'type'           => 'inline',
267 267
                 'foreign_table'  => 'tx_dpf_domain_model_metadataobject',
268 268
                 'foreign_field'  => 'metadatagroup',
269 269
                 'foreign_label'  => 'display_name',
270 270
                 'foreign_sortby' => 'sorting',
271
-                'behaviour'      => array(
271
+                'behaviour'      => array (
272 272
                     'disableMovingChildrenWithParent' => 1,
273 273
                 ),
274 274
                 'size'           => 10,
275 275
                 'autoSizeMax'    => 30,
276 276
                 'maxitems'       => 9999,
277 277
                 'multiple'       => 0,
278
-                'appearance'     => array(
278
+                'appearance'     => array (
279 279
                     'collapseAll'                     => 1,
280 280
                     'levelLinksPosition'              => 'top',
281 281
                     'showSynchronizationLink'         => 1,
Please login to merge, or discard this patch.
Classes/Domain/Model/MetadataObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
         if ($this->accessRestrictionRoles) {
461 461
             return array_map('trim', explode(',', $this->accessRestrictionRoles));
462 462
         } else {
463
-            return array();
463
+            return array ();
464 464
         }
465 465
     }
466 466
 
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
     }
828 828
 
829 829
     protected function isRepeatable() {
830
-        return !in_array($this->getObjectType(), ['fileDownload','fileArchive','fileLabel'])
830
+        return !in_array($this->getObjectType(), ['fileDownload', 'fileArchive', 'fileLabel'])
831 831
             && $this->getInputField() != self::FILE_UPLOAD;
832 832
     }
833 833
 }
Please login to merge, or discard this patch.
Classes/Domain/Model/DocumentForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
219 219
 
220 220
     public function getFileNames()
221 221
     {
222
-        $fileNames = array();
222
+        $fileNames = array ();
223 223
         foreach ($this->getFiles() as $file) {
224 224
             $fileNames[] = $file->getTitle();
225 225
         }
Please login to merge, or discard this patch.
Classes/Controller/ApiController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -258,8 +258,8 @@  discard block
 block discarded – undo
258 258
                 $doc->setProcessNumber($processNumber);
259 259
             }
260 260
 
261
-            if ($this->documentManager->update($doc, null,true)) {
262
-                return '{"success": "Document '.$document.' added '.$id.'"}';
261
+            if ($this->documentManager->update($doc, null, true)) {
262
+                return '{"success": "Document ' . $document . ' added ' . $id . '"}';
263 263
             } else {
264 264
                 return '{"failed": Could not update the Document"}';
265 265
             }
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                     return '{"error": "Invalid data in parameter json."}';
299 299
                 }
300 300
             } else {
301
-                if (empty($json) || json_decode($json,true) === []) {
301
+                if (empty($json) || json_decode($json, true) === []) {
302 302
                     return '{"error": "Parameter json can not be empty."}';
303 303
                 }
304 304
                 if (is_null(json_decode($json))) {
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
             $doc = $this->documentManager->read($document);
311 311
 
312 312
             if (!$doc) {
313
-                return '{"failed": "Document does not exist: '.$document.'"}';
313
+                return '{"failed": "Document does not exist: ' . $document . '"}';
314 314
             }
315 315
 
316 316
             if ($doc->getState() === DocumentWorkflow::STATE_NEW_NONE) {
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
             }
324 324
 
325 325
             if ($linkedDocument) {
326
-                return '{"failed": "There is already a suggestion for the document: '.$linkedDocument->getUid().'"}';
326
+                return '{"failed": "There is already a suggestion for the document: ' . $linkedDocument->getUid() . '"}';
327 327
             }
328 328
 
329 329
             $mapper = $this->objectManager->get(\EWW\Dpf\Services\Api\JsonToDocumentMapper::class);
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
         $missingArguments = [];
682 682
         foreach ($parameterNames as $parameterName) {
683 683
             if (!$this->request->hasArgument($parameterName)) {
684
-                $missingArguments[] =  $parameterName;
684
+                $missingArguments[] = $parameterName;
685 685
             }
686 686
         }
687 687
 
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
             $this->throwStatus(
690 690
                 400,
691 691
                 null,
692
-                '{"error": "Missing parameters: '.implode(", ", $missingArguments).'"}'
692
+                '{"error": "Missing parameters: ' . implode(", ", $missingArguments) . '"}'
693 693
             );
694 694
         }
695 695
 
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
             $this->throwStatus(
720 720
                 400,
721 721
                 null,
722
-            '{"error": "An invalid action hes been called: '.$actionName.'"}'
722
+            '{"error": "An invalid action hes been called: ' . $actionName . '"}'
723 723
             );
724 724
         }
725 725
 
Please login to merge, or discard this patch.
Classes/Controller/AbstractDocumentFormController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                 $this->request->setArguments($requestArguments);
193 193
             } else {
194 194
                 $t = $docForm->getFileNames();
195
-                $this->redirect('list', 'DocumentForm', null, array('message' => 'UPLOAD_MAX_FILESIZE_ERROR', 'errorFiles' => $t));
195
+                $this->redirect('list', 'DocumentForm', null, array ('message' => 'UPLOAD_MAX_FILESIZE_ERROR', 'errorFiles' => $t));
196 196
             }
197 197
         } else {
198 198
             $this->redirectToList("UPLOAD_POST_SIZE_ERROR");
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
                 $this->request->setArguments($requestArguments);
356 356
             } else {
357 357
                 $t = $docForm->getFileNames();
358
-                $this->redirect('list', 'Document', null, array('message' => 'UPLOAD_MAX_FILESIZE_ERROR', 'errorFiles' => $t));
358
+                $this->redirect('list', 'Document', null, array ('message' => 'UPLOAD_MAX_FILESIZE_ERROR', 'errorFiles' => $t));
359 359
             }
360 360
         } else {
361 361
             $this->redirectToList("UPLOAD_POST_SIZE_ERROR");
Please login to merge, or discard this patch.
Classes/Services/Transfer/FileId.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function __construct(ObjectStorage $documentFiles)
29 29
     {
30
-        $idList   = array();
30
+        $idList   = array ();
31 31
         $this->id = 0;
32 32
 
33 33
         if (is_a($documentFiles, ObjectStorage::class)) {
Please login to merge, or discard this patch.
Classes/Services/ParserGenerator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @var array
47 47
      */
48
-    protected $formData = array();
48
+    protected $formData = array ();
49 49
 
50 50
     /**
51 51
      * files from form
52 52
      * @var array
53 53
      */
54
-    protected $files = array();
54
+    protected $files = array ();
55 55
 
56 56
     /**
57 57
      * metsData
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         $this->xmlHeader = '<data' . $this->namespaceString . '></data>';
113 113
 
114
-        $this->xmlData =  new \DOMDocument();
114
+        $this->xmlData = new \DOMDocument();
115 115
         $this->xmlData->loadXML($this->xmlHeader);
116 116
 
117 117
         // Parser
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             // mods extension
165 165
             if ($group['modsExtensionMapping']) {
166 166
                 $counter = sprintf("%'03d", $this->counter);
167
-                $attributeXPath .= '[@ID="'.$fedoraNamespace.'_' . $counter . '"]';
167
+                $attributeXPath .= '[@ID="' . $fedoraNamespace . '_' . $counter . '"]';
168 168
             }
169 169
 
170 170
             $existsExtensionFlag = false;
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 }
206 206
             }
207 207
             if (!$existsExtensionFlag && $group['modsExtensionMapping']) {
208
-                $xPath = $group['modsExtensionMapping'] . $extensionAttribute . '[@' . $group['modsExtensionReference'] . '="'.$fedoraNamespace.'_' . $counter . '"]';
208
+                $xPath = $group['modsExtensionMapping'] . $extensionAttribute . '[@' . $group['modsExtensionReference'] . '="' . $fedoraNamespace . '_' . $counter . '"]';
209 209
                 $xml   = $this->customXPath($xPath, true, '', true);
210 210
             }
211 211
             if ($group['modsExtensionMapping']) {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
                     $nestedXml = $this->parseXPath($nested);
291 291
 
292 292
                     // object xpath without nested element []
293
-                    $newPath[1] = str_replace('['.$match[2].']', '', $newPath[1]);
293
+                    $newPath[1] = str_replace('[' . $match[2] . ']', '', $newPath[1]);
294 294
 
295 295
                     $xml = $this->parseXPath($newPath[1]);
296 296
 
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
                     $nestedXml = $this->parseXPathWrapped($nested);
361 361
 
362 362
                     // object xpath without nested element []
363
-                    $newPath[1] = str_replace('['.$match[2].']', '', $newPath[1]);
363
+                    $newPath[1] = str_replace('[' . $match[2] . ']', '', $newPath[1]);
364 364
 
365 365
                     $xml2 = $this->parseXPathWrapped($path . $newPath[1]);
366 366
                 }
Please login to merge, or discard this patch.
Classes/Helper/XSLTransformator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $logger->log(
89 89
                 LogLevel::WARNING,
90 90
                 "Input XML: No transformation file is present. The given xml data was taken over as it is",
91
-                array(
91
+                array (
92 92
                     'documentTypeName' => $documentTypeName
93 93
                 )
94 94
             );
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             $filePath = $transformationFile->getFile()->getOriginalResource()->getIdentifier();
120 120
             $documentTransformer = new DocumentTransformer();
121 121
 
122
-            if ( !$document->getRemoteState() || $document->getRemoteState() == 'NONE' ) {
122
+            if (!$document->getRemoteState() || $document->getRemoteState() == 'NONE') {
123 123
                 $remoteState = 'ACTIVE';
124 124
             } else {
125 125
                 $remoteState = $document->getRemoteState();
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                 );
139 139
             } else {
140 140
                 $transformedXml = $documentTransformer->transform(
141
-                    Environment::getPublicPath(). '/fileadmin' . $filePath, $document->publicXml(), $transformParams
141
+                    Environment::getPublicPath() . '/fileadmin' . $filePath, $document->publicXml(), $transformParams
142 142
                 );
143 143
             }
144 144
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             $logger->log(
155 155
                 LogLevel::WARNING,
156 156
                 "Output XML: No transformation file is present. The generated xml data was taken over as it is",
157
-                array(
157
+                array (
158 158
                     'documentTypeName' => $documentTypeName
159 159
                 )
160 160
             );
Please login to merge, or discard this patch.
Classes/Helper/DocumentMapper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 (
143 143
                     $this->getSettings()['deactivatePrimaryFileMandatoryCheck'] ||
144 144
                     $document->getDocumentType()->getVirtualType()
145
-                )? false : true
145
+                ) ? false : true
146 146
             )
147 147
         );
148 148
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
         $internalFormat = new \EWW\Dpf\Helper\InternalFormat($document->getXmlData(), $this->clientPid);
161 161
 
162
-        $excludeGroupAttributes = array();
162
+        $excludeGroupAttributes = array ();
163 163
 
164 164
         foreach ($document->getDocumentType()->getMetadataPage() as $metadataPage) {
165 165
             $documentFormPage = new \EWW\Dpf\Domain\Model\DocumentFormPage();
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 $xpath = $internalFormat->getXpath();
191 191
 
192 192
                 // get fixed attributes from xpath configuration
193
-                $fixedGroupAttributes = array();
193
+                $fixedGroupAttributes = array ();
194 194
 
195 195
                 preg_match_all('/[A-Za-z0-9:@\.]+(\[@.*?\])*/', $metadataGroup->getAbsoluteMapping(), $groupMappingPathParts);
196 196
                 $groupMappingPathParts = $groupMappingPathParts[0];
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
 
459 459
                 foreach ($group as $groupItem) {
460 460
 
461
-                    $item = array();
461
+                    $item = array ();
462 462
 
463 463
                     $uid           = $groupItem->getUid();
464 464
                     $metadataGroup = $this->metadataGroupRepository->findByUid($uid);
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 
484 484
                             $fieldMapping = $metadataObject->getRelativeMapping();
485 485
 
486
-                            $formField = array();
486
+                            $formField = array ();
487 487
 
488 488
                             $value = $fieldItem->getValue();
489 489
 
@@ -533,11 +533,11 @@  discard block
 block discarded – undo
533 533
                     }
534 534
 
535 535
                     if (!key_exists('attributes', $item)) {
536
-                        $item['attributes'] = array();
536
+                        $item['attributes'] = array ();
537 537
                     }
538 538
 
539 539
                     if (!key_exists('values', $item)) {
540
-                        $item['values'] = array();
540
+                        $item['values'] = array ();
541 541
                     }
542 542
 
543 543
                     if ($groupItem->getMandatory() || $defaultValueCount < $fieldValueCount || $defaultValueCount == $fieldCount) {
Please login to merge, or discard this patch.