Passed
Pull Request — master (#155)
by
unknown
09:48
created
Classes/Controller/AbstractSearchController.php 2 patches
Braces   +8 added lines, -16 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 EWW\Dpf\Services\ElasticSearch;
19 19
 
20
-abstract class AbstractSearchController extends \EWW\Dpf\Controller\AbstractController
21
-{
20
+abstract class AbstractSearchController extends \EWW\Dpf\Controller\AbstractController {
22 21
     // search terms
23 22
     private static $terms   = ['_id', 'OWNER_ID', 'submitter', 'project'];
24 23
 
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
      * @param  array $query elasticsearch search query
31 30
      * @return array        results
32 31
      */
33
-    public function getResultList($query, $type)
34
-    {
32
+    public function getResultList($query, $type) {
35 33
 
36 34
         $elasticSearch = $this->objectManager->get(ElasticSearch::class);
37 35
         $results = $elasticSearch->search($query, $type);
@@ -44,8 +42,7 @@  discard block
 block discarded – undo
44 42
      * @param  string $searchString
45 43
      * @return array query
46 44
      */
47
-    public function searchFulltext($searchString)
48
-    {
45
+    public function searchFulltext($searchString) {
49 46
         // don't return query if searchString is empty
50 47
         if (empty($searchString)) {
51 48
             return null;
@@ -68,8 +65,7 @@  discard block
 block discarded – undo
68 65
      * build array for elasticsearch
69 66
      * @return array Elasticsearch query array
70 67
      */
71
-    public function extendedSearch($searchArray = array())
72
-    {
68
+    public function extendedSearch($searchArray = array()) {
73 69
 
74 70
         $query  = array();
75 71
         $filter = array();
@@ -116,8 +112,7 @@  discard block
 block discarded – undo
116 112
      * @param array Elasticsearch query array
117 113
      * @return array Elasticsearch queryFilter array
118 114
      */
119
-    public function resultsFilter($query, $showDeleted = false)
120
-    {
115
+    public function resultsFilter($query, $showDeleted = false) {
121 116
 
122 117
         $queryFilter = array();
123 118
 
@@ -201,8 +196,7 @@  discard block
 block discarded – undo
201 196
      * @param  bool      $intervalEnd Fills missing values with the maximum possible date if true
202 197
      * @return DateTime               Determined date
203 198
      */
204
-    public function convertFormDate($dateString, $intervalEnd = false)
205
-    {
199
+    public function convertFormDate($dateString, $intervalEnd = false) {
206 200
         try {
207 201
             if (strlen($dateString) == 4) {
208 202
                 // assuming year
@@ -223,8 +217,7 @@  discard block
 block discarded – undo
223 217
      * @param $string
224 218
      * @return mixed
225 219
      */
226
-    private function escapeQuery($string)
227
-    {
220
+    private function escapeQuery($string) {
228 221
         $luceneReservedCharacters = preg_quote('+-&|!(){}[]^"~?:\\');
229 222
         $string                   = preg_replace_callback(
230 223
             '/([' . $luceneReservedCharacters . '])/',
@@ -242,8 +235,7 @@  discard block
 block discarded – undo
242 235
      * @param $date
243 236
      * @return string
244 237
      */
245
-    public function formatDate($date)
246
-    {
238
+    public function formatDate($date) {
247 239
         // convert date from dd.mm.yyy to yyyy-dd-mm
248 240
         $date = explode(".", $date);
249 241
         return $date[2] . '-' . $date[1] . '-' . $date[0];
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -69,21 +69,21 @@  discard block
 block discarded – undo
69 69
      * build array for elasticsearch
70 70
      * @return array Elasticsearch query array
71 71
      */
72
-    public function extendedSearch($searchArray = array())
72
+    public function extendedSearch($searchArray = array ())
73 73
     {
74 74
 
75
-        $query  = array();
76
-        $filter = array();
75
+        $query  = array ();
76
+        $filter = array ();
77 77
         foreach ($searchArray as $key => $qry) {
78 78
             $qry = trim($qry);
79 79
 
80 80
             if (!empty($qry) && in_array($key, self::$matches)) {
81 81
 
82
-                $query['body']['query']['bool']['must'][] = array('match' => array($key => $qry));
82
+                $query['body']['query']['bool']['must'][] = array ('match' => array ($key => $qry));
83 83
 
84 84
             } elseif (!empty($qry) && in_array($key, self::$terms)) {
85 85
 
86
-                $query['body']['query']['bool']['must'][] = array('term' => array($key => $qry));
86
+                $query['body']['query']['bool']['must'][] = array ('term' => array ($key => $qry));
87 87
 
88 88
             } elseif (!empty($qry) && $key == 'from') {
89 89
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         if (isset($filter['gte']) || isset($filter['lte'])) {
104 104
 
105
-            $query['body']['query']['bool']['must'][] = array('range' => array('distribution_date' => $filter));
105
+            $query['body']['query']['bool']['must'][] = array ('range' => array ('distribution_date' => $filter));
106 106
 
107 107
         }
108 108
 
@@ -120,19 +120,19 @@  discard block
 block discarded – undo
120 120
     public function resultsFilter($query, $showDeleted = false)
121 121
     {
122 122
 
123
-        $queryFilter = array();
123
+        $queryFilter = array ();
124 124
 
125 125
         // Frontend only
126 126
         $searchResultsFilter = $this->settings['searchResultsFilter'];
127
-        if(!empty($searchResultsFilter)) {
127
+        if (!empty($searchResultsFilter)) {
128 128
 
129 129
             // add doctypes
130
-            if($searchResultsFilter['doctype']) {
130
+            if ($searchResultsFilter['doctype']) {
131 131
 
132 132
                 $uids = GeneralUtility::trimExplode(',', $searchResultsFilter['doctype']);
133 133
                 $documentTypeRepository = $this->documentTypeRepository;
134
-                $documentTypes = array();
135
-                foreach($uids as $uid) {
134
+                $documentTypes = array ();
135
+                foreach ($uids as $uid) {
136 136
                     $documentType = $documentTypeRepository->findByUid($uid);
137 137
                     $documentTypes[] = $documentType->getName();
138 138
                 };
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             }
141 141
 
142 142
             // add date filter
143
-            $dateFilter = array();
143
+            $dateFilter = array ();
144 144
             if ($searchResultsFilter['from']) {
145 145
 
146 146
                 $from     = date('d.m.Y', $searchResultsFilter['from']);
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
             if ($searchResultsFilter['till']) {
154 154
 
155
-                $till          = date('d.m.Y', $searchResultsFilter['till']);
155
+                $till = date('d.m.Y', $searchResultsFilter['till']);
156 156
                 $dateTime = $this->convertFormDate($till, true);
157 157
                 $dateFilter['lte'] = $dateTime->format('Y-m-d');
158 158
                 unset($searchResultsFilter['till']);
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
161 161
 
162 162
             if (isset($dateFilter['gte']) || isset($dateFilter['lte'])) {
163 163
 
164
-                $queryFilter['body']['query']['bool']['must'][] = array('range' => array('distribution_date' => $dateFilter));
164
+                $queryFilter['body']['query']['bool']['must'][] = array ('range' => array ('distribution_date' => $dateFilter));
165 165
 
166 166
             }
167 167
 
168 168
             foreach ($searchResultsFilter as $key => $qry) {
169 169
 
170
-                if(!empty($qry)) {
171
-                    $queryFilter['body']['query']['bool']['must'][] = array('match' => array($key => $qry));
170
+                if (!empty($qry)) {
171
+                    $queryFilter['body']['query']['bool']['must'][] = array ('match' => array ($key => $qry));
172 172
                 }
173 173
 
174 174
             }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         }
177 177
 
178 178
         // document must be active
179
-        if($showDeleted == false) {
179
+        if ($showDeleted == false) {
180 180
 
181 181
             $queryFilter['body']['query']['bool']['must'][]['term']['STATE'] = 'A';
182 182
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $luceneReservedCharacters = preg_quote('+-&|!(){}[]^"~?:\\');
235 235
         $string                   = preg_replace_callback(
236 236
             '/([' . $luceneReservedCharacters . '])/',
237
-            function ($matches) {
237
+            function($matches) {
238 238
                 return '\\' . $matches[0];
239 239
             },
240 240
             $string
Please login to merge, or discard this patch.
ext_localconf.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,27 +22,27 @@  discard block
 block discarded – undo
22 22
     require_once $composerAutoloadFile;
23 23
 }
24 24
 
25
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array(
25
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array (
26 26
     'extension'   => $_EXTKEY,
27 27
     'title'       => 'Qucosa-Dokumente ans Repository übertragen.',
28 28
     'description' => '',
29 29
 );
30 30
 
31 31
 if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) {
32
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array();
32
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array ();
33 33
 }
34 34
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'EWW\Dpf\Command\TransferCommandController';
35 35
 
36 36
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
37 37
     'EWW.' . $_EXTKEY,
38 38
     'Qucosaform',
39
-    array(
39
+    array (
40 40
         'DocumentForm'     => 'list,new,create,edit,update,delete,cancel',
41 41
         'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut',
42 42
         'Gnd'              => 'search',
43 43
     ),
44 44
     // non-cacheable actions
45
-    array(
45
+    array (
46 46
         'DocumentForm'     => 'list,new,create,edit,update,delete,cancel,ajaxGroup,ajaxFileGroup,ajaxField',
47 47
         'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut',
48 48
         'Gnd'              => 'search',
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
53 53
     'EWW.' . $_EXTKEY,
54 54
     'Frontendsearch',
55
-    array(
55
+    array (
56 56
         'SearchFE' => 'search,extendedSearch,showSearchForm',
57 57
     ),
58 58
     // non-cacheable actions
59
-    array(
59
+    array (
60 60
         'SearchFE' => 'search,extendedSearch'
61 61
     )
62 62
 );
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
65 65
     'EWW.' . $_EXTKEY,
66 66
     'Getfile',
67
-    array(
67
+    array (
68 68
         'GetFile'     => 'attachment',
69 69
     ),
70 70
     // non-cacheable actions
71
-    array(
71
+    array (
72 72
         'GetFile'     => 'attachment',
73 73
     )
74 74
 );
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
78 78
     'EWW.' . $_EXTKEY,
79 79
     'Backoffice',
80
-    array(
80
+    array (
81 81
         'Document'         => 'list, logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, '
82 82
             . 'releaseUpdate, duplicate, deleteConfirm, activateConfirm, inactivateConfirm, deleteConfirm, discardConfirm, '
83 83
             . 'listRegistered, listInProgress, releaseActivate, cancelListTask, uploadFiles, '
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         'Gnd'              => 'search',
89 89
     ),
90 90
     // non-cacheable actions
91
-    array(
91
+    array (
92 92
         'Document'         => 'list, logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, '
93 93
             . 'releaseUpdate, duplicate, deleteConfirm, activateConfirm, inactivateConfirm, deleteConfirm, discardConfirm, '
94 94
             . 'listRegistered, listInProgress, releaseActivate, cancelListTask, uploadFiles, '
Please login to merge, or discard this patch.
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     'description' => '',
29 29
 );
30 30
 
31
-if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) {
31
+if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == FALSE) {
32 32
     $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array();
33 33
 }
34 34
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'EWW\Dpf\Command\TransferCommandController';
@@ -101,15 +101,15 @@  discard block
 block discarded – undo
101 101
 );
102 102
 
103 103
 
104
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/MetaTags/MetaTags.php', '_metatags', 'list_type', true);
104
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/MetaTags/MetaTags.php', '_metatags', 'list_type', TRUE);
105 105
 $overrideSetup = 'plugin.tx_dpf_metatags.userFunc = EWW\Dpf\Plugins\MetaTags\MetaTags->main';
106 106
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
107 107
 
108
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/DownloadTool/DownloadTool.php', '_downloadtool', 'list_type', true);
108
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/DownloadTool/DownloadTool.php', '_downloadtool', 'list_type', TRUE);
109 109
 $overrideSetup = 'plugin.tx_dpf_downloadtool.userFunc = EWW\Dpf\Plugins\DownloadTool\DownloadTool->main';
110 110
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
111 111
 
112
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/RelatedListTool/RelatedListTool.php', '_relatedlisttool', 'list_type', true);
112
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/RelatedListTool/RelatedListTool.php', '_relatedlisttool', 'list_type', TRUE);
113 113
 $overrideSetup = 'plugin.tx_dpf_relatedlisttool.userFunc = EWW\Dpf\Plugins\RelatedListTool\RelatedListTool->main';
114 114
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup);
115 115
 
@@ -121,19 +121,19 @@  discard block
 block discarded – undo
121 121
     'actionChange',
122 122
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
123 123
     'cleanUpDocuments',
124
-    false
124
+    FALSE
125 125
 );
126 126
 $signalSlotDispatcher->connect(
127 127
     \EWW\Dpf\Controller\SearchController::class,
128 128
     'actionChange',
129 129
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
130 130
     'cleanUpDocuments',
131
-    false
131
+    FALSE
132 132
 );
133 133
 $signalSlotDispatcher->connect(
134 134
     \EWW\Dpf\Controller\DocumentFormBackofficeController::class,
135 135
     'actionChange',
136 136
     \EWW\Dpf\Services\Document\DocumentCleaner::class,
137 137
     'cleanUpDocuments',
138
-    false
138
+    FALSE
139 139
 );
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_document.php 1 patch
Spacing   +79 added lines, -79 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     die('Access denied.');
17 17
 }
18 18
 
19
-return array(
20
-    'ctrl' => array(
19
+return array (
20
+    'ctrl' => array (
21 21
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document',
22 22
         'label'                    => 'title',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -38,151 +38,151 @@  discard block
 block discarded – undo
38 38
         object_identifier, transfer_status, file, owner, temporary, editor_uid, remote_last_mod_date',
39 39
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_document.gif',
40 40
     ),
41
-    'interface' => array(
41
+    'interface' => array (
42 42
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden,
43 43
         title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, valid, changed,
44 44
         state, reserved_object_identifier, object_identifier,
45 45
         transfer_status, file, owner, temporary, editor_uid, remote_last_mod_date',
46 46
     ),
47
-    'types'     => array(
48
-        '1' => array('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1, 
47
+    'types'     => array (
48
+        '1' => array ('showitem' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,--palette--;;1, 
49 49
         title, authors, xml_data, slub_info_data, document_type, date_issued, process_number, valid, changed,
50 50
         state, reserved_object_identifier, object_identifier,
51 51
         transfer_status, file, owner, temporary, editor_uid, remote_last_mod_date,
52 52
         --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'),
53 53
     ),
54
-    'palettes'  => array(
55
-        '1' => array('showitem' => ''),
54
+    'palettes'  => array (
55
+        '1' => array ('showitem' => ''),
56 56
     ),
57
-    'columns'   => array(
57
+    'columns'   => array (
58 58
 
59
-        'sys_language_uid'           => array(
59
+        'sys_language_uid'           => array (
60 60
             'exclude' => 1,
61 61
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
62
-            'config'  => array(
62
+            'config'  => array (
63 63
                 'type'                => 'select',
64 64
                 'renderType'          => 'selectSingle',
65 65
                 'foreign_table'       => 'sys_language',
66 66
                 'foreign_table_where' => 'ORDER BY sys_language.title',
67
-                'items'               => array(
68
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
69
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
67
+                'items'               => array (
68
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
69
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
70 70
                 ),
71 71
             ),
72 72
         ),
73
-        'l10n_parent'                => array(
73
+        'l10n_parent'                => array (
74 74
             'displayCond' => 'FIELD:sys_language_uid:>:0',
75 75
             'exclude'     => 1,
76 76
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
77
-            'config'      => array(
77
+            'config'      => array (
78 78
                 'type'                => 'select',
79 79
                 'renderType'          => 'selectSingle',
80
-                'items'               => array(
81
-                    array('', 0),
80
+                'items'               => array (
81
+                    array ('', 0),
82 82
                 ),
83 83
                 'foreign_table'       => 'tx_dpf_domain_model_document',
84 84
                 'foreign_table_where' => 'AND tx_dpf_domain_model_document.pid=###CURRENT_PID### AND tx_dpf_domain_model_document.sys_language_uid IN (-1,0)',
85 85
             ),
86 86
         ),
87
-        'l10n_diffsource'            => array(
88
-            'config' => array(
87
+        'l10n_diffsource'            => array (
88
+            'config' => array (
89 89
                 'type' => 'passthrough',
90 90
             ),
91 91
         ),
92 92
 
93
-        't3ver_label'                => array(
93
+        't3ver_label'                => array (
94 94
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
95
-            'config' => array(
95
+            'config' => array (
96 96
                 'type' => 'input',
97 97
                 'size' => 30,
98 98
                 'max'  => 255,
99 99
             ),
100 100
         ),
101 101
 
102
-        'hidden'                     => array(
102
+        'hidden'                     => array (
103 103
             'exclude' => 1,
104 104
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
105
-            'config'  => array(
105
+            'config'  => array (
106 106
                 'type' => 'check',
107 107
             ),
108 108
         ),
109
-        'starttime'                  => array(
109
+        'starttime'                  => array (
110 110
             'exclude'   => 1,
111 111
             'l10n_mode' => 'mergeIfNotBlank',
112 112
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
113
-            'config'    => array(
113
+            'config'    => array (
114 114
                 'type'     => 'input',
115 115
                 'renderType' => 'inputDateTime',
116 116
                 'size'     => 13,
117 117
                 'eval'     => 'datetime',
118 118
                 'checkbox' => 0,
119 119
                 'default'  => 0,
120
-                'range'    => array(
120
+                'range'    => array (
121 121
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
122 122
                 ),
123 123
             ),
124 124
         ),
125
-        'endtime'                    => array(
125
+        'endtime'                    => array (
126 126
             'exclude'   => 1,
127 127
             'l10n_mode' => 'mergeIfNotBlank',
128 128
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
129
-            'config'    => array(
129
+            'config'    => array (
130 130
                 'type'     => 'input',
131 131
                 'renderType' => 'inputDateTime',
132 132
                 'size'     => 13,
133 133
                 'eval'     => 'datetime',
134 134
                 'checkbox' => 0,
135 135
                 'default'  => 0,
136
-                'range'    => array(
136
+                'range'    => array (
137 137
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
138 138
                 ),
139 139
             ),
140 140
         ),
141 141
 
142
-        'title'                      => array(
142
+        'title'                      => array (
143 143
             'exclude' => 1,
144 144
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.title',
145
-            'config'  => array(
145
+            'config'  => array (
146 146
                 'type' => 'input',
147 147
                 'size' => 30,
148 148
                 'eval' => 'trim',
149 149
             ),
150 150
         ),
151 151
 
152
-        'authors'                    => array(
152
+        'authors'                    => array (
153 153
             'exclude' => 1,
154 154
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.authors',
155
-            'config'  => array(
155
+            'config'  => array (
156 156
                 'type' => 'input',
157 157
                 'size' => 30,
158 158
                 'eval' => 'trim',
159 159
             ),
160 160
         ),
161 161
 
162
-        'xml_data'                   => array(
162
+        'xml_data'                   => array (
163 163
             'exclude' => 1,
164 164
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.xml_data',
165
-            'config'  => array(
165
+            'config'  => array (
166 166
                 'type' => 'text',
167 167
                 'cols' => 40,
168 168
                 'rows' => 15,
169 169
                 'eval' => 'trim',
170 170
             ),
171 171
         ),
172
-        'slub_info_data'             => array(
172
+        'slub_info_data'             => array (
173 173
             'exclude' => 1,
174 174
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.slub_info_data',
175
-            'config'  => array(
175
+            'config'  => array (
176 176
                 'type' => 'text',
177 177
                 'cols' => 40,
178 178
                 'rows' => 15,
179 179
                 'eval' => 'trim',
180 180
             ),
181 181
         ),
182
-        'document_type'              => array(
182
+        'document_type'              => array (
183 183
             'exclude' => 1,
184 184
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.document_type',
185
-            'config'  => array(
185
+            'config'  => array (
186 186
                 'type'                => 'select',
187 187
                 'renderType'          => 'selectSingle',
188 188
                 'foreign_table'       => 'tx_dpf_domain_model_documenttype',
@@ -192,20 +192,20 @@  discard block
 block discarded – undo
192 192
             ),
193 193
         ),
194 194
 
195
-        'crdate'                     => array(
195
+        'crdate'                     => array (
196 196
             'exclude' => 0,
197 197
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.creationDate',
198
-            'config'  => array(
198
+            'config'  => array (
199 199
                 'type'   => 'none',
200 200
                 'format' => 'datetime',
201 201
                 'eval'   => 'datetime',
202 202
             ),
203 203
         ),
204 204
 
205
-        'tstamp'                     => array(
205
+        'tstamp'                     => array (
206 206
             'exclude' => 0,
207 207
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.timestamp',
208
-            'config'  => array(
208
+            'config'  => array (
209 209
                 'type'   => 'input',
210 210
                 'renderType' => 'inputDateTime',
211 211
                 'format' => 'datetime',
@@ -213,108 +213,108 @@  discard block
 block discarded – undo
213 213
             ),
214 214
         ),
215 215
 
216
-        'transfer_status'            => array(
216
+        'transfer_status'            => array (
217 217
             'exclude' => 0,
218 218
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.transfer_status',
219
-            'config'  => array(
219
+            'config'  => array (
220 220
                 'type' => 'input',
221 221
                 'size' => '30',
222 222
                 'eval' => 'trim',
223 223
             ),
224 224
         ),
225 225
 
226
-        'object_identifier'          => array(
226
+        'object_identifier'          => array (
227 227
             'exclude' => 0,
228 228
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.object_identifier',
229
-            'config'  => array(
229
+            'config'  => array (
230 230
                 'type' => 'input',
231 231
                 'size' => '30',
232 232
                 'eval' => 'trim',
233 233
             ),
234 234
         ),
235 235
 
236
-        'reserved_object_identifier' => array(
236
+        'reserved_object_identifier' => array (
237 237
             'exclude' => 0,
238 238
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.reserved_object_identifier',
239
-            'config'  => array(
239
+            'config'  => array (
240 240
                 'type' => 'input',
241 241
                 'size' => '30',
242 242
                 'eval' => 'trim',
243 243
             ),
244 244
         ),
245 245
 
246
-        'process_number' => array(
246
+        'process_number' => array (
247 247
             'exclude' => 0,
248 248
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.process_number',
249
-            'config'  => array(
249
+            'config'  => array (
250 250
                 'type' => 'input',
251 251
                 'size' => '30',
252 252
                 'eval' => 'trim',
253 253
             ),
254 254
         ),
255 255
 
256
-        'state'                      => array(
256
+        'state'                      => array (
257 257
             'exclude' => 0,
258 258
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.state',
259
-            'config'  => array(
259
+            'config'  => array (
260 260
                 'type' => 'input',
261 261
                 'size' => '30',
262 262
                 'eval' => 'trim',
263 263
             ),
264 264
         ),
265 265
 
266
-        'remote_last_mod_date'       => array(
266
+        'remote_last_mod_date'       => array (
267 267
             'exclude' => 1,
268 268
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.remote_last_mod_date',
269
-            'config'  => array(
269
+            'config'  => array (
270 270
                 'type' => 'input',
271 271
                 'size' => 30,
272 272
                 'eval' => 'trim',
273 273
             ),
274 274
         ),
275 275
 
276
-        'changed'                    => array(
276
+        'changed'                    => array (
277 277
             'exclude'   => 1,
278 278
             'l10n_mode' => 'exclude',
279 279
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.changed',
280
-            'config'    => array(
280
+            'config'    => array (
281 281
                 'type'    => 'check',
282 282
                 'default' => 0,
283 283
             ),
284 284
         ),
285 285
 
286
-        'valid'                      => array(
286
+        'valid'                      => array (
287 287
             'exclude'   => 1,
288 288
             'l10n_mode' => 'exclude',
289 289
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.valid',
290
-            'config'    => array(
290
+            'config'    => array (
291 291
                 'type'    => 'check',
292 292
                 'default' => 0,
293 293
             ),
294 294
         ),
295 295
 
296
-        'date_issued'                => array(
296
+        'date_issued'                => array (
297 297
             'exclude' => 1,
298 298
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.date_issued',
299
-            'config'  => array(
299
+            'config'  => array (
300 300
                 'type' => 'input',
301 301
                 'size' => 30,
302 302
                 'eval' => 'trim',
303 303
             ),
304 304
         ),
305 305
 
306
-        'file'                       => array(
306
+        'file'                       => array (
307 307
             'exclude' => 1,
308 308
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.file',
309
-            'config'  => array(
309
+            'config'  => array (
310 310
                 'type'          => 'inline',
311 311
                 'foreign_table' => 'tx_dpf_domain_model_file',
312 312
                 'foreign_field' => 'document',
313
-                'behaviour'     => array(
313
+                'behaviour'     => array (
314 314
                     'disableMovingChildrenWithParent' => 1,
315 315
                 ),
316 316
                 'maxitems'      => 9999,
317
-                'appearance'    => array(
317
+                'appearance'    => array (
318 318
                     'collapseAll'                     => 0,
319 319
                     'levelLinksPosition'              => 'top',
320 320
                     'showSynchronizationLink'         => 1,
@@ -325,13 +325,13 @@  discard block
 block discarded – undo
325 325
 
326 326
         ),
327 327
 
328
-        'owner'              => array(
328
+        'owner'              => array (
329 329
             'exclude' => 1,
330 330
             'label'   => 'Owner',
331
-            'config'  => array(
331
+            'config'  => array (
332 332
                 'type'          => 'select',
333 333
                 'items' => array (
334
-                    array('', 0),
334
+                    array ('', 0),
335 335
                 ),
336 336
                 'renderType'    => 'selectSingle',
337 337
                 'foreign_table' => 'fe_users',
@@ -340,51 +340,51 @@  discard block
 block discarded – undo
340 340
             ),
341 341
         ),
342 342
 
343
-        'editor_uid'         => array(
343
+        'editor_uid'         => array (
344 344
             'exclude'   => 1,
345 345
             'l10n_mode' => 'exclude',
346 346
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.editor_uid',
347
-            'config'    => array(
347
+            'config'    => array (
348 348
                 'type'    => 'input',
349 349
                 'size'    => 30,
350 350
                 'eval'    => 'trim'
351 351
             ),
352 352
         ),
353 353
 
354
-        'temporary'                      => array(
354
+        'temporary'                      => array (
355 355
             'exclude'   => 1,
356 356
             'l10n_mode' => 'exclude',
357 357
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.temporary',
358
-            'config'    => array(
358
+            'config'    => array (
359 359
                 'type'    => 'check',
360 360
                 'default' => 0,
361 361
             ),
362 362
         ),
363 363
 
364 364
 
365
-        'suggestion' => array(
365
+        'suggestion' => array (
366 366
             'exclude'   => 1,
367 367
             'l10n_mode' => 'exclude',
368 368
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.suggestion',
369
-            'config'    => array(
369
+            'config'    => array (
370 370
                 'type'    => 'check',
371 371
                 'default' => 0,
372 372
             ),
373 373
         ),
374 374
 
375
-        'linked_uid' => array(
375
+        'linked_uid' => array (
376 376
             'exclude'   => 1,
377 377
             'l10n_mode' => 'exclude',
378 378
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.linked_uid',
379
-            'config'    => array(
379
+            'config'    => array (
380 380
                 'type'    => 'check'
381 381
             ),
382 382
         ),
383 383
 
384
-        'comment' => array(
384
+        'comment' => array (
385 385
             'exclude' => 1,
386 386
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_document.comment',
387
-            'config'  => array(
387
+            'config'  => array (
388 388
                 'type' => 'input',
389 389
                 'size' => 30,
390 390
                 'eval' => 'trim',
Please login to merge, or discard this patch.
Configuration/TCA/tx_dpf_domain_model_client.php 2 patches
Spacing   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
 if (!defined('TYPO3_MODE')) {
16 16
     die('Access denied.');
17 17
 }
18
-return array(
19
-    'ctrl' => array(
18
+return array (
19
+    'ctrl' => array (
20 20
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client',
21 21
         'label'                    => 'project',
22 22
         'tstamp'                   => 'tstamp',
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         'transOrigPointerField'    => 'l10n_parent',
28 28
         'transOrigDiffSourceField' => 'l10n_diffsource',
29 29
         'delete'                   => 'deleted',
30
-        'enablecolumns'            => array(
30
+        'enablecolumns'            => array (
31 31
             'disabled'  => 'hidden',
32 32
             'starttime' => 'starttime',
33 33
             'endtime'   => 'endtime',
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         'requestUpdate'            => 'replace_niss_part',
44 44
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_client.gif',
45 45
     ),
46
-    'interface' => array(
46
+    'interface' => array (
47 47
         'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, client, owner_id,
48 48
         network_initial, library_identifier, admin_email, project, replace_niss_part, niss_part_search, niss_part_replace,
49 49
         sword_host, sword_user, sword_password, sword_collection_namespace, fedora_host, fedora_user, fedora_password,
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
         submitter_ingest_notification_subject, submitter_ingest_notification_body,
54 54
         admin_register_document_notification_subject, admin_register_document_notification_body'
55 55
     ),
56
-    'types'     => array(
57
-        '1' => array('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1,
56
+    'types'     => array (
57
+        '1' => array ('showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, --palette--;;1,
58 58
         client, owner_id, network_initial, library_identifier, admin_email, project, replace_niss_part, niss_part_search, niss_part_replace,
59 59
         --div--;SWORD, sword_host, sword_user, sword_password, sword_collection_namespace,
60 60
         --div--;Fedora, fedora_host, fedora_user, fedora_password,
@@ -64,315 +64,315 @@  discard block
 block discarded – undo
64 64
         --div--;Submitter Notification, submitter_new_document_notification_subject, submitter_new_document_notification_body, submitter_ingest_notification_subject, submitter_ingest_notification_body,
65 65
         --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'),
66 66
     ),
67
-    'palettes'  => array(
68
-        '1' => array('showitem' => ''),
67
+    'palettes'  => array (
68
+        '1' => array ('showitem' => ''),
69 69
     ),
70
-    'columns'   => array(
71
-        'sys_language_uid'   => array(
70
+    'columns'   => array (
71
+        'sys_language_uid'   => array (
72 72
             'exclude' => 1,
73 73
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
74
-            'config'  => array(
74
+            'config'  => array (
75 75
                 'type'                => 'select',
76 76
                 'renderType'          => 'selectSingle',
77 77
                 'foreign_table'       => 'sys_language',
78 78
                 'foreign_table_where' => 'ORDER BY sys_language.title',
79
-                'items'               => array(
80
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
81
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
79
+                'items'               => array (
80
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
81
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
82 82
                 ),
83 83
             ),
84 84
         ),
85
-        'l10n_parent'        => array(
85
+        'l10n_parent'        => array (
86 86
             'displayCond' => 'FIELD:sys_language_uid:>:0',
87 87
             'exclude'     => 1,
88 88
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
89
-            'config'      => array(
89
+            'config'      => array (
90 90
                 'type'                => 'select',
91 91
                 'renderType'          => 'selectSingle',
92
-                'items'               => array(
93
-                    array('', 0),
92
+                'items'               => array (
93
+                    array ('', 0),
94 94
                 ),
95 95
                 'foreign_table'       => 'tx_dpf_domain_model_client',
96 96
                 'foreign_table_where' => 'AND tx_dpf_domain_model_client.pid=###CURRENT_PID### AND tx_dpf_domain_model_client.sys_language_uid IN (-1,0)',
97 97
             ),
98 98
         ),
99
-        'l10n_diffsource'    => array(
100
-            'config' => array(
99
+        'l10n_diffsource'    => array (
100
+            'config' => array (
101 101
                 'type' => 'passthrough',
102 102
             ),
103 103
         ),
104
-        't3ver_label'        => array(
104
+        't3ver_label'        => array (
105 105
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
106
-            'config' => array(
106
+            'config' => array (
107 107
                 'type' => 'input',
108 108
                 'size' => 30,
109 109
                 'max'  => 255,
110 110
             ),
111 111
         ),
112
-        'hidden'             => array(
112
+        'hidden'             => array (
113 113
             'exclude' => 1,
114 114
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
115
-            'config'  => array(
115
+            'config'  => array (
116 116
                 'type' => 'check',
117 117
             ),
118 118
         ),
119
-        'starttime'          => array(
119
+        'starttime'          => array (
120 120
             'exclude'   => 1,
121 121
             'l10n_mode' => 'mergeIfNotBlank',
122 122
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
123
-            'config'    => array(
123
+            'config'    => array (
124 124
                 'type'     => 'input',
125 125
                 'renderType' => 'inputDateTime',
126 126
                 'size'     => 13,
127 127
                 'eval'     => 'datetime',
128 128
                 'checkbox' => 0,
129 129
                 'default'  => 0,
130
-                'range'    => array(
130
+                'range'    => array (
131 131
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
132 132
                 ),
133 133
             ),
134 134
         ),
135
-        'endtime'            => array(
135
+        'endtime'            => array (
136 136
             'exclude'   => 1,
137 137
             'l10n_mode' => 'mergeIfNotBlank',
138 138
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
139
-            'config'    => array(
139
+            'config'    => array (
140 140
                 'type'     => 'input',
141 141
                 'renderType' => 'inputDateTime',
142 142
                 'size'     => 13,
143 143
                 'eval'     => 'datetime',
144 144
                 'checkbox' => 0,
145 145
                 'default'  => 0,
146
-                'range'    => array(
146
+                'range'    => array (
147 147
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
148 148
                 ),
149 149
             ),
150 150
         ),
151
-        'project'            => array(
151
+        'project'            => array (
152 152
             'exclude'   => 1,
153 153
             'l10n_mode' => 'exclude',
154 154
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.project',
155
-            'config'    => array(
155
+            'config'    => array (
156 156
                 'type' => 'input',
157 157
                 'size' => 30,
158 158
                 'eval' => 'trim',
159 159
             ),
160 160
         ),
161
-        'client'             => array(
161
+        'client'             => array (
162 162
             'exclude'      => 1,
163 163
             'l10n_mode'    => 'exclude',
164 164
             'l10n_display' => 'defaultAsReadonly',
165 165
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.client',
166
-            'config'       => array(
166
+            'config'       => array (
167 167
                 'type' => 'input',
168 168
                 'size' => 30,
169 169
                 'eval' => 'trim',
170 170
             ),
171 171
         ),
172
-        'network_initial'    => array(
172
+        'network_initial'    => 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_client.network_initial',
176
-            'config'    => array(
176
+            'config'    => array (
177 177
                 'type' => 'input',
178 178
                 'size' => 30,
179 179
                 'eval' => 'trim',
180 180
             ),
181 181
         ),
182
-        'library_identifier' => array(
182
+        'library_identifier' => array (
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_client.library_identifier',
186
-            'config'    => array(
186
+            'config'    => array (
187 187
                 'type' => 'input',
188 188
                 'size' => 30,
189 189
                 'eval' => 'trim',
190 190
             ),
191 191
         ),
192
-        'owner_id'           => array(
192
+        'owner_id'           => array (
193 193
             'exclude'   => 1,
194 194
             'l10n_mode' => 'exclude',
195 195
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.owner_id',
196
-            'config'    => array(
196
+            'config'    => array (
197 197
                 'type' => 'input',
198 198
                 'size' => 30,
199 199
                 'eval' => 'trim,required',
200 200
             ),
201 201
         ),
202
-        'admin_email'        => array(
202
+        'admin_email'        => array (
203 203
             'exclude'   => 1,
204 204
             'l10n_mode' => 'exclude',
205 205
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_email',
206
-            'config'    => array(
206
+            'config'    => array (
207 207
                 'type' => 'input',
208 208
                 'size' => 30,
209 209
                 'eval' => 'trim',
210 210
             ),
211 211
         ),
212
-        'replace_niss_part'  => array(
212
+        'replace_niss_part'  => array (
213 213
             'exclude'   => 1,
214 214
             'l10n_mode' => 'exclude',
215 215
             'label'     => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.replace_niss_part',
216
-            'config'    => array(
216
+            'config'    => array (
217 217
                 'type'    => 'check',
218 218
                 'default' => 0,
219 219
             ),
220 220
             'onChange' => 'reload',
221 221
         ),
222
-        'niss_part_search'   => array(
222
+        'niss_part_search'   => array (
223 223
             'exclude'     => 1,
224 224
             'label'       => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.niss_part_search',
225 225
             'displayCond' => 'FIELD:replace_niss_part:=:1',
226
-            'config'      => array(
226
+            'config'      => array (
227 227
                 'type' => 'input',
228 228
                 'size' => 30,
229 229
                 'eval' => 'trim,required',
230 230
             ),
231 231
         ),
232
-        'niss_part_replace'  => array(
232
+        'niss_part_replace'  => array (
233 233
             'exclude'     => 1,
234 234
             'label'       => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.niss_part_replace',
235 235
             'displayCond' => 'FIELD:replace_niss_part:=:1',
236
-            'config'      => array(
236
+            'config'      => array (
237 237
                 'type' => 'input',
238 238
                 'size' => 30,
239 239
                 'eval' => 'trim,required',
240 240
             ),
241 241
         ),
242
-        'sword_host' => array(
242
+        'sword_host' => array (
243 243
             'exclude'      => 1,
244 244
             'l10n_mode'    => 'exclude',
245 245
             'l10n_display' => 'defaultAsReadonly',
246 246
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.sword_host',
247
-            'config'       => array(
247
+            'config'       => array (
248 248
                 'type' => 'input',
249 249
                 'size' => 30,
250 250
                 'eval' => 'trim',
251 251
             ),
252 252
         ),
253
-        'sword_user' => array(
253
+        'sword_user' => array (
254 254
             'exclude'      => 1,
255 255
             'l10n_mode'    => 'exclude',
256 256
             'l10n_display' => 'defaultAsReadonly',
257 257
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.sword_user',
258
-            'config'       => array(
258
+            'config'       => array (
259 259
                 'type' => 'input',
260 260
                 'size' => 30,
261 261
                 'eval' => 'trim',
262 262
             ),
263 263
         ),
264
-        'sword_password' => array(
264
+        'sword_password' => array (
265 265
             'exclude'      => 1,
266 266
             'l10n_mode'    => 'exclude',
267 267
             'l10n_display' => 'defaultAsReadonly',
268 268
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.sword_password',
269
-            'config'       => array(
269
+            'config'       => array (
270 270
                 'type' => 'input',
271 271
                 'size' => 30,
272 272
                 'eval' => 'trim',
273 273
             ),
274 274
         ),
275
-        'sword_collection_namespace' => array(
275
+        'sword_collection_namespace' => array (
276 276
             'exclude'      => 1,
277 277
             'l10n_mode'    => 'exclude',
278 278
             'l10n_display' => 'defaultAsReadonly',
279 279
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.sword_collection_namespace',
280
-            'config'       => array(
280
+            'config'       => array (
281 281
                 'type' => 'input',
282 282
                 'size' => 30,
283 283
                 'eval' => 'trim',
284 284
             ),
285 285
         ),
286
-        'fedora_host' => array(
286
+        'fedora_host' => array (
287 287
             'exclude'      => 1,
288 288
             'l10n_mode'    => 'exclude',
289 289
             'l10n_display' => 'defaultAsReadonly',
290 290
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.fedora_host',
291
-            'config'       => array(
291
+            'config'       => array (
292 292
                 'type' => 'input',
293 293
                 'size' => 30,
294 294
                 'eval' => 'trim',
295 295
             ),
296 296
         ),
297
-        'fedora_user' => array(
297
+        'fedora_user' => array (
298 298
             'exclude'      => 1,
299 299
             'l10n_mode'    => 'exclude',
300 300
             'l10n_display' => 'defaultAsReadonly',
301 301
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.fedora_user',
302
-            'config'       => array(
302
+            'config'       => array (
303 303
                 'type' => 'input',
304 304
                 'size' => 30,
305 305
                 'eval' => 'trim',
306 306
             ),
307 307
         ),
308
-        'fedora_password' => array(
308
+        'fedora_password' => array (
309 309
             'exclude'      => 1,
310 310
             'l10n_mode'    => 'exclude',
311 311
             'l10n_display' => 'defaultAsReadonly',
312 312
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.fedora_password',
313
-            'config'       => array(
313
+            'config'       => array (
314 314
                 'type' => 'input',
315 315
                 'size' => 30,
316 316
                 'eval' => 'trim',
317 317
             ),
318 318
         ),
319
-        'elastic_search_host' => array(
319
+        'elastic_search_host' => array (
320 320
             'exclude'      => 1,
321 321
             'l10n_mode'    => 'exclude',
322 322
             'l10n_display' => 'defaultAsReadonly',
323 323
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.elastic_search_host',
324
-            'config'       => array(
324
+            'config'       => array (
325 325
                 'type' => 'input',
326 326
                 'size' => 30,
327 327
                 'eval' => 'trim',
328 328
             ),
329 329
         ),
330
-        'elastic_search_port' => array(
330
+        'elastic_search_port' => array (
331 331
             'exclude'      => 1,
332 332
             'l10n_mode'    => 'exclude',
333 333
             'l10n_display' => 'defaultAsReadonly',
334 334
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.elastic_search_port',
335
-            'config'       => array(
335
+            'config'       => array (
336 336
                 'type' => 'input',
337 337
                 'size' => 30,
338 338
                 'eval' => 'trim',
339 339
             ),
340 340
         ),
341
-        'upload_directory' => array(
341
+        'upload_directory' => array (
342 342
             'exclude'      => 1,
343 343
             'l10n_mode'    => 'exclude',
344 344
             'l10n_display' => 'defaultAsReadonly',
345 345
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.upload_directory',
346
-            'config'       => array(
346
+            'config'       => array (
347 347
                 'type' => 'input',
348 348
                 'size' => 30,
349 349
                 'eval' => 'trim',
350 350
             ),
351 351
         ),
352
-        'upload_domain' => array(
352
+        'upload_domain' => array (
353 353
             'exclude'      => 1,
354 354
             'l10n_mode'    => 'exclude',
355 355
             'l10n_display' => 'defaultAsReadonly',
356 356
             'label'        => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.upload_domain',
357
-            'config'       => array(
357
+            'config'       => array (
358 358
                 'type' => 'input',
359 359
                 'size' => 30,
360 360
                 'eval' => 'trim',
361 361
             ),
362 362
         ),
363
-        'admin_new_document_notification_subject' => array(
363
+        'admin_new_document_notification_subject' => array (
364 364
             'exclude' => 1,
365 365
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_new_document_notification_subject',
366
-            'config'  => array(
366
+            'config'  => array (
367 367
                 'type' => 'input',
368 368
                 'size' => 50,
369 369
                 'eval' => 'trim',
370 370
             ),
371 371
         ),
372
-        'admin_new_document_notification_body' => array(
372
+        'admin_new_document_notification_body' => array (
373 373
             'exclude' => 1,
374 374
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_new_document_notification_body',
375
-            'config'  => array(
375
+            'config'  => array (
376 376
                 'type' => 'text',
377 377
                 'cols' => 40,
378 378
                 'rows' => 15,
@@ -380,19 +380,19 @@  discard block
 block discarded – undo
380 380
                 'enableRichtext' => true,
381 381
             ),
382 382
         ),
383
-        'admin_register_document_notification_subject' => array(
383
+        'admin_register_document_notification_subject' => array (
384 384
             'exclude' => 1,
385 385
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_register_document_notification_subject',
386
-            'config'  => array(
386
+            'config'  => array (
387 387
                 'type' => 'input',
388 388
                 'size' => 50,
389 389
                 'eval' => 'trim',
390 390
             ),
391 391
         ),
392
-        'admin_register_document_notification_body' => array(
392
+        'admin_register_document_notification_body' => array (
393 393
             'exclude' => 1,
394 394
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.admin_register_document_notification_body',
395
-            'config'  => array(
395
+            'config'  => array (
396 396
                 'type' => 'text',
397 397
                 'cols' => 40,
398 398
                 'rows' => 15,
@@ -400,19 +400,19 @@  discard block
 block discarded – undo
400 400
                 'enableRichtext' => true,
401 401
             ),
402 402
         ),
403
-        'submitter_new_document_notification_subject' => array(
403
+        'submitter_new_document_notification_subject' => array (
404 404
             'exclude' => 1,
405 405
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.submitter_new_document_notification_subject',
406
-            'config'  => array(
406
+            'config'  => array (
407 407
                 'type' => 'input',
408 408
                 'size' => 50,
409 409
                 'eval' => 'trim',
410 410
             ),
411 411
         ),
412
-        'submitter_new_document_notification_body' => array(
412
+        'submitter_new_document_notification_body' => array (
413 413
             'exclude' => 1,
414 414
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.submitter_new_document_notification_body',
415
-            'config'  => array(
415
+            'config'  => array (
416 416
                 'type' => 'text',
417 417
                 'cols' => 40,
418 418
                 'rows' => 15,
@@ -420,19 +420,19 @@  discard block
 block discarded – undo
420 420
                 'enableRichtext' => true,
421 421
             ),
422 422
         ),
423
-        'submitter_ingest_notification_subject' => array(
423
+        'submitter_ingest_notification_subject' => array (
424 424
             'exclude' => 1,
425 425
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.submitter_ingest_notification_subject',
426
-            'config'  => array(
426
+            'config'  => array (
427 427
                 'type' => 'input',
428 428
                 'size' => 50,
429 429
                 'eval' => 'trim',
430 430
             ),
431 431
         ),
432
-        'submitter_ingest_notification_body' => array(
432
+        'submitter_ingest_notification_body' => array (
433 433
             'exclude' => 1,
434 434
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_client.submitter_ingest_notification_body',
435
-            'config'  => array(
435
+            'config'  => array (
436 436
                 'type' => 'text',
437 437
                 'cols' => 40,
438 438
                 'rows' => 15,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 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',
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
                 'cols' => 40,
378 378
                 'rows' => 15,
379 379
                 'eval' => 'trim',
380
-                'enableRichtext' => true,
380
+                'enableRichtext' => TRUE,
381 381
             ),
382 382
         ),
383 383
         'admin_register_document_notification_subject' => array(
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
                 'cols' => 40,
398 398
                 'rows' => 15,
399 399
                 'eval' => 'trim',
400
-                'enableRichtext' => true,
400
+                'enableRichtext' => TRUE,
401 401
             ),
402 402
         ),
403 403
         'submitter_new_document_notification_subject' => array(
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
                 'cols' => 40,
418 418
                 'rows' => 15,
419 419
                 'eval' => 'trim',
420
-                'enableRichtext' => true,
420
+                'enableRichtext' => TRUE,
421 421
             ),
422 422
         ),
423 423
         'submitter_ingest_notification_subject' => array(
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
                 'cols' => 40,
438 438
                 'rows' => 15,
439 439
                 'eval' => 'trim',
440
-                'enableRichtext' => true,
440
+                'enableRichtext' => TRUE,
441 441
             ),
442 442
         ),
443 443
     ),
Please login to merge, or discard this patch.
Classes/ViewHelpers/IsElementAllowedViewHelper.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         //$pluginName = $renderingContext->getControllerContext()->getRequest()->getPluginName();
34 34
 
35
-        $roles = array();
35
+        $roles = array ();
36 36
         if (key_exists('condition', $arguments)) {
37 37
             $roles = $arguments['condition'];
38 38
             if (!is_array($roles)) return FALSE;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function render($condition)
67 67
     {
68 68
         return self::renderStatic(
69
-            array('condition' => $condition),
69
+            array ('condition' => $condition),
70 70
             $this->buildRenderChildrenClosure(),
71 71
             $this->renderingContext
72 72
         );
Please login to merge, or discard this patch.
Braces   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,22 +20,22 @@  discard block
 block discarded – undo
20 20
 use TYPO3\CMS\Extbase\Object\ObjectManager;
21 21
 use \EWW\Dpf\Security\Security;
22 22
 
23
-class IsElementAllowedViewHelper extends AbstractViewHelper
24
-{
23
+class IsElementAllowedViewHelper extends AbstractViewHelper {
25 24
     /**
26 25
      * @param array $arguments
27 26
      * @param \Closure $renderChildrenClosure
28 27
      * @param RenderingContextInterface $renderingContext
29 28
      * @return boolean
30 29
      */
31
-    public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
32
-    {
30
+    public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) {
33 31
         //$pluginName = $renderingContext->getControllerContext()->getRequest()->getPluginName();
34 32
 
35 33
         $roles = array();
36 34
         if (key_exists('condition', $arguments)) {
37 35
             $roles = $arguments['condition'];
38
-            if (!is_array($roles)) return FALSE;
36
+            if (!is_array($roles)) {
37
+                return FALSE;
38
+            }
39 39
         }
40 40
 
41 41
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
@@ -50,7 +50,9 @@  discard block
 block discarded – undo
50 50
             return TRUE;
51 51
         } else {
52 52
             foreach ($roles as $role) {
53
-                if ($role === $clientUserRole) return TRUE;
53
+                if ($role === $clientUserRole) {
54
+                    return TRUE;
55
+                }
54 56
             }
55 57
         }
56 58
 
@@ -63,8 +65,7 @@  discard block
 block discarded – undo
63 65
      * @param array $condition
64 66
      *
65 67
      */
66
-    public function render($condition)
67
-    {
68
+    public function render($condition) {
68 69
         return self::renderStatic(
69 70
             array('condition' => $condition),
70 71
             $this->buildRenderChildrenClosure(),
Please login to merge, or discard this patch.
Classes/ViewHelpers/Link/DataCiteViewHelper.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $dataCite = $this->uriBuilder
54 54
             ->reset()
55 55
             ->setTargetPageUid($apiPid)
56
-            ->setArguments(array( 'tx_dpf' => $row))
56
+            ->setArguments(array ('tx_dpf' => $row))
57 57
             ->setCreateAbsoluteUri(true)
58 58
             ->setUseCacheHash(FALSE)
59 59
             ->buildFrontendUri();
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 use TYPO3\CMS\Core\Utility\MathUtility;
18 18
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
19 19
 
20
-class DataCiteViewHelper extends AbstractViewHelper
21
-{
20
+class DataCiteViewHelper extends AbstractViewHelper {
22 21
     /**
23 22
      * @var \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder
24 23
      * @inject
@@ -48,8 +47,7 @@  discard block
 block discarded – undo
48 47
      * @param  string $class
49 48
      * @return string html output
50 49
      */
51
-    protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class)
52
-    {
50
+    protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class) {
53 51
         $dataCite = $this->uriBuilder
54 52
             ->reset()
55 53
             ->setTargetPageUid($apiPid)
@@ -74,8 +72,7 @@  discard block
 block discarded – undo
74 72
      * @param  string $class
75 73
      * @return string the rendered record list
76 74
      */
77
-    public function render(array $arguments, $pageUid, $apiPid, $class)
78
-    {
75
+    public function render(array $arguments, $pageUid, $apiPid, $class) {
79 76
 
80 77
         if ($arguments['document']) {
81 78
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @var bool
40 40
      */
41
-    protected $escapeOutput = false;
41
+    protected $escapeOutput = FALSE;
42 42
 
43 43
     /**
44 44
      * Returns the View Icon with link
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
             ->reset()
55 55
             ->setTargetPageUid($apiPid)
56 56
             ->setArguments(array( 'tx_dpf' => $row))
57
-            ->setCreateAbsoluteUri(true)
57
+            ->setCreateAbsoluteUri(TRUE)
58 58
             ->setUseCacheHash(FALSE)
59 59
             ->buildFrontendUri();
60 60
 
61
-        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = null);
61
+        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = NULL);
62 62
         $icon  = '<a href="' . $dataCite . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
63 63
 
64 64
         return $icon;
Please login to merge, or discard this patch.
Classes/ViewHelpers/Link/PreviewViewHelper.php 4 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class)
82 82
     {
83 83
 
84
-       $previewMets = $this->uriBuilder
84
+        $previewMets = $this->uriBuilder
85 85
             ->reset()
86 86
             ->setTargetPageUid($apiPid)
87 87
             ->setArguments(array( 'tx_dpf' => $row))
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
        $previewMets = $this->uriBuilder
85 85
             ->reset()
86 86
             ->setTargetPageUid($apiPid)
87
-            ->setArguments(array( 'tx_dpf' => $row))
87
+            ->setArguments(array ('tx_dpf' => $row))
88 88
             ->setCreateAbsoluteUri(true)
89 89
             ->setUseCacheHash(FALSE)
90 90
             //->setNoCache(TRUE)
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             ->setUseCacheHash(TRUE)
97 97
             //->setNoCache(TRUE)
98 98
             ->setArguments(
99
-                array( 'tx_dlf' => array(
99
+                array ('tx_dlf' => array (
100 100
                         'id' => urldecode($previewMets),
101 101
                     )
102 102
                 )
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             ->buildFrontendUri();
106 106
 
107 107
         $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null);
108
-        $icon = '<a href="'. $additionalGetVars . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
108
+        $icon = '<a href="' . $additionalGetVars . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
109 109
 
110 110
         return $icon;
111 111
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
19 19
 use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
20 20
 
21
-class PreviewViewHelper extends AbstractViewHelper
22
-{
21
+class PreviewViewHelper extends AbstractViewHelper {
23 22
     /**
24 23
      * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
25 24
      * @inject
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
      * @param  string $class
79 78
      * @return string html output
80 79
      */
81
-    protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class)
82
-    {
80
+    protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class) {
83 81
 
84 82
        $previewMets = $this->uriBuilder
85 83
             ->reset()
@@ -121,8 +119,7 @@  discard block
 block discarded – undo
121 119
      * @param  string $class
122 120
      * @return string the rendered record list
123 121
      */
124
-    public function render(array $arguments, $pageUid, $apiPid, $class)
125
-    {
122
+    public function render(array $arguments, $pageUid, $apiPid, $class) {
126 123
         if ($arguments['document']) {
127 124
 
128 125
             // it's already a document object?
Please login to merge, or discard this patch.
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @var bool
54 54
      */
55
-    protected $escapeOutput = false;
55
+    protected $escapeOutput = FALSE;
56 56
 
57 57
 
58 58
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             ->reset()
86 86
             ->setTargetPageUid($apiPid)
87 87
             ->setArguments(array( 'tx_dpf' => $row))
88
-            ->setCreateAbsoluteUri(true)
88
+            ->setCreateAbsoluteUri(TRUE)
89 89
             ->setUseCacheHash(FALSE)
90 90
             //->setNoCache(TRUE)
91 91
             ->buildFrontendUri();
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
                     )
102 102
                 )
103 103
             )
104
-            ->setCreateAbsoluteUri(true)
104
+            ->setCreateAbsoluteUri(TRUE)
105 105
             ->buildFrontendUri();
106 106
 
107
-        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null);
107
+        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = NULL);
108 108
         $icon = '<a href="'. $additionalGetVars . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
109 109
 
110 110
         return $icon;
Please login to merge, or discard this patch.
Classes/ViewHelpers/ActiveManagerMenuViewHelper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * @param string $controllerName The controller to be active.
23 23
      * @param array $actionNames The actions to be active.
24 24
      */
25
-    public function render($controllerName, $actionNames = array())
25
+    public function render($controllerName, $actionNames = array ())
26 26
     {
27 27
         if ($this->controllerContext->getRequest()->getControllerName() == $controllerName) {
28 28
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,16 +14,14 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class ActiveManagerMenuViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
18
-{
17
+class ActiveManagerMenuViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
19 18
 
20 19
     /**
21 20
      *
22 21
      * @param string $controllerName The controller to be active.
23 22
      * @param array $actionNames The actions to be active.
24 23
      */
25
-    public function render($controllerName, $actionNames = array())
26
-    {
24
+    public function render($controllerName, $actionNames = array()) {
27 25
         if ($this->controllerContext->getRequest()->getControllerName() == $controllerName) {
28 26
 
29 27
             if (empty($actionNames)) {
Please login to merge, or discard this patch.
Classes/Helper/FormDataReader.php 3 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     protected function getFields()
135 135
     {
136 136
 
137
-        $fields = array();
137
+        $fields = array ();
138 138
 
139 139
         if (is_array($this->formData['metadata'])) {
140 140
             foreach ($this->formData['metadata'] as $key => $value) {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
     protected function getDeletedFiles()
150 150
     {
151
-        $deletedFiles = array();
151
+        $deletedFiles = array ();
152 152
 
153 153
         if (is_array($this->formData['deleteFile'])) {
154 154
             foreach ($this->formData['deleteFile'] as $key => $value) {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $frameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
174 174
         $fullTextLabel          = $frameworkConfiguration['settings']['defaultValue']['fullTextLabel'];
175 175
 
176
-        $newFiles = array();
176
+        $newFiles = array ();
177 177
 
178 178
         // Primary file
179 179
         if ($this->formData['primaryFile'] && $this->formData['primaryFile']['error'] != 4) {
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
             $documentForm->setComment($this->formData['comment']);
334 334
         }
335 335
 
336
-        $documentData = array();
336
+        $documentData = array ();
337 337
 
338 338
         foreach ($fields as $field) {
339 339
             $pageUid    = $field->getPageUid();
Please login to merge, or discard this patch.
Braces   +9 added lines, -18 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 use EWW\Dpf\Domain\Model\File;
18 18
 
19
-class FormDataReader
20
-{
19
+class FormDataReader {
21 20
 
22 21
     /**
23 22
      * documentTypeRepository
@@ -110,8 +109,7 @@  discard block
 block discarded – undo
110 109
      */
111 110
     protected $uploadBaseUrl;
112 111
 
113
-    public function __construct()
114
-    {
112
+    public function __construct() {
115 113
 
116 114
         $uploadFileUrl = new \EWW\Dpf\Helper\UploadFileUrl;
117 115
 
@@ -125,14 +123,12 @@  discard block
 block discarded – undo
125 123
      *
126 124
      * @param array $formData
127 125
      */
128
-    public function setFormData($formData)
129
-    {
126
+    public function setFormData($formData) {
130 127
         $this->formData     = $formData;
131 128
         $this->documentType = $this->documentTypeRepository->findByUid($formData['type']);
132 129
     }
133 130
 
134
-    protected function getFields()
135
-    {
131
+    protected function getFields() {
136 132
 
137 133
         $fields = array();
138 134
 
@@ -146,8 +142,7 @@  discard block
 block discarded – undo
146 142
         return $fields;
147 143
     }
148 144
 
149
-    protected function getDeletedFiles()
150
-    {
145
+    protected function getDeletedFiles() {
151 146
         $deletedFiles = array();
152 147
 
153 148
         if (is_array($this->formData['deleteFile'])) {
@@ -167,8 +162,7 @@  discard block
 block discarded – undo
167 162
         return $deletedFiles;
168 163
     }
169 164
 
170
-    protected function getNewAndUpdatedFiles()
171
-    {
165
+    protected function getNewAndUpdatedFiles() {
172 166
 
173 167
         $frameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
174 168
         $fullTextLabel          = $frameworkConfiguration['settings']['defaultValue']['fullTextLabel'];
@@ -259,8 +253,7 @@  discard block
 block discarded – undo
259 253
 
260 254
     }
261 255
 
262
-    public function uploadError()
263
-    {
256
+    public function uploadError() {
264 257
         if (
265 258
             $this->formData['primaryFile'] &&
266 259
             $this->formData['primaryFile']['error'] != 0 &&
@@ -280,8 +273,7 @@  discard block
 block discarded – undo
280 273
         return false;
281 274
     }
282 275
 
283
-    protected function getUploadedFile($tmpFile, $primary = false, \EWW\Dpf\Domain\Model\File $file = null)
284
-    {
276
+    protected function getUploadedFile($tmpFile, $primary = false, \EWW\Dpf\Domain\Model\File $file = null) {
285 277
 
286 278
         if (empty($file)) {
287 279
             $file = $this->objectManager->get(File::class);
@@ -317,8 +309,7 @@  discard block
 block discarded – undo
317 309
         return $file;
318 310
     }
319 311
 
320
-    public function getDocumentForm()
321
-    {
312
+    public function getDocumentForm() {
322 313
 
323 314
         $fields = $this->getFields();
324 315
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @var \EWW\Dpf\Domain\Repository\DocumentTypeRepository
26 26
      * @inject
27 27
      */
28
-    protected $documentTypeRepository = null;
28
+    protected $documentTypeRepository = NULL;
29 29
 
30 30
     /**
31 31
      * metadataPageRepository
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @var \EWW\Dpf\Domain\Repository\MetadataPageRepository
34 34
      * @inject
35 35
      */
36
-    protected $metadataPageRepository = null;
36
+    protected $metadataPageRepository = NULL;
37 37
 
38 38
     /**
39 39
      * metadataGroupRepository
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @var \EWW\Dpf\Domain\Repository\MetadataGroupRepository
42 42
      * @inject
43 43
      */
44
-    protected $metadataGroupRepository = null;
44
+    protected $metadataGroupRepository = NULL;
45 45
 
46 46
     /**
47 47
      * metadataObjectRepository
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @var \EWW\Dpf\Domain\Repository\MetadataObjectRepository
50 50
      * @inject
51 51
      */
52
-    protected $metadataObjectRepository = null;
52
+    protected $metadataObjectRepository = NULL;
53 53
 
54 54
     /**
55 55
      * fileRepository
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @var \EWW\Dpf\Domain\Repository\FileRepository
58 58
      * @inject
59 59
      */
60
-    protected $fileRepository = null;
60
+    protected $fileRepository = NULL;
61 61
 
62 62
     /**
63 63
      * documentRepository
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * @var \EWW\Dpf\Domain\Repository\DocumentRepository
66 66
      * @inject
67 67
      */
68
-    protected $documentRepository = null;
68
+    protected $documentRepository = NULL;
69 69
 
70 70
     /**
71 71
      * objectManager
@@ -179,13 +179,13 @@  discard block
 block discarded – undo
179 179
         if ($this->formData['primaryFile'] && $this->formData['primaryFile']['error'] != 4) {
180 180
 
181 181
             // Use the existing file entry
182
-            $file     = null;
182
+            $file     = NULL;
183 183
             $document = $this->documentRepository->findByUid($this->formData['documentUid']);
184 184
             if ($document) {
185 185
                 $file = $this->fileRepository->getPrimaryFileByDocument($document);
186 186
             }
187 187
 
188
-            $newPrimaryFile = $this->getUploadedFile($this->formData['primaryFile'], true, $file);
188
+            $newPrimaryFile = $this->getUploadedFile($this->formData['primaryFile'], TRUE, $file);
189 189
             $newPrimaryFile->setLabel($fullTextLabel);
190 190
 
191 191
             $newFiles[] = $newPrimaryFile;
@@ -266,28 +266,28 @@  discard block
 block discarded – undo
266 266
             $this->formData['primaryFile']['error'] != 0 &&
267 267
             $this->formData['primaryFile']['error'] != 4
268 268
         ) {
269
-            return true;
269
+            return TRUE;
270 270
         }
271 271
 
272 272
         if (is_array($this->formData['secondaryFiles'])) {
273 273
             foreach ($this->formData['secondaryFiles'] as $tmpFile) {
274 274
                 if ($tmpFile['error'] != 0 && $tmpFile['error'] != 4) {
275
-                    return true;
275
+                    return TRUE;
276 276
                 }
277 277
             }
278 278
         }
279 279
 
280
-        return false;
280
+        return FALSE;
281 281
     }
282 282
 
283
-    protected function getUploadedFile($tmpFile, $primary = false, \EWW\Dpf\Domain\Model\File $file = null)
283
+    protected function getUploadedFile($tmpFile, $primary = FALSE, \EWW\Dpf\Domain\Model\File $file = NULL)
284 284
     {
285 285
 
286 286
         if (empty($file)) {
287 287
             $file = $this->objectManager->get(File::class);
288 288
         }
289 289
 
290
-        $fileName = uniqid(time(), true);
290
+        $fileName = uniqid(time(), TRUE);
291 291
 
292 292
         \TYPO3\CMS\Core\Utility\GeneralUtility::upload_copy_move($tmpFile['tmp_name'], $this->uploadPath . $fileName);
293 293
 
Please login to merge, or discard this patch.