Passed
Pull Request — master (#195)
by
unknown
19:02
created
src/Configuration/TCA/tx_dpf_domain_model_storedsearch.php 2 patches
Spacing   +34 added lines, -34 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_storedsearch',
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,97 +36,97 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'title',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_editinglock.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'name, query',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => ',--palette--;;1, 
42
+    'types'     => array (
43
+        '1' => array ('showitem' => ',--palette--;;1, 
44 44
         name, query,      
45 45
         --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access'),
46 46
     ),
47
-    'palettes'  => array(
48
-        '1' => array('showitem' => ''),
47
+    'palettes'  => array (
48
+        '1' => array ('showitem' => ''),
49 49
     ),
50
-    'columns'   => array(
50
+    'columns'   => array (
51 51
 
52
-        'sys_language_uid'           => array(
52
+        'sys_language_uid'           => array (
53 53
             'exclude' => 1,
54 54
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
55
-            'config'  => array(
55
+            'config'  => array (
56 56
                 'type'                => 'select',
57 57
                 'renderType'          => 'selectSingle',
58 58
                 'foreign_table'       => 'sys_language',
59 59
                 'foreign_table_where' => 'ORDER BY sys_language.title',
60
-                'items'               => array(
61
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
62
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
60
+                'items'               => array (
61
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
62
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
63 63
                 ),
64 64
             ),
65 65
         ),
66
-        'l10n_parent'                => array(
66
+        'l10n_parent'                => array (
67 67
             'displayCond' => 'FIELD:sys_language_uid:>:0',
68 68
             'exclude'     => 1,
69 69
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
70
-            'config'      => array(
70
+            'config'      => array (
71 71
                 'type'                => 'select',
72 72
                 'renderType'          => 'selectSingle',
73
-                'items'               => array(
74
-                    array('', 0),
73
+                'items'               => array (
74
+                    array ('', 0),
75 75
                 ),
76 76
                 'foreign_table'       => 'tx_dpf_domain_model_storedsearch',
77 77
                 'foreign_table_where' => 'AND tx_dpf_domain_model_storedsearch.pid=###CURRENT_PID### AND tx_dpf_domain_model_storedsearch.sys_language_uid IN (-1,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
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
98
-            'config'  => array(
98
+            'config'  => array (
99 99
                 'type' => 'check',
100 100
             ),
101 101
         ),
102
-        'starttime'                  => array(
102
+        'starttime'                  => array (
103 103
             'exclude'   => 1,
104 104
             'l10n_mode' => 'mergeIfNotBlank',
105 105
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
106
-            'config'    => array(
106
+            'config'    => array (
107 107
                 'type'     => 'input',
108 108
                 'renderType' => 'inputDateTime',
109 109
                 'size'     => 13,
110 110
                 'eval'     => 'datetime',
111 111
                 'checkbox' => 0,
112 112
                 'default'  => 0,
113
-                'range'    => array(
113
+                'range'    => array (
114 114
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
115 115
                 ),
116 116
             ),
117 117
         ),
118
-        'endtime'                    => array(
118
+        'endtime'                    => array (
119 119
             'exclude'   => 1,
120 120
             'l10n_mode' => 'mergeIfNotBlank',
121 121
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
122
-            'config'    => array(
122
+            'config'    => array (
123 123
                 'type'     => 'input',
124 124
                 'renderType' => 'inputDateTime',
125 125
                 'size'     => 13,
126 126
                 'eval'     => 'datetime',
127 127
                 'checkbox' => 0,
128 128
                 'default'  => 0,
129
-                'range'    => array(
129
+                'range'    => array (
130 130
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
131 131
                 ),
132 132
             ),
@@ -138,20 +138,20 @@  discard block
 block discarded – undo
138 138
             ],
139 139
         ],
140 140
 
141
-        'name'                      => array(
141
+        'name'                      => array (
142 142
             'exclude' => 1,
143 143
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_storedsearch.name',
144
-            'config'  => array(
144
+            'config'  => array (
145 145
                 'type' => 'input',
146 146
                 'size' => 30,
147 147
                 'eval' => 'trim',
148 148
             ),
149 149
         ),
150 150
 
151
-        'query'                      => array(
151
+        'query'                      => array (
152 152
             'exclude' => 1,
153 153
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_storedsearch.query',
154
-            'config'  => array(
154
+            'config'  => array (
155 155
                 'type' => 'text',
156 156
                 'cols' => 40,
157 157
                 'rows' => 15,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         'tstamp'                   => 'tstamp',
23 23
         'crdate'                   => 'crdate',
24 24
         'cruser_id'                => 'cruser_id',
25
-        'versioningWS'             => true,
25
+        'versioningWS'             => TRUE,
26 26
         'languageField'            => 'sys_language_uid',
27 27
         'transOrigPointerField'    => 'l10n_parent',
28 28
         'transOrigDiffSourceField' => 'l10n_diffsource',
Please login to merge, or discard this patch.
src/Configuration/TCA/tx_dpf_domain_model_processnumber.php 2 patches
Spacing   +36 added lines, -36 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_processnumber',
22 22
         'label'                    => 'owner_id',
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,127 +36,127 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'owner_id, year, counter',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_processnumber.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, owner_id, year, counter'
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, owner_id, year, counter, --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, owner_id, year, counter, --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_processnumber',
75 75
                 'foreign_table_where' => 'AND tx_dpf_domain_model_processnumber.pid=###CURRENT_PID### AND tx_dpf_domain_model_processnumber.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
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
96
-            'config'  => array(
96
+            'config'  => array (
97 97
                 'type' => 'check',
98 98
             ),
99 99
         ),
100
-        'starttime'          => array(
100
+        'starttime'          => array (
101 101
             'exclude'   => 1,
102 102
             'l10n_mode' => 'mergeIfNotBlank',
103 103
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
104
-            'config'    => array(
104
+            'config'    => array (
105 105
                 'type'     => 'input',
106 106
                 'renderType' => 'inputDateTime',
107 107
                 'size'     => 13,
108 108
                 'eval'     => 'datetime',
109 109
                 'checkbox' => 0,
110 110
                 'default'  => 0,
111
-                'range'    => array(
111
+                'range'    => array (
112 112
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
113 113
                 ),
114 114
             ),
115 115
         ),
116
-        'endtime'            => array(
116
+        'endtime'            => array (
117 117
             'exclude'   => 1,
118 118
             'l10n_mode' => 'mergeIfNotBlank',
119 119
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
120
-            'config'    => array(
120
+            'config'    => array (
121 121
                 'type'     => 'input',
122 122
                 'renderType' => 'inputDateTime',
123 123
                 'size'     => 13,
124 124
                 'eval'     => 'datetime',
125 125
                 'checkbox' => 0,
126 126
                 'default'  => 0,
127
-                'range'    => array(
127
+                'range'    => array (
128 128
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
129 129
                 ),
130 130
             ),
131 131
         ),
132 132
 
133
-        'owner_id'           => array(
133
+        'owner_id'           => array (
134 134
             'exclude'   => 1,
135 135
             'l10n_mode' => 'exclude',
136 136
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_processnumber.owner_id',
137
-            'config'    => array(
137
+            'config'    => array (
138 138
                 'type' => 'input',
139 139
                 'size' => 4,
140 140
                 'max' => 4,
141 141
                 'eval' => 'trim,required',
142 142
             ),
143 143
         ),
144
-        'year'        => array(
144
+        'year'        => array (
145 145
             'exclude'   => 1,
146 146
             'l10n_mode' => 'exclude',
147 147
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_processnumber.year',
148
-            'config'    => array(
148
+            'config'    => array (
149 149
                 'type' => 'input',
150 150
                 'size' => 4,
151 151
                 'max' => 2,
152 152
                 'eval' => 'trim,required',
153 153
             ),
154 154
         ),
155
-        'counter'   => array(
155
+        'counter'   => array (
156 156
             'exclude'     => 1,
157 157
             'l10n_mode' => 'exclude',
158 158
             'label'       => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_processnumber.counter',
159
-            'config'      => array(
159
+            'config'      => array (
160 160
                 'type' => 'input',
161 161
                 'size' => 30,
162 162
                 'eval' => 'trim,required',
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         'tstamp'                   => 'tstamp',
23 23
         'crdate'                   => 'crdate',
24 24
         'cruser_id'                => 'cruser_id',
25
-        'versioningWS'             => true,
25
+        'versioningWS'             => TRUE,
26 26
         'languageField'            => 'sys_language_uid',
27 27
         'transOrigPointerField'    => 'l10n_parent',
28 28
         'transOrigDiffSourceField' => 'l10n_diffsource',
Please login to merge, or discard this patch.
src/Configuration/TCA/tx_dpf_domain_model_documenttransferlog.php 2 patches
Spacing   +42 added lines, -42 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_documenttransferlog',
22 22
         'label'                    => 'date',
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,106 +36,106 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'date, response, curl_error, document_uid, object_identifier, action',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_documenttransferlog.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date, response, curl_error, document_uid, object_identifier, action',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1,        
42
+    'types'     => array (
43
+        '1' => array ('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1,        
44 44
         date, response, curl_error, document_uid, object_identifier, action,
45 45
         --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'),
46 46
     ),
47
-    'palettes'  => array(
48
-        '1' => array('showitem' => ''),
47
+    'palettes'  => array (
48
+        '1' => array ('showitem' => ''),
49 49
     ),
50
-    'columns'   => array(
50
+    'columns'   => array (
51 51
 
52
-        'sys_language_uid'  => array(
52
+        'sys_language_uid'  => array (
53 53
             'exclude' => 1,
54 54
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
55
-            'config'  => array(
55
+            'config'  => array (
56 56
                 'type'                => 'select',
57 57
                 'renderType'          => 'selectSingle',
58 58
                 'foreign_table'       => 'sys_language',
59 59
                 'foreign_table_where' => 'ORDER BY sys_language.title',
60
-                'items'               => array(
61
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
62
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
60
+                'items'               => array (
61
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
62
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
63 63
                 ),
64 64
             ),
65 65
         ),
66
-        'l10n_parent'       => array(
66
+        'l10n_parent'       => array (
67 67
             'displayCond' => 'FIELD:sys_language_uid:>:0',
68 68
             'exclude'     => 1,
69 69
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
70
-            'config'      => array(
70
+            'config'      => array (
71 71
                 'type'                => 'select',
72 72
                 'renderType'          => 'selectSingle',
73
-                'items'               => array(
74
-                    array('', 0),
73
+                'items'               => array (
74
+                    array ('', 0),
75 75
                 ),
76 76
                 'foreign_table'       => 'tx_dpf_domain_model_documenttransferlog',
77 77
                 'foreign_table_where' => 'AND tx_dpf_domain_model_documenttransferlog.pid=###CURRENT_PID### AND tx_dpf_domain_model_documenttransferlog.sys_language_uid IN (-1,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
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
98
-            'config'  => array(
98
+            'config'  => array (
99 99
                 'type' => 'check',
100 100
             ),
101 101
         ),
102
-        'starttime'         => array(
102
+        'starttime'         => array (
103 103
             'exclude'   => 1,
104 104
             'l10n_mode' => 'mergeIfNotBlank',
105 105
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
106
-            'config'    => array(
106
+            'config'    => array (
107 107
                 'type'     => 'input',
108 108
                 'renderType' => 'inputDateTime',
109 109
                 'size'     => 13,
110 110
                 'eval'     => 'datetime',
111 111
                 'checkbox' => 0,
112 112
                 'default'  => 0,
113
-                'range'    => array(
113
+                'range'    => array (
114 114
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
115 115
                 ),
116 116
             ),
117 117
         ),
118
-        'endtime'           => array(
118
+        'endtime'           => array (
119 119
             'exclude'   => 1,
120 120
             'l10n_mode' => 'mergeIfNotBlank',
121 121
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
122
-            'config'    => array(
122
+            'config'    => array (
123 123
                 'type'     => 'input',
124 124
                 'renderType' => 'inputDateTime',
125 125
                 'size'     => 13,
126 126
                 'eval'     => 'datetime',
127 127
                 'checkbox' => 0,
128 128
                 'default'  => 0,
129
-                'range'    => array(
129
+                'range'    => array (
130 130
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
131 131
                 ),
132 132
             ),
133 133
         ),
134 134
 
135
-        'date'              => array(
135
+        'date'              => array (
136 136
             'exclude' => 1,
137 137
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.date',
138
-            'config'  => array(
138
+            'config'  => array (
139 139
                 'type'     => 'input',
140 140
                 'renderType' => 'inputDateTime',
141 141
                 'size'     => 10,
@@ -144,48 +144,48 @@  discard block
 block discarded – undo
144 144
                 'default'  => time(),
145 145
             ),
146 146
         ),
147
-        'response'          => array(
147
+        'response'          => array (
148 148
             'exclude' => 1,
149 149
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.response',
150
-            'config'  => array(
150
+            'config'  => array (
151 151
                 'type' => 'text',
152 152
                 'cols' => 40,
153 153
                 'rows' => 15,
154 154
                 'eval' => 'trim',
155 155
             ),
156 156
         ),
157
-        'curl_error'        => array(
157
+        'curl_error'        => array (
158 158
             'exclude' => 1,
159 159
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.curl_error',
160
-            'config'  => array(
160
+            'config'  => array (
161 161
                 'type' => 'text',
162 162
                 'cols' => 40,
163 163
                 'rows' => 15,
164 164
                 'eval' => 'trim',
165 165
             ),
166 166
         ),
167
-        'document_uid'      => array(
167
+        'document_uid'      => array (
168 168
             'exclude' => 1,
169 169
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.document_uid',
170
-            'config'  => array(
170
+            'config'  => array (
171 171
                 'type' => 'input',
172 172
                 'size' => 30,
173 173
                 'max'  => 255,
174 174
             ),
175 175
         ),
176
-        'object_identifier' => array(
176
+        'object_identifier' => array (
177 177
             'exclude' => 1,
178 178
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.object_identifier',
179
-            'config'  => array(
179
+            'config'  => array (
180 180
                 'type' => 'input',
181 181
                 'size' => 30,
182 182
                 'max'  => 255,
183 183
             ),
184 184
         ),
185
-        'action'            => array(
185
+        'action'            => array (
186 186
             'exclude' => 1,
187 187
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_documenttransferlog.action',
188
-            'config'  => array(
188
+            'config'  => array (
189 189
                 'type' => 'input',
190 190
                 'size' => 30,
191 191
                 'max'  => 255,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         'tstamp'                   => 'tstamp',
23 23
         'crdate'                   => 'crdate',
24 24
         'cruser_id'                => 'cruser_id',
25
-        'versioningWS'             => true,
25
+        'versioningWS'             => TRUE,
26 26
         'languageField'            => 'sys_language_uid',
27 27
         'transOrigPointerField'    => 'l10n_parent',
28 28
         'transOrigDiffSourceField' => 'l10n_diffsource',
Please login to merge, or discard this patch.
src/Configuration/TCA/tx_dpf_domain_model_file.php 2 patches
Spacing   +52 added lines, -52 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_file',
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',
@@ -36,195 +36,195 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'title, label, download, archive, file_group_deleted, content_type, link, status, datastream_identifier, primary_file, document',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_file.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, label, download, archive, file_group_deleted, content_type, link, status, datastream_identifier, primary_file, document',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1, title, label, download, archive, file_group_deleted, content_type, link, status, datastream_identifier, primary_file, document, --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, title, label, download, archive, file_group_deleted, content_type, link, status, datastream_identifier, primary_file, document, --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_file',
75 75
                 'foreign_table_where' => 'AND tx_dpf_domain_model_file.pid=###CURRENT_PID### AND tx_dpf_domain_model_file.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
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
96
-            'config'  => array(
96
+            'config'  => array (
97 97
                 'type' => 'check',
98 98
             ),
99 99
         ),
100
-        'starttime'             => array(
100
+        'starttime'             => array (
101 101
             'exclude'   => 1,
102 102
             'l10n_mode' => 'mergeIfNotBlank',
103 103
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
104
-            'config'    => array(
104
+            'config'    => array (
105 105
                 'type'     => 'input',
106 106
                 'renderType' => 'inputDateTime',
107 107
                 'size'     => 13,
108 108
                 'eval'     => 'datetime',
109 109
                 'checkbox' => 0,
110 110
                 'default'  => 0,
111
-                'range'    => array(
111
+                'range'    => array (
112 112
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
113 113
                 ),
114 114
             ),
115 115
         ),
116
-        'endtime'               => array(
116
+        'endtime'               => array (
117 117
             'exclude'   => 1,
118 118
             'l10n_mode' => 'mergeIfNotBlank',
119 119
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
120
-            'config'    => array(
120
+            'config'    => array (
121 121
                 'type'     => 'input',
122 122
                 'renderType' => 'inputDateTime',
123 123
                 'size'     => 13,
124 124
                 'eval'     => 'datetime',
125 125
                 'checkbox' => 0,
126 126
                 'default'  => 0,
127
-                'range'    => array(
127
+                'range'    => array (
128 128
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
129 129
                 ),
130 130
             ),
131 131
         ),
132 132
 
133
-        'title'                 => array(
133
+        'title'                 => array (
134 134
             'exclude' => 1,
135 135
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.title',
136
-            'config'  => array(
136
+            'config'  => array (
137 137
                 'type' => 'input',
138 138
                 'size' => 30,
139 139
                 'eval' => 'trim',
140 140
             ),
141 141
         ),
142 142
 
143
-        'label'                 => array(
143
+        'label'                 => array (
144 144
             'exclude' => 1,
145 145
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.label',
146
-            'config'  => array(
146
+            'config'  => array (
147 147
                 'type' => 'input',
148 148
                 'size' => 30,
149 149
                 'eval' => 'trim',
150 150
             ),
151 151
         ),
152
-        'download'              => array(
152
+        'download'              => array (
153 153
             'exclude'   => 1,
154 154
             'l10n_mode' => 'exclude',
155 155
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.download',
156
-            'config'    => array(
156
+            'config'    => array (
157 157
                 'type'    => 'check',
158 158
                 'default' => 0,
159 159
             ),
160 160
         ),
161
-        'archive'               => array(
161
+        'archive'               => array (
162 162
             'exclude'   => 1,
163 163
             'l10n_mode' => 'exclude',
164 164
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.archive',
165
-            'config'    => array(
165
+            'config'    => array (
166 166
                 'type'    => 'check',
167 167
                 'default' => 0,
168 168
             ),
169 169
         ),
170
-        'file_group_deleted'               => array(
170
+        'file_group_deleted'               => array (
171 171
             'exclude'   => 1,
172 172
             'l10n_mode' => 'exclude',
173 173
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.file_group_deleted',
174
-            'config'    => array(
174
+            'config'    => array (
175 175
                 'type'    => 'check',
176 176
                 'default' => 0,
177 177
             ),
178 178
         ),
179
-        'content_type'          => array(
179
+        'content_type'          => array (
180 180
             'exclude' => 1,
181 181
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.content_type',
182
-            'config'  => array(
182
+            'config'  => array (
183 183
                 'type' => 'input',
184 184
                 'size' => 30,
185 185
                 'eval' => 'trim',
186 186
             ),
187 187
         ),
188
-        'link'                  => array(
188
+        'link'                  => array (
189 189
             'exclude' => 1,
190 190
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.link',
191
-            'config'  => array(
191
+            'config'  => array (
192 192
                 'type' => 'input',
193 193
                 'size' => 30,
194 194
                 'eval' => 'trim',
195 195
             ),
196 196
         ),
197
-        'status'                => array(
197
+        'status'                => array (
198 198
             'exclude' => 1,
199 199
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.status',
200
-            'config'  => array(
200
+            'config'  => array (
201 201
                 'type' => 'input',
202 202
                 'size' => 30,
203 203
                 'eval' => 'trim',
204 204
             ),
205 205
         ),
206
-        'datastream_identifier' => array(
206
+        'datastream_identifier' => array (
207 207
             'exclude' => 1,
208 208
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.datastream_identifier',
209
-            'config'  => array(
209
+            'config'  => array (
210 210
                 'type' => 'input',
211 211
                 'size' => 30,
212 212
                 'eval' => 'trim',
213 213
             ),
214 214
         ),
215
-        'primary_file'          => array(
215
+        'primary_file'          => array (
216 216
             'exclude' => 1,
217 217
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.primary_file',
218
-            'config'  => array(
218
+            'config'  => array (
219 219
                 'type'    => 'check',
220 220
                 'default' => 0,
221 221
             ),
222 222
         ),
223 223
 
224
-        'document'              => array(
224
+        'document'              => array (
225 225
             'exclude' => 1,
226 226
             'label'   => 'LLL:EXT:dpf2/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_file.document',
227
-            'config'  => array(
227
+            'config'  => array (
228 228
                 'type'          => 'select',
229 229
                 'renderType'    => 'selectSingle',
230 230
                 'foreign_table' => 'tx_dpf_domain_model_document',
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         'tstamp'                   => 'tstamp',
23 23
         'crdate'                   => 'crdate',
24 24
         'cruser_id'                => 'cruser_id',
25
-        'versioningWS'             => true,
25
+        'versioningWS'             => TRUE,
26 26
         'languageField'            => 'sys_language_uid',
27 27
         'transOrigPointerField'    => 'l10n_parent',
28 28
         'transOrigDiffSourceField' => 'l10n_diffsource',
Please login to merge, or discard this patch.
src/ext_emconf.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * Extension Manager/Repository config file for ext: "dpf"
17 17
  ***************************************************************/
18 18
 
19
-$EM_CONF[$_EXTKEY] = array(
19
+$EM_CONF[$_EXTKEY] = array (
20 20
     'title'            => 'Qucosa Publication',
21 21
     'description'      => '',
22 22
     'category'         => 'plugin',
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
     'createDirs'       => 'uploads/tx_dpf',
29 29
     'clearCacheOnLoad' => 0,
30 30
     'version'          => '4.0.0',
31
-    'constraints'      => array(
32
-        'depends'   => array(
31
+    'constraints'      => array (
32
+        'depends'   => array (
33 33
             'typo3' => '8.7.0-8.7.99',
34 34
         ),
35
-        'conflicts' => array(
35
+        'conflicts' => array (
36 36
         ),
37
-        'suggests'  => array(
37
+        'suggests'  => array (
38 38
         ),
39 39
     ),
40 40
 );
Please login to merge, or discard this patch.
src/class.ext_update.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function access() {
32 32
         $registry = GeneralUtility::makeInstance(Registry::class);
33
-        $version = $registry->get('tx_dpf','updatescript-'.self::VERSION);
33
+        $version = $registry->get('tx_dpf', 'updatescript-' . self::VERSION);
34 34
 
35 35
         // If the version has already been registered in the table sys_register the updatscript will be blocked.
36 36
         if ($version) {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function main() {
44 44
         // This script registers itself into the sys_registry table to prevent a re-run with the same version number.
45 45
         $registry = GeneralUtility::makeInstance(Registry::class);
46
-        $version = $registry->get('tx_dpf','updatescript-'.self::VERSION);
46
+        $version = $registry->get('tx_dpf', 'updatescript-' . self::VERSION);
47 47
         if ($version) {
48 48
             return FALSE;
49 49
         } else {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
             $GLOBALS['TYPO3_DB']->sql_query("update tx_dpf_domain_model_document set creator = owner");
56 56
 
57
-            $registry->set('tx_dpf','updatescript-'.self::VERSION,TRUE);
57
+            $registry->set('tx_dpf', 'updatescript-' . self::VERSION, TRUE);
58 58
         }
59 59
 
60 60
         return "The extension has been successfully updated.";
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             foreach ($repository->crossClientFindAll() as $record) {
120 120
                 if ($record['backend_only']) {
121 121
                     $recordObject = $repository->findByUid($record['uid']);
122
-                    $recordObject->setAccessRestrictionRoles(array(Security::ROLE_LIBRARIAN, Security::ROLE_RESEARCHER));
122
+                    $recordObject->setAccessRestrictionRoles(array (Security::ROLE_LIBRARIAN, Security::ROLE_RESEARCHER));
123 123
                     $repository->update($recordObject);
124 124
                 }
125 125
             }
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,16 +60,14 @@  discard block
 block discarded – undo
60 60
 }
61 61
 
62 62
 
63
-class UpdateState
64
-{
63
+class UpdateState {
65 64
     const OBJECT_STATE_NEW             = "NEW";
66 65
     const OBJECT_STATE_ACTIVE          = "ACTIVE";
67 66
     const OBJECT_STATE_INACTIVE        = "INACTIVE";
68 67
     const OBJECT_STATE_DELETED         = "DELETED";
69 68
     const OBJECT_STATE_LOCALLY_DELETED = "LOCALLY_DELETED";
70 69
 
71
-    public function execute()
72
-    {
70
+    public function execute() {
73 71
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
74 72
         $documentRepository = $objectManager->get(DocumentRepository::class);
75 73
 
@@ -104,8 +102,7 @@  discard block
 block discarded – undo
104 102
     }
105 103
 }
106 104
 
107
-class UpdateAccessRestrictions
108
-{
105
+class UpdateAccessRestrictions {
109 106
     public function execute() {
110 107
 
111 108
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
Please login to merge, or discard this patch.
src/Classes/Security/Voter.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @var array
34 34
      */
35
-    protected $attributes = array();
35
+    protected $attributes = array ();
36 36
 
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 use TYPO3\CMS\Core\Utility\GeneralUtility;
18 18
 use TYPO3\CMS\Extbase\Object\ObjectManager;
19 19
 
20
-abstract class Voter
21
-{
20
+abstract class Voter {
22 21
     /**
23 22
      * security
24 23
      *
@@ -60,8 +59,7 @@  discard block
 block discarded – undo
60 59
      *
61 60
      * @return array
62 61
      */
63
-    public static function getVoters()
64
-    {
62
+    public static function getVoters() {
65 63
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
66 64
         $voters[] = $objectManager->get(\EWW\Dpf\Security\DocumentVoter::class);
67 65
         return $voters;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @var \EWW\Dpf\Security\Security
26 26
      * @inject
27 27
      */
28
-    protected $security = null;
28
+    protected $security = NULL;
29 29
 
30 30
     /**
31 31
      * supported attributes
Please login to merge, or discard this patch.
src/Classes/Security/Security.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * @var \EWW\Dpf\Domain\Repository\FrontendUserRepository
23 23
      * @inject
24 24
      */
25
-    protected $frontendUserRepository = null;
25
+    protected $frontendUserRepository = NULL;
26 26
 
27 27
     const ROLE_ANONYMOUS = "ROLE_ANONYMOUS";
28 28
     const ROLE_RESEARCHER = "ROLE_RESEARCHER";
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class Security
18
-{
17
+class Security {
19 18
     /**
20 19
      * frontendUserRepository
21 20
      *
@@ -34,8 +33,7 @@  discard block
 block discarded – undo
34 33
      *
35 34
      * @return null|\EWW\Dpf\Domain\Model\FrontendUser
36 35
      */
37
-    public function getUser()
38
-    {
36
+    public function getUser() {
39 37
         $token = $GLOBALS['_GET']['tx_dpf_rest_api']['token'];
40 38
         $user = $GLOBALS['TSFE']->fe_user->user;
41 39
         if (!empty($user) && is_array($user) && array_key_exists('uid', $user)) {
Please login to merge, or discard this patch.
src/Classes/Security/DocumentVoter.php 4 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function __construct()
66 66
     {
67
-       $this->workflow = DocumentWorkflow::getWorkflow();
67
+        $this->workflow = DocumentWorkflow::getWorkflow();
68 68
     }
69 69
 
70 70
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             $this->workflow->can($document, \EWW\Dpf\Domain\Workflow\DocumentWorkflow::TRANSITION_REGISTER) &&
310 310
             $document->getCreator() === $this->security->getUser()->getUid()
311 311
         ) {
312
-           return TRUE;
312
+            return TRUE;
313 313
         }
314 314
 
315 315
         return FALSE;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     protected static function getAttributes()
77 77
     {
78
-        return array(
78
+        return array (
79 79
             self::CREATE,
80 80
             self::CREATE_REGISTER,
81 81
             self::UPDATE,
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
     {
462 462
         if ($this->security->getUser()->getUserRole() === Security::ROLE_RESEARCHER) {
463 463
 
464
-            $objectManager =GeneralUtility::makeInstance(ObjectManager::class);
464
+            $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
465 465
             $documentRepository = $objectManager->get(DocumentRepository::class);
466 466
 
467 467
             $linkedDocument = $documentRepository->findOneByLinkedUid($document->getUid());
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
      */
562 562
     protected function isDocumentLocked($document)
563 563
     {
564
-        $identifier = $document->getObjectIdentifier()? $document->getObjectIdentifier() : $document->getUid();
564
+        $identifier = $document->getObjectIdentifier() ? $document->getObjectIdentifier() : $document->getUid();
565 565
         return $this->editingLockService->isLocked($identifier, $this->security->getUser()->getUid());
566 566
     }
567 567
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     const CREATE = "DOCUMENT_CREATE";
28 28
     const CREATE_REGISTER = "DOCUMENT_CREATE_REGISTER";
29 29
     const UPDATE = "DOCUMENT_UPDATE";
30
-    const LIST = "DOCUMENT_LIST";
30
+    const list = "DOCUMENT_LIST";
31 31
     const LIST_REGISTERED = "DOCUMENT_LIST_REGISTERED";
32 32
     const LIST_IN_PROGRESS = "DOCUMENT_LIST_IN_PROGRESS";
33 33
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @var \EWW\Dpf\Services\Document\EditingLockService
56 56
      * @inject
57 57
      */
58
-    protected $editingLockService = null;
58
+    protected $editingLockService = NULL;
59 59
 
60 60
     /**
61 61
      * workflow
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             self::CREATE,
82 82
             self::CREATE_REGISTER,
83 83
             self::UPDATE,
84
-            self::LIST,
84
+            self::list,
85 85
             self::LIST_REGISTERED,
86 86
             self::LIST_IN_PROGRESS,
87 87
             self::DISCARD,
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 return $this->canUpdate($subject);
152 152
                 break;
153 153
 
154
-            case self::LIST:
154
+            case self::list:
155 155
                 return $this->defaultAccess();
156 156
                 break;
157 157
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             ]
237 237
         );
238 238
 
239
-        return false;
239
+        return FALSE;
240 240
     }
241 241
 
242 242
     /**
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
             );
461 461
         }
462 462
 
463
-        return false;
463
+        return FALSE;
464 464
     }
465 465
 
466 466
     /**
Please login to merge, or discard this patch.
Braces   +23 added lines, -46 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
22 22
 use TYPO3\CMS\Core\Log\LogManager;
23 23
 
24 24
 
25
-class DocumentVoter extends Voter
26
-{
25
+class DocumentVoter extends Voter {
27 26
     const CREATE = "DOCUMENT_CREATE";
28 27
     const CREATE_REGISTER = "DOCUMENT_CREATE_REGISTER";
29 28
     const UPDATE = "DOCUMENT_UPDATE";
@@ -64,8 +63,7 @@  discard block
 block discarded – undo
64 63
      */
65 64
     protected $workflow;
66 65
 
67
-    public function __construct()
68
-    {
66
+    public function __construct() {
69 67
        $this->workflow = DocumentWorkflow::getWorkflow();
70 68
     }
71 69
 
@@ -75,8 +73,7 @@  discard block
 block discarded – undo
75 73
      *
76 74
      * @return array
77 75
      */
78
-    protected static function getAttributes()
79
-    {
76
+    protected static function getAttributes() {
80 77
         return array(
81 78
             self::CREATE,
82 79
             self::CREATE_REGISTER,
@@ -111,8 +108,7 @@  discard block
 block discarded – undo
111 108
      * @param mixed $subject
112 109
      * @return mixed
113 110
      */
114
-    public static function supports($attribute, $subject = NULL)
115
-    {
111
+    public static function supports($attribute, $subject = NULL) {
116 112
         if (!in_array($attribute, self::getAttributes())) {
117 113
             return FALSE;
118 114
         }
@@ -131,8 +127,7 @@  discard block
 block discarded – undo
131 127
      * @param mixed $subject
132 128
      * @return mixed
133 129
      */
134
-    public function voteOnAttribute($attribute, $subject = NULL)
135
-    {
130
+    public function voteOnAttribute($attribute, $subject = NULL) {
136 131
         if (!$subject instanceof Document) {
137 132
             return FALSE;
138 133
         }
@@ -242,8 +237,7 @@  discard block
 block discarded – undo
242 237
     /**
243 238
      * @return bool
244 239
      */
245
-    protected function defaultAccess()
246
-    {
240
+    protected function defaultAccess() {
247 241
         return (
248 242
             $this->security->getUser()->getUserRole() === Security::ROLE_LIBRARIAN ||
249 243
             $this->security->getUser()->getUserRole() === Security::ROLE_RESEARCHER
@@ -253,8 +247,7 @@  discard block
 block discarded – undo
253 247
     /**
254 248
      * @return bool
255 249
      */
256
-    protected function librarianOnly()
257
-    {
250
+    protected function librarianOnly() {
258 251
         return $this->security->getUser()->getUserRole() === Security::ROLE_LIBRARIAN;
259 252
     }
260 253
 
@@ -262,8 +255,7 @@  discard block
 block discarded – undo
262 255
      * @param \EWW\Dpf\Domain\Model\Document $document
263 256
      * @return bool
264 257
      */
265
-    protected function canDiscard($document)
266
-    {
258
+    protected function canDiscard($document) {
267 259
         if ($this->isDocumentLocked($document)) {
268 260
             return FALSE;
269 261
         }
@@ -286,8 +278,7 @@  discard block
 block discarded – undo
286 278
      * @param \EWW\Dpf\Domain\Model\Document $document
287 279
      * @return bool
288 280
      */
289
-    protected function canShowDetails($document)
290
-    {
281
+    protected function canShowDetails($document) {
291 282
         if ($this->security->getUser()->getUserRole() === Security::ROLE_LIBRARIAN) {
292 283
             return (
293 284
                 $document->getState() !== DocumentWorkflow::STATE_NEW_NONE ||
@@ -313,8 +304,7 @@  discard block
 block discarded – undo
313 304
      * @param \EWW\Dpf\Domain\Model\Document $document
314 305
      * @return bool
315 306
      */
316
-    protected function canRegister($document)
317
-    {
307
+    protected function canRegister($document) {
318 308
         if (
319 309
             $this->workflow->can($document, \EWW\Dpf\Domain\Workflow\DocumentWorkflow::TRANSITION_REGISTER) &&
320 310
             $document->getCreator() === $this->security->getUser()->getUid()
@@ -330,8 +320,7 @@  discard block
 block discarded – undo
330 320
      * @param \EWW\Dpf\Domain\Model\Document $document
331 321
      * @return bool
332 322
      */
333
-    protected function canReleasePublish($document)
334
-    {
323
+    protected function canReleasePublish($document) {
335 324
         if ($this->isDocumentLocked($document)) {
336 325
             return FALSE;
337 326
         }
@@ -349,8 +338,7 @@  discard block
 block discarded – undo
349 338
      * @param \EWW\Dpf\Domain\Model\Document $document
350 339
      * @return bool
351 340
      */
352
-    protected function canReleaseActivate($document)
353
-    {
341
+    protected function canReleaseActivate($document) {
354 342
         if ($this->isDocumentLocked($document)) {
355 343
             return FALSE;
356 344
         }
@@ -367,8 +355,7 @@  discard block
 block discarded – undo
367 355
      * @param \EWW\Dpf\Domain\Model\Document $document
368 356
      * @return bool
369 357
      */
370
-    protected function canDeleteLocally($document)
371
-    {
358
+    protected function canDeleteLocally($document) {
372 359
         if ($this->isDocumentLocked($document)) {
373 360
             return FALSE;
374 361
         }
@@ -393,8 +380,7 @@  discard block
 block discarded – undo
393 380
      * @param \EWW\Dpf\Domain\Model\Document $document
394 381
      * @return bool
395 382
      */
396
-    protected function canDeleteWorkingCopy($document)
397
-    {
383
+    protected function canDeleteWorkingCopy($document) {
398 384
         if ($document->isTemporary() || $this->isDocumentLocked($document)) {
399 385
             return FALSE;
400 386
         }
@@ -411,8 +397,7 @@  discard block
 block discarded – undo
411 397
      * @param \EWW\Dpf\Domain\Model\Document $document
412 398
      * @return bool
413 399
      */
414
-    protected function canEdit($document)
415
-    {
400
+    protected function canEdit($document) {
416 401
         if ($this->isDocumentLocked($document)) {
417 402
             return FALSE;
418 403
         }
@@ -439,8 +424,7 @@  discard block
 block discarded – undo
439 424
      * @param \EWW\Dpf\Domain\Model\Document $document
440 425
      * @return bool
441 426
      */
442
-    protected function canUpdate($document)
443
-    {
427
+    protected function canUpdate($document) {
444 428
         if ($this->isDocumentLocked($document)) {
445 429
             return FALSE;
446 430
         }
@@ -467,8 +451,7 @@  discard block
 block discarded – undo
467 451
      * @param \EWW\Dpf\Domain\Model\Document $document
468 452
      * @return bool
469 453
      */
470
-    protected function canSuggestRestore($document)
471
-    {
454
+    protected function canSuggestRestore($document) {
472 455
         if ($this->security->getUser()->getUserRole() === Security::ROLE_RESEARCHER) {
473 456
 
474 457
             $objectManager =GeneralUtility::makeInstance(ObjectManager::class);
@@ -493,8 +476,7 @@  discard block
 block discarded – undo
493 476
      * @param \EWW\Dpf\Domain\Model\Document $document
494 477
      * @return bool
495 478
      */
496
-    protected function canSuggestModification($document)
497
-    {
479
+    protected function canSuggestModification($document) {
498 480
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
499 481
         $documentRepository = $objectManager->get(DocumentRepository::class);
500 482
 
@@ -523,8 +505,7 @@  discard block
 block discarded – undo
523 505
      * @param \EWW\Dpf\Domain\Model\Document $document
524 506
      * @return bool
525 507
      */
526
-    protected function canSuggestionAccept($document)
527
-    {
508
+    protected function canSuggestionAccept($document) {
528 509
         // TODO: What if a document should be restored?
529 510
 
530 511
         return $this->librarianOnly();
@@ -534,8 +515,7 @@  discard block
 block discarded – undo
534 515
      * @param \EWW\Dpf\Domain\Model\Document $document
535 516
      * @return bool
536 517
      */
537
-    protected function canPostpone($document)
538
-    {
518
+    protected function canPostpone($document) {
539 519
         if ($this->isDocumentLocked($document)) {
540 520
             return FALSE;
541 521
         }
@@ -552,8 +532,7 @@  discard block
 block discarded – undo
552 532
      * @param \EWW\Dpf\Domain\Model\Document $document
553 533
      * @return bool
554 534
      */
555
-    protected function canCreateRegister($document)
556
-    {
535
+    protected function canCreateRegister($document) {
557 536
         if ($this->security->getUser()->getUserRole()) {
558 537
             return FALSE;
559 538
         }
@@ -569,8 +548,7 @@  discard block
 block discarded – undo
569 548
      * @param \EWW\Dpf\Domain\Model\Document $document
570 549
      * @return bool
571 550
      */
572
-    protected function canDuplicate($document)
573
-    {
551
+    protected function canDuplicate($document) {
574 552
         if ($this->security->getUser()->getUserRole() === Security::ROLE_LIBRARIAN) {
575 553
             return (
576 554
                 $document->getState() !== DocumentWorkflow::STATE_NEW_NONE ||
@@ -592,8 +570,7 @@  discard block
 block discarded – undo
592 570
      * @param \EWW\Dpf\Domain\Model\Document $document
593 571
      * @return bool
594 572
      */
595
-    protected function isDocumentLocked($document)
596
-    {
573
+    protected function isDocumentLocked($document) {
597 574
         $identifier = $document->getObjectIdentifier()? $document->getObjectIdentifier() : $document->getUid();
598 575
         return $this->editingLockService->isLocked($identifier, $this->security->getUser()->getUid());
599 576
     }
Please login to merge, or discard this patch.