Completed
Push — master ( 2e6333...1c8f27 )
by Tim
17:33
created
Classes/Controller/PluginController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      *
70 70
      * @param $content    String
71 71
      * @param $conf        Array    Plugin configuration
72
-     * @return The Plugin Output
72
+     * @return string Plugin Output
73 73
      */
74 74
     function main($content, $conf)
75 75
     {
Please login to merge, or discard this patch.
Classes/Xclass/ContentObjectRenderer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
                 }
67 67
             }
68 68
 
69
-            $link_param = trim($link_paramA[0]);    // Link parameter value
70
-            $linkClass = trim($link_paramA[2]);        // Link class
69
+            $link_param = trim($link_paramA[0]); // Link parameter value
70
+            $linkClass = trim($link_paramA[2]); // Link class
71 71
             if ($linkClass == '-') {
72 72
                 $linkClass = '';
73 73
             }    // The '-' character means 'no class'. Necessary in order to specify a title as fourth parameter without setting the target or class!
74
-            $forceTarget = trim($link_paramA[1]);    // Target value
75
-            $forceTitle = trim($link_paramA[3]);    // Title value
74
+            $forceTarget = trim($link_paramA[1]); // Target value
75
+            $forceTitle = trim($link_paramA[3]); // Title value
76 76
             if ($forceTarget == '-') {
77 77
                 $forceTarget = '';
78 78
             }    // The '-' character means 'no target'. Necessary in order to specify a class as third parameter without setting the target!
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 $JSwindow_paramsArr['height'] = 'height=' . $JSwindowParts[2];
98 98
                 // Imploding into string:
99 99
                 $JSwindowParams = implode(',', $JSwindow_paramsArr);
100
-                $forceTarget = '';    // Resetting the target since we will use onClick.
100
+                $forceTarget = ''; // Resetting the target since we will use onClick.
101 101
             }
102 102
 
103 103
             // Internal target:
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                     ) {
144 144
                         $isLocalFile = 1;
145 145
                     } elseif ($containsSlash) {
146
-                        $isLocalFile = 2;        // Adding this so realurl directories are linked right (non-existing).
146
+                        $isLocalFile = 2; // Adding this so realurl directories are linked right (non-existing).
147 147
                     }
148 148
                 }
149 149
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                         $conf['no_cache'] = $this->stdWrap($conf['no_cache'], $conf['no_cache.']);
216 216
                     }
217 217
                     $link_params_parts = explode('#', $link_param);
218
-                    $link_param = trim($link_params_parts[0]);        // Link-data del
218
+                    $link_param = trim($link_params_parts[0]); // Link-data del
219 219
                     if (!strcmp($link_param, '')) {
220 220
                         $link_param = $GLOBALS['TSFE']->id;
221 221
                     }    // If no id or alias is given
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
                     $pairParts = GeneralUtility::trimExplode(',', $link_param);
229 229
                     if (count($pairParts) > 1) {
230 230
                         $link_param = $pairParts[0];
231
-                        $theTypeP = isset($pairParts[1]) ? $pairParts[1] : 0;        // Overruling 'type'
231
+                        $theTypeP = isset($pairParts[1]) ? $pairParts[1] : 0; // Overruling 'type'
232 232
                         $conf['additionalParams'] .= isset($pairParts[2]) ? $pairParts[2] : '';
233 233
                     }
234 234
                     // Checking if the id-parameter is an alias.
@@ -313,8 +313,8 @@  discard block
 block discarded – undo
313 313
                             // If we do not do it, TYPO3 will fail to (1) link proper page in RealURL/CoolURI because
314 314
                             // they return relative links and (2) show proper page if no RealURL/CoolURI exists when link is clicked
315 315
                             if ($enableLinksAcrossDomains && $page['doktype'] == 4 && $page['shortcut_mode'] == 0) {
316
-                                $page2 = $page;    // Save in case of broken destination or endless loop
317
-                                $maxLoopCount = 20;    // Same as in RealURL, seems enough
316
+                                $page2 = $page; // Save in case of broken destination or endless loop
317
+                                $maxLoopCount = 20; // Same as in RealURL, seems enough
318 318
                                 while ($maxLoopCount && is_array($page) && $page['doktype'] == 4 && $page['shortcut_mode'] == 0) {
319 319
                                     $page = $GLOBALS['TSFE']->sys_page->getPage(
320 320
                                         $page['shortcut'],
@@ -329,11 +329,11 @@  discard block
 block discarded – undo
329 329
                             }
330 330
 
331 331
                             // This checks if the linked id is in the rootline of this site and if not it will find the domain for that ID and prefix it:
332
-                            $tCR_rootline = $GLOBALS['TSFE']->sys_page->getRootLine($page['uid']);    // Gets rootline of linked-to page
332
+                            $tCR_rootline = $GLOBALS['TSFE']->sys_page->getRootLine($page['uid']); // Gets rootline of linked-to page
333 333
                             $tCR_flag = 0;
334 334
                             foreach ($tCR_rootline as $tCR_data) {
335 335
                                 if ($tCR_data['uid'] == $GLOBALS['TSFE']->tmpl->rootLine[0]['uid']) {
336
-                                    $tCR_flag = 1;    // OK, it was in rootline!
336
+                                    $tCR_flag = 1; // OK, it was in rootline!
337 337
                                     break;
338 338
                                 }
339 339
                                 if ($tCR_data['is_siteroot']) {
Please login to merge, or discard this patch.