Completed
Push — master ( 72a27b...32a824 )
by
unknown
16s queued 12s
created
Classes/Hooks/DataHandler.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -123,10 +123,10 @@  discard block
 block discarded – undo
123 123
                     ) {
124 124
                         // Get current configuration.
125 125
                         $result = $queryBuilder
126
-                            ->select($table . '.is_listed AS is_listed')
126
+                            ->select($table.'.is_listed AS is_listed')
127 127
                             ->from($table)
128 128
                             ->where(
129
-                                $queryBuilder->expr()->eq($table . '.uid', intval($id)),
129
+                                $queryBuilder->expr()->eq($table.'.uid', intval($id)),
130 130
                                 Helper::whereExpression($table)
131 131
                             )
132 132
                             ->setMaxResults(1)
@@ -148,10 +148,10 @@  discard block
 block discarded – undo
148 148
                     ) {
149 149
                         // Get current configuration.
150 150
                         $result = $queryBuilder
151
-                            ->select($table . '.index_autocomplete AS index_autocomplete')
151
+                            ->select($table.'.index_autocomplete AS index_autocomplete')
152 152
                             ->from($table)
153 153
                             ->where(
154
-                                $queryBuilder->expr()->eq($table . '.uid', intval($id)),
154
+                                $queryBuilder->expr()->eq($table.'.uid', intval($id)),
155 155
                                 Helper::whereExpression($table)
156 156
                             )
157 157
                             ->setMaxResults(1)
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                                 if ($solr->ready) {
230 230
                                     // Delete Solr document.
231 231
                                     $updateQuery = $solr->service->createUpdate();
232
-                                    $updateQuery->addDeleteQuery('uid:' . $id);
232
+                                    $updateQuery->addDeleteQuery('uid:'.$id);
233 233
                                     $updateQuery->addCommit();
234 234
                                     $solr->service->update($updateQuery);
235 235
                                 }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
                                 if ($doc->ready) {
240 240
                                     Indexer::add($doc, $resArray['core']);
241 241
                                 } else {
242
-                                    $this->logger->error('Failed to re-index document with UID ' . $id);
242
+                                    $this->logger->error('Failed to re-index document with UID '.$id);
243 243
                                 }
244 244
                             }
245 245
                         }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
                         if ($solr->ready) {
310 310
                             // Delete Solr document.
311 311
                             $updateQuery = $solr->service->createUpdate();
312
-                            $updateQuery->addDeleteQuery('uid:' . $id);
312
+                            $updateQuery->addDeleteQuery('uid:'.$id);
313 313
                             $updateQuery->addCommit();
314 314
                             $solr->service->update($updateQuery);
315 315
                             if ($command == 'delete') {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                         if ($doc->ready) {
323 323
                             Indexer::add($doc, $resArray['core']);
324 324
                         } else {
325
-                            $this->logger->error('Failed to re-index document with UID ' . $id);
325
+                            $this->logger->error('Failed to re-index document with UID '.$id);
326 326
                         }
327 327
                         break;
328 328
                 }
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
                             // Nothing to do here.
377 377
                         }
378 378
                     }
379
-                    $this->logger->warning('Core ' . $resArray['core'] . ' could not be deleted from Apache Solr');
379
+                    $this->logger->warning('Core '.$resArray['core'].' could not be deleted from Apache Solr');
380 380
                 }
381 381
             }
382 382
         }
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
  * @subpackage dlf
32 32
  * @access public
33 33
  */
34
-class DataHandler implements LoggerAwareInterface
35
-{
34
+class DataHandler implements LoggerAwareInterface {
36 35
     use LoggerAwareTrait;
37 36
 
38 37
     /**
@@ -47,8 +46,7 @@  discard block
 block discarded – undo
47 46
      *
48 47
      * @return void
49 48
      */
50
-    public function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray)
51
-    {
49
+    public function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray) {
52 50
         if ($status == 'new') {
53 51
             switch ($table) {
54 52
                     // Field post-processing for table "tx_dlf_documents".
@@ -179,8 +177,7 @@  discard block
 block discarded – undo
179 177
      *
180 178
      * @return void
181 179
      */
182
-    public function processDatamap_afterDatabaseOperations($status, $table, $id, &$fieldArray)
183
-    {
180
+    public function processDatamap_afterDatabaseOperations($status, $table, $id, &$fieldArray) {
184 181
         if ($status == 'update') {
185 182
             switch ($table) {
186 183
                     // After database operations for table "tx_dlf_documents".
@@ -260,8 +257,7 @@  discard block
 block discarded – undo
260 257
      *
261 258
      * @return void
262 259
      */
263
-    public function processCmdmap_postProcess($command, $table, $id)
264
-    {
260
+    public function processCmdmap_postProcess($command, $table, $id) {
265 261
         if (
266 262
             in_array($command, ['move', 'delete', 'undelete'])
267 263
             && $table == 'tx_dlf_documents'
Please login to merge, or discard this patch.
Classes/Hooks/UserFunc.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
     public function displayThumbnail(&$params)
57 57
     {
58 58
         // Simulate TCA field type "passthrough".
59
-        $output = '<input type="hidden" name="' . $params['itemFormElName'] . '" value="' . $params['itemFormElValue'] . '" />';
59
+        $output = '<input type="hidden" name="'.$params['itemFormElName'].'" value="'.$params['itemFormElValue'].'" />';
60 60
         if (!empty($params['itemFormElValue'])) {
61
-            $output .= '<img alt="Thumbnail" title="' . $params['itemFormElValue'] . '" src="' . $params['itemFormElValue'] . '" />';
61
+            $output .= '<img alt="Thumbnail" title="'.$params['itemFormElValue'].'" src="'.$params['itemFormElValue'].'" />';
62 62
         }
63 63
         return $output;
64 64
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             if ($doc->ready) {
115 115
                 return $doc;
116 116
             } else {
117
-                $this->logger->warning('Failed to load document with UID ' . $piVars['id']);
117
+                $this->logger->warning('Failed to load document with UID '.$piVars['id']);
118 118
             }
119 119
         } elseif (!empty($piVars['recordId'])) {
120 120
             $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 // Try to load document.
136 136
                 return $this->loadDocument(['id' => $resArray['uid']]);
137 137
             } else {
138
-                $this->logger->warning('Failed to load document with record ID "' . $piVars['recordId'] . '"');
138
+                $this->logger->warning('Failed to load document with record ID "'.$piVars['recordId'].'"');
139 139
             }
140 140
         }
141 141
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@  discard block
 block discarded – undo
30 30
  * @subpackage dlf
31 31
  * @access public
32 32
  */
33
-class UserFunc implements LoggerAwareInterface
34
-{
33
+class UserFunc implements LoggerAwareInterface {
35 34
     use LoggerAwareTrait;
36 35
 
37 36
     /**
@@ -53,8 +52,7 @@  discard block
 block discarded – undo
53 52
      *
54 53
      * @return string HTML <img> tag for thumbnail
55 54
      */
56
-    public function displayThumbnail(&$params)
57
-    {
55
+    public function displayThumbnail(&$params) {
58 56
         // Simulate TCA field type "passthrough".
59 57
         $output = '<input type="hidden" name="' . $params['itemFormElName'] . '" value="' . $params['itemFormElValue'] . '" />';
60 58
         if (!empty($params['itemFormElValue'])) {
@@ -73,8 +71,7 @@  discard block
 block discarded – undo
73 71
      *
74 72
      * @return string The type of the current document or 'undefined'
75 73
      */
76
-    public function getDocumentType(int $cPid)
77
-    {
74
+    public function getDocumentType(int $cPid) {
78 75
         $type = 'undefined';
79 76
         // Load document with current plugin parameters.
80 77
         $doc = $this->loadDocument(GeneralUtility::_GPmerged($this->prefixId));
@@ -105,8 +102,7 @@  discard block
 block discarded – undo
105 102
      *
106 103
      * @return \Kitodo\Dlf\Common\Document Instance of the current document
107 104
      */
108
-    protected function loadDocument(array $piVars)
109
-    {
105
+    protected function loadDocument(array $piVars) {
110 106
         // Check for required variable.
111 107
         if (!empty($piVars['id'])) {
112 108
             // Get instance of document.
Please login to merge, or discard this patch.
Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
     {
63 63
         return new ExpressionFunction(
64 64
             'getDocumentType',
65
-            function () {
65
+            function() {
66 66
                 // Not implemented, we only use the evaluator
67 67
             },
68
-            function ($arguments, $cPid) {
68
+            function($arguments, $cPid) {
69 69
                 /** @var RequestWrapper $requestWrapper */
70 70
                 $requestWrapper = $arguments['request'];
71 71
                 $queryParams = $requestWrapper->getQueryParams();
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             if ($doc->ready) {
112 112
                 return $doc;
113 113
             } else {
114
-                $this->logger->warning('Failed to load document with UID ' . $piVars['id']);
114
+                $this->logger->warning('Failed to load document with UID '.$piVars['id']);
115 115
             }
116 116
         } elseif (!empty($piVars['recordId'])) {
117 117
             $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 // Try to load document.
133 133
                 return $this->loadDocument(['id' => $resArray['uid']]);
134 134
             } else {
135
-                $this->logger->warning('Failed to load document with record ID "' . $piVars['recordId'] . '"');
135
+                $this->logger->warning('Failed to load document with record ID "'.$piVars['recordId'].'"');
136 136
             }
137 137
         }
138 138
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @return ExpressionFunction[] An array of Function instances
48 48
      */
49
-    public function getFunctions()
50
-    {
49
+    public function getFunctions() {
51 50
         return [
52 51
             $this->getDocumentTypeFunction(),
53 52
         ];
@@ -102,8 +101,7 @@  discard block
 block discarded – undo
102 101
      *
103 102
      * @return \Kitodo\Dlf\Common\Document Instance of the current document
104 103
      */
105
-    protected function loadDocument(array $piVars)
106
-    {
104
+    protected function loadDocument(array $piVars) {
107 105
         // Check for required variable.
108 106
         if (!empty($piVars['id'])) {
109 107
             // Get instance of document.
Please login to merge, or discard this patch.
Classes/Plugin/PageView.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
             $(document).ready(function() {
79 79
                 if (dlfUtils.exists(dlfViewer)) {
80 80
                     tx_dlf_viewer = new dlfViewer({
81
-                        controls: ["' . implode('", "', $this->controls) . '"],
82
-                        div: "' . $this->conf['elementId'] . '",
83
-                        images: ' . json_encode($this->images) . ',
84
-                        fulltexts: ' . json_encode($this->fulltexts) . ',
85
-                        annotationContainers: ' . json_encode($this->annotationContainers) . ',
86
-                        useInternalProxy: ' . ($this->conf['useInternalProxy'] ? 1 : 0) . '
81
+                        controls: ["' . implode('", "', $this->controls).'"],
82
+                        div: "' . $this->conf['elementId'].'",
83
+                        images: ' . json_encode($this->images).',
84
+                        fulltexts: ' . json_encode($this->fulltexts).',
85
+                        annotationContainers: ' . json_encode($this->annotationContainers).',
86
+                        useInternalProxy: ' . ($this->conf['useInternalProxy'] ? 1 : 0).'
87 87
                     });
88 88
                 }
89 89
             });
@@ -105,14 +105,14 @@  discard block
 block discarded – undo
105 105
         $markerArray = [];
106 106
         if ($this->piVars['id']) {
107 107
             if ($this->conf['crop']) {
108
-                $markerArray['###EDITBUTTON###'] = '<a href="javascript: tx_dlf_viewer.activateSelection();" title="' . htmlspecialchars($this->pi_getLL('editMode', '')) . '">' . htmlspecialchars($this->pi_getLL('editMode', '')) . '</a>';
109
-                $markerArray['###EDITREMOVE###'] = '<a href="javascript: tx_dlf_viewer.resetCropSelection();" title="' . htmlspecialchars($this->pi_getLL('editRemove', '')) . '">' . htmlspecialchars($this->pi_getLL('editRemove', '')) . '</a>';
108
+                $markerArray['###EDITBUTTON###'] = '<a href="javascript: tx_dlf_viewer.activateSelection();" title="'.htmlspecialchars($this->pi_getLL('editMode', '')).'">'.htmlspecialchars($this->pi_getLL('editMode', '')).'</a>';
109
+                $markerArray['###EDITREMOVE###'] = '<a href="javascript: tx_dlf_viewer.resetCropSelection();" title="'.htmlspecialchars($this->pi_getLL('editRemove', '')).'">'.htmlspecialchars($this->pi_getLL('editRemove', '')).'</a>';
110 110
             } else {
111 111
                 $markerArray['###EDITBUTTON###'] = '';
112 112
                 $markerArray['###EDITREMOVE###'] = '';
113 113
             }
114 114
             if ($this->conf['magnifier']) {
115
-                $markerArray['###MAGNIFIER###'] = '<a href="javascript: tx_dlf_viewer.activateMagnifier();" title="' . htmlspecialchars($this->pi_getLL('magnifier', '')) . '">' . htmlspecialchars($this->pi_getLL('magnifier', '')) . '</a>';
115
+                $markerArray['###MAGNIFIER###'] = '<a href="javascript: tx_dlf_viewer.activateMagnifier();" title="'.htmlspecialchars($this->pi_getLL('magnifier', '')).'">'.htmlspecialchars($this->pi_getLL('magnifier', '')).'</a>';
116 116
             } else {
117 117
                 $markerArray['###MAGNIFIER###'] = '';
118 118
             }
@@ -147,15 +147,15 @@  discard block
 block discarded – undo
147 147
                 'additionalParams' => GeneralUtility::implodeArrayForUrl($this->prefixId, $params, '', true, false),
148 148
                 'title' => $label
149 149
             ];
150
-            $output = '<form id="addToBasketForm" action="' . $this->cObj->typoLink_URL($basketConf) . '" method="post">';
151
-            $output .= '<input type="hidden" name="tx_dlf[startpage]" id="startpage" value="' . htmlspecialchars($this->piVars['page']) . '">';
152
-            $output .= '<input type="hidden" name="tx_dlf[endpage]" id="endpage" value="' . htmlspecialchars($this->piVars['page']) . '">';
150
+            $output = '<form id="addToBasketForm" action="'.$this->cObj->typoLink_URL($basketConf).'" method="post">';
151
+            $output .= '<input type="hidden" name="tx_dlf[startpage]" id="startpage" value="'.htmlspecialchars($this->piVars['page']).'">';
152
+            $output .= '<input type="hidden" name="tx_dlf[endpage]" id="endpage" value="'.htmlspecialchars($this->piVars['page']).'">';
153 153
             $output .= '<input type="hidden" name="tx_dlf[startX]" id="startX">';
154 154
             $output .= '<input type="hidden" name="tx_dlf[startY]" id="startY">';
155 155
             $output .= '<input type="hidden" name="tx_dlf[endX]" id="endX">';
156 156
             $output .= '<input type="hidden" name="tx_dlf[endY]" id="endY">';
157 157
             $output .= '<input type="hidden" name="tx_dlf[rotation]" id="rotation">';
158
-            $output .= '<button id="submitBasketForm" onclick="this.form.submit()">' . $label . '</button>';
158
+            $output .= '<button id="submitBasketForm" onclick="this.form.submit()">'.$label.'</button>';
159 159
             $output .= '</form>';
160 160
             $output .= '<script>';
161 161
             $output .= '$(document).ready(function() { $("#submitBasketForm").click(function() { $("#addToBasketForm").submit(); }); });';
@@ -191,14 +191,14 @@  discard block
 block discarded – undo
191 191
                         'parameter' => $GLOBALS['TSFE']->id,
192 192
                         'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
193 193
                         'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
194
-                        'additionalParams' => '&eID=tx_dlf_pageview_proxy&url=' . urlencode($image['url']),
194
+                        'additionalParams' => '&eID=tx_dlf_pageview_proxy&url='.urlencode($image['url']),
195 195
                     ];
196 196
                     $image['url'] = $this->cObj->typoLink_URL($linkConf);
197 197
                 }
198 198
                 $image['mimetype'] = $this->doc->getFileMimeType($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$page]]['files'][$fileGrpImages]);
199 199
                 break;
200 200
             } else {
201
-                $this->logger->warning('File not found in fileGrp "' . $fileGrpImages . '"');
201
+                $this->logger->warning('File not found in fileGrp "'.$fileGrpImages.'"');
202 202
             }
203 203
         }
204 204
         return $image;
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                         'parameter' => $GLOBALS['TSFE']->id,
228 228
                         'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
229 229
                         'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
230
-                        'additionalParams' => '&eID=tx_dlf_pageview_proxy&url=' . urlencode($fulltext['url']),
230
+                        'additionalParams' => '&eID=tx_dlf_pageview_proxy&url='.urlencode($fulltext['url']),
231 231
                     ];
232 232
                     $fulltext['url'] = $this->cObj->typoLink_URL($linkConf);
233 233
                 }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             }
237 237
         }
238 238
         if (empty($fulltext)) {
239
-            $this->logger->warning('File not found in fileGrp "' . $this->conf['fileGrpFulltext'] . '"');
239
+            $this->logger->warning('File not found in fileGrp "'.$this->conf['fileGrpFulltext'].'"');
240 240
         }
241 241
         return $fulltext;
242 242
     }
Please login to merge, or discard this patch.
Classes/Plugin/Tools/ImageDownloadTool.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,13 +114,13 @@
 block discarded – undo
114 114
                     'parameter' => $image['url'],
115 115
                     'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
116 116
                     'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
117
-                    'title' => $label . $mimetypeLabel,
117
+                    'title' => $label.$mimetypeLabel,
118 118
                     'additionalParams' => '',
119 119
                 ];
120
-                $imageLink = $this->cObj->typoLink($label . $mimetypeLabel, $linkConf);
120
+                $imageLink = $this->cObj->typoLink($label.$mimetypeLabel, $linkConf);
121 121
                 break;
122 122
             } else {
123
-                $this->logger->warning('File not found in fileGrp "' . $fileGrp . '"');
123
+                $this->logger->warning('File not found in fileGrp "'.$fileGrp.'"');
124 124
             }
125 125
         }
126 126
         return $imageLink;
Please login to merge, or discard this patch.
Classes/Plugin/Tools/PdfDownloadTool.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             empty($page1Link)
116 116
             && empty($page2Link)
117 117
         ) {
118
-            $this->logger->warning('File not found in fileGrps "' . $this->conf['fileGrpDownload'] . '"');
118
+            $this->logger->warning('File not found in fileGrps "'.$this->conf['fileGrpDownload'].'"');
119 119
         }
120 120
         // Wrap URLs with HTML.
121 121
         $linkConf = [
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $linkConf['title'] = $this->pi_getLL('rightPage', '');
138 138
             $page2Link = $this->cObj->typoLink($this->pi_getLL('rightPage', ''), $linkConf);
139 139
         }
140
-        return $page1Link . $page2Link;
140
+        return $page1Link.$page2Link;
141 141
     }
142 142
 
143 143
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             ];
175 175
             $workLink = $this->cObj->typoLink($this->pi_getLL('work', ''), $linkConf);
176 176
         } else {
177
-            $this->logger->warning('File not found in fileGrp "' . $this->conf['fileGrpDownload'] . '"');
177
+            $this->logger->warning('File not found in fileGrp "'.$this->conf['fileGrpDownload'].'"');
178 178
         }
179 179
         return $workLink;
180 180
     }
Please login to merge, or discard this patch.
Classes/Plugin/Calendar.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 $_day = date('j', $dateTimestamp);
158 158
                 $calendarIssuesByYear[$_year][$_month][$_day][] = $issue;
159 159
             } else {
160
-                $this->logger->warning('Document with UID ' . $issue['uid'] . 'has no valid date of publication');
160
+                $this->logger->warning('Document with UID '.$issue['uid'].'has no valid date of publication');
161 161
             }
162 162
         }
163 163
         // Sort by years.
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             'parameter' => $GLOBALS['TSFE']->id,
207 207
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
208 208
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
209
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($this->doc->uid),
209
+            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->uid),
210 210
         ];
211 211
         $linkTitleData = $this->doc->getTitledata();
212 212
         $linkTitle = !empty($linkTitleData['mets_orderlabel'][0]) ? $linkTitleData['mets_orderlabel'][0] : $linkTitleData['mets_label'][0];
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
217 217
             'parameter' => $GLOBALS['TSFE']->id,
218 218
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
219 219
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
220
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($this->doc->parentId),
220
+            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->parentId),
221 221
         ];
222
-        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')) . ' ' . $this->doc->getTitle($this->doc->parentId), $linkConf);
222
+        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')).' '.$this->doc->getTitle($this->doc->parentId), $linkConf);
223 223
         // Fill marker array.
224 224
         $markerArray = [
225 225
             '###CALENDARVIEWACTIVE###' => count($this->allIssues) > 5 ? 'active' : '',
@@ -260,19 +260,19 @@  discard block
 block discarded – undo
260 260
                 '###DAYFRI_NAME###' => strftime('%a', strtotime('last Friday')),
261 261
                 '###DAYSAT_NAME###' => strftime('%a', strtotime('last Saturday')),
262 262
                 '###DAYSUN_NAME###' => strftime('%a', strtotime('last Sunday')),
263
-                '###MONTHNAME###'  => strftime('%B', strtotime($year . '-' . $i . '-1')) . ' ' . $year,
264
-                '###CALYEAR###' => ($i == $firstMonth) ? '<div class="year">' . $year . '</div>' : ''
263
+                '###MONTHNAME###'  => strftime('%B', strtotime($year.'-'.$i.'-1')).' '.$year,
264
+                '###CALYEAR###' => ($i == $firstMonth) ? '<div class="year">'.$year.'</div>' : ''
265 265
             ];
266 266
             // Fill the month markers.
267 267
             $subPartContentMonth = $this->templateService->substituteMarkerArray($subParts['month'], $markerArray);
268 268
             // Reset week content of new month.
269 269
             $subPartContentWeek = '';
270
-            $firstOfMonth = strtotime($year . '-' . $i . '-1');
270
+            $firstOfMonth = strtotime($year.'-'.$i.'-1');
271 271
             $lastOfMonth = strtotime('last day of', ($firstOfMonth));
272 272
             $firstOfMonthStart = strtotime('last Monday', $firstOfMonth);
273 273
             // There are never more than 6 weeks in a month.
274 274
             for ($j = 0; $j <= 5; $j++) {
275
-                $firstDayOfWeek = strtotime('+ ' . $j . ' Week', $firstOfMonthStart);
275
+                $firstDayOfWeek = strtotime('+ '.$j.' Week', $firstOfMonthStart);
276 276
                 $weekArray = [
277 277
                     '###DAYMON###' => '&nbsp;',
278 278
                     '###DAYTUE###' => '&nbsp;',
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
                 ];
285 285
                 // Every week has seven days. ;-)
286 286
                 for ($k = 0; $k <= 6; $k++) {
287
-                    $currentDayTime = strtotime('+ ' . $k . ' Day', $firstDayOfWeek);
287
+                    $currentDayTime = strtotime('+ '.$k.' Day', $firstDayOfWeek);
288 288
                     if (
289 289
                         $currentDayTime >= $firstOfMonth
290 290
                         && $currentDayTime <= $lastOfMonth
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                                             'parameter' => $this->conf['targetPid'],
305 305
                                             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
306 306
                                             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
307
-                                            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($issue['uid']),
307
+                                            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($issue['uid']),
308 308
                                             'ATagParams' => ' class="title"',
309 309
                                         ];
310 310
                                         $dayLinksText[] = $this->cObj->typoLink($dayLinkLabel, $linkConf);
@@ -316,13 +316,13 @@  discard block
 block discarded – undo
316 316
                             if (!empty($dayLinksText)) {
317 317
                                 $dayLinksList = '<ul>';
318 318
                                 foreach ($dayLinksText as $link) {
319
-                                    $dayLinksList .= '<li>' . $link . '</li>';
319
+                                    $dayLinksList .= '<li>'.$link.'</li>';
320 320
                                 }
321 321
                                 $dayLinksList .= '</ul>';
322 322
                             }
323
-                            $dayLinkDiv = '<div class="issues"><h4>' . strftime('%d', $currentDayTime) . '</h4><div>' . $dayLinksList . '</div></div>';
323
+                            $dayLinkDiv = '<div class="issues"><h4>'.strftime('%d', $currentDayTime).'</h4><div>'.$dayLinksList.'</div></div>';
324 324
                         }
325
-                        switch (strftime('%w', strtotime('+ ' . $k . ' Day', $firstDayOfWeek))) {
325
+                        switch (strftime('%w', strtotime('+ '.$k.' Day', $firstDayOfWeek))) {
326 326
                             case '0':
327 327
                                 $weekArray['###DAYSUN###'] = ((int) $dayLinks === (int) date('j', $currentDayTime)) ? $dayLinkDiv : strftime('%d', $currentDayTime);
328 328
                                 break;
@@ -418,8 +418,8 @@  discard block
 block discarded – undo
418 418
                     'parameter' => $GLOBALS['TSFE']->id,
419 419
                     'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
420 420
                     'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
421
-                    'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($year['uid']),
422
-                    'title' => $titleAnchor . ': ' . $year['title']
421
+                    'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($year['uid']),
422
+                    'title' => $titleAnchor.': '.$year['title']
423 423
                 ];
424 424
                 $yearArray = [
425 425
                     '###YEARNAME###' => $this->cObj->typoLink($year['title'], $linkConf),
@@ -433,9 +433,9 @@  discard block
 block discarded – undo
433 433
             'parameter' => $GLOBALS['TSFE']->id,
434 434
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
435 435
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
436
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . $this->doc->uid,
436
+            'additionalParams' => '&'.$this->prefixId.'[id]='.$this->doc->uid,
437 437
         ];
438
-        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')) . ' ' . $this->doc->getTitle($this->doc->uid), $linkConf);
438
+        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')).' '.$this->doc->getTitle($this->doc->uid), $linkConf);
439 439
         // Fill markers.
440 440
         $markerArray = [
441 441
             '###LABEL_CHOOSE_YEAR###' => htmlspecialchars($this->pi_getLL('label.please_choose_year')),
Please login to merge, or discard this patch.
Classes/Plugin/Statistics.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         $this->init($conf);
45 45
         // Turn cache on.
46
-        $this->setCache(true);
46
+        $this->setCache(TRUE);
47 47
         // Quit without doing anything if required configuration variables are not set.
48 48
         if (empty($this->conf['pages'])) {
49 49
             $this->logger->warning('Incomplete plugin configuration');
Please login to merge, or discard this patch.
Classes/Plugin/Collection.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -175,12 +175,12 @@  discard block
 block discarded – undo
175 175
         foreach ($collections as $collection) {
176 176
             $solr_query = '';
177 177
             if ($collection['index_query'] != '') {
178
-                $solr_query .= '(' . $collection['index_query'] . ')';
178
+                $solr_query .= '('.$collection['index_query'].')';
179 179
             } else {
180
-                $solr_query .= 'collection:("' . $collection['index_name'] . '")';
180
+                $solr_query .= 'collection:("'.$collection['index_name'].'")';
181 181
             }
182
-            $partOfNothing = $solr->search_raw($solr_query . ' AND partof:0 AND toplevel:true', $params);
183
-            $partOfSomething = $solr->search_raw($solr_query . ' AND NOT partof:0 AND toplevel:true', $params);
182
+            $partOfNothing = $solr->search_raw($solr_query.' AND partof:0 AND toplevel:true', $params);
183
+            $partOfSomething = $solr->search_raw($solr_query.' AND NOT partof:0 AND toplevel:true', $params);
184 184
             // Titles are all documents that are "root" elements i.e. partof == 0
185 185
             $collection['titles'] = [];
186 186
             foreach ($partOfNothing as $doc) {
@@ -218,14 +218,14 @@  discard block
 block discarded – undo
218 218
             $markerArray[$_key]['###TITLE###'] = $this->cObj->typoLink(htmlspecialchars($collection['label']), $conf);
219 219
             // Add feed link if applicable.
220 220
             if (!empty($this->conf['targetFeed'])) {
221
-                $img = '<img src="' . \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey)) . 'Resources/Public/Icons/txdlffeeds.png" alt="' . htmlspecialchars($this->pi_getLL('feedAlt', '')) . '" title="' . htmlspecialchars($this->pi_getLL('feedTitle', '')) . '" />';
221
+                $img = '<img src="'.\TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey)).'Resources/Public/Icons/txdlffeeds.png" alt="'.htmlspecialchars($this->pi_getLL('feedAlt', '')).'" title="'.htmlspecialchars($this->pi_getLL('feedTitle', '')).'" />';
222 222
                 $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, [$this->prefixId => ['collection' => $collection['uid']]], false, $this->conf['targetFeed']);
223 223
             } else {
224 224
                 $markerArray[$_key]['###FEED###'] = '';
225 225
             }
226 226
             // Add thumbnail.
227 227
             if (!empty($collection['thumbnail'])) {
228
-                $markerArray[$_key]['###THUMBNAIL###'] = '<img alt="" title="' . htmlspecialchars($collection['label']) . '" src="' . $collection['thumbnail'] . '" />';
228
+                $markerArray[$_key]['###THUMBNAIL###'] = '<img alt="" title="'.htmlspecialchars($collection['label']).'" src="'.$collection['thumbnail'].'" />';
229 229
             } else {
230 230
                 $markerArray[$_key]['###THUMBNAIL###'] = '';
231 231
             }
@@ -233,9 +233,9 @@  discard block
 block discarded – undo
233 233
             $markerArray[$_key]['###DESCRIPTION###'] = $this->pi_RTEcssText($collection['description']);
234 234
             // Build statistic's output.
235 235
             $labelTitles = $this->pi_getLL((count($collection['titles']) > 1 ? 'titles' : 'title'), '');
236
-            $markerArray[$_key]['###COUNT_TITLES###'] = htmlspecialchars(count($collection['titles']) . $labelTitles);
236
+            $markerArray[$_key]['###COUNT_TITLES###'] = htmlspecialchars(count($collection['titles']).$labelTitles);
237 237
             $labelVolumes = $this->pi_getLL((count($collection['volumes']) > 1 ? 'volumes' : 'volume'), '');
238
-            $markerArray[$_key]['###COUNT_VOLUMES###'] = htmlspecialchars(count($collection['volumes']) . $labelVolumes);
238
+            $markerArray[$_key]['###COUNT_VOLUMES###'] = htmlspecialchars(count($collection['volumes']).$labelVolumes);
239 239
         }
240 240
         // Randomize sorting?
241 241
         if (!empty($this->conf['randomize'])) {
@@ -319,14 +319,14 @@  discard block
 block discarded – undo
319 319
                 $collectionData = $resArray;
320 320
             }
321 321
         } else {
322
-            $this->logger->warning('No collection with UID ' . $id . ' found.');
322
+            $this->logger->warning('No collection with UID '.$id.' found.');
323 323
             return;
324 324
         }
325 325
         // Fetch corresponding document UIDs from Solr.
326 326
         if ($collectionData['index_search'] != '') {
327
-            $solr_query = '(' . $collectionData['index_search'] . ')';
327
+            $solr_query = '('.$collectionData['index_search'].')';
328 328
         } else {
329
-            $solr_query = 'collection:("' . $collectionData['index_name'] . '") AND toplevel:true';
329
+            $solr_query = 'collection:("'.$collectionData['index_name'].'") AND toplevel:true';
330 330
         }
331 331
         $solr = Solr::getInstance($this->conf['solrcore']);
332 332
         if (!$solr->ready) {
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
                         'source' => 'collection',
376 376
                         'select' => $id,
377 377
                         'userid' => $collectionData['userid'],
378
-                        'params' => ['filterquery' => [['query' => 'collection_faceting:("' . $collectionData['index_name'] . '")']]],
378
+                        'params' => ['filterquery' => [['query' => 'collection_faceting:("'.$collectionData['index_name'].'")']]],
379 379
                         'core' => '',
380 380
                         'pid' => $this->conf['pages'],
381 381
                         'order' => 'title',
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
                 ];
405 405
             } else {
406 406
                 // volume_sorting should be always set - but it's not a required field. We append the uid to the array key to make it always unique.
407
-                $subparts[$resArray['partof']][$resArray['volume_sorting'] . str_pad($resArray['uid'], 9, '0', STR_PAD_LEFT)] = [
407
+                $subparts[$resArray['partof']][$resArray['volume_sorting'].str_pad($resArray['uid'], 9, '0', STR_PAD_LEFT)] = [
408 408
                     'u' => $resArray['uid'],
409 409
                     'h' => '',
410 410
                     's' => $sorting,
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
440 440
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http']
441 441
         ];
442
-        header('Location: ' . \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL($linkConf)));
442
+        header('Location: '.\TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL($linkConf)));
443 443
         exit;
444 444
     }
445 445
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $this->init($conf);
54 54
         // Turn cache on.
55
-        $this->setCache(true);
55
+        $this->setCache(TRUE);
56 56
         // Quit without doing anything if required configuration variables are not set.
57 57
         if (empty($this->conf['pages'])) {
58 58
             $this->logger->warning('Incomplete plugin configuration');
@@ -212,14 +212,14 @@  discard block
 block discarded – undo
212 212
                 'parameter' => $GLOBALS['TSFE']->id,
213 213
                 'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
214 214
                 'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
215
-                'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', true, false)
215
+                'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
216 216
             ];
217 217
             // Link collection's title to list view.
218 218
             $markerArray[$_key]['###TITLE###'] = $this->cObj->typoLink(htmlspecialchars($collection['label']), $conf);
219 219
             // Add feed link if applicable.
220 220
             if (!empty($this->conf['targetFeed'])) {
221 221
                 $img = '<img src="' . \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey)) . 'Resources/Public/Icons/txdlffeeds.png" alt="' . htmlspecialchars($this->pi_getLL('feedAlt', '')) . '" title="' . htmlspecialchars($this->pi_getLL('feedTitle', '')) . '" />';
222
-                $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, [$this->prefixId => ['collection' => $collection['uid']]], false, $this->conf['targetFeed']);
222
+                $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, [$this->prefixId => ['collection' => $collection['uid']]], FALSE, $this->conf['targetFeed']);
223 223
             } else {
224 224
                 $markerArray[$_key]['###FEED###'] = '';
225 225
             }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         if (!empty($this->conf['randomize'])) {
242 242
             ksort($markerArray, SORT_NUMERIC);
243 243
             // Don't cache the output.
244
-            $this->setCache(false);
244
+            $this->setCache(FALSE);
245 245
         }
246 246
         $entry = $this->templateService->getSubpart($this->template, '###ENTRY###');
247 247
         foreach ($markerArray as $marker) {
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                 $hookObj->showCollectionList_getCustomCollectionList($this, $this->conf['templateFile'], $content, $markerArray);
254 254
             }
255 255
         }
256
-        return $this->templateService->substituteSubpart($this->template, '###ENTRY###', $content, true);
256
+        return $this->templateService->substituteSubpart($this->template, '###ENTRY###', $content, TRUE);
257 257
     }
258 258
 
259 259
     /**
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
                         'core' => '',
380 380
                         'pid' => $this->conf['pages'],
381 381
                         'order' => 'title',
382
-                        'order.asc' => true
382
+                        'order.asc' => TRUE
383 383
                     ]
384 384
                 ];
385 385
             }
Please login to merge, or discard this patch.