Completed
Branch master (1302f3)
by Tim
02:25
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 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 namespace FRUIT\Popup\Xclass;
7 7
 
8
-use TYPO3\CMS\Core\Utility\GeneralUtility;
8
+use TYPO3\CMS\Core\Utility\GeneralUtility;
9 9
 use TYPO3\CMS\Frontend\Plugin\AbstractPlugin;
10 10
 
11 11
 /**
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
                 }
59 59
             }
60 60
 
61
-            $link_param = trim($link_paramA[0]);    // Link parameter value
62
-            $linkClass = trim($link_paramA[2]);        // Link class
61
+            $link_param = trim($link_paramA[0]); // Link parameter value
62
+            $linkClass = trim($link_paramA[2]); // Link class
63 63
             if ($linkClass == '-') {
64 64
                 $linkClass = '';
65 65
             }    // The '-' character means 'no class'. Necessary in order to specify a title as fourth parameter without setting the target or class!
66
-            $forceTarget = trim($link_paramA[1]);    // Target value
67
-            $forceTitle = trim($link_paramA[3]);    // Title value
66
+            $forceTarget = trim($link_paramA[1]); // Target value
67
+            $forceTitle = trim($link_paramA[3]); // Title value
68 68
             if ($forceTarget == '-') {
69 69
                 $forceTarget = '';
70 70
             }    // The '-' character means 'no target'. Necessary in order to specify a class as third parameter without setting the target!
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 $JSwindow_paramsArr['height'] = 'height=' . $JSwindowParts[2];
87 87
                 // Imploding into string:
88 88
                 $JSwindowParams = implode(',', $JSwindow_paramsArr);
89
-                $forceTarget = '';    // Resetting the target since we will use onClick.
89
+                $forceTarget = ''; // Resetting the target since we will use onClick.
90 90
             }
91 91
 
92 92
             // Internal target:
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     ) {
129 129
                         $isLocalFile = 1;
130 130
                     } elseif ($containsSlash) {
131
-                        $isLocalFile = 2;        // Adding this so realurl directories are linked right (non-existing).
131
+                        $isLocalFile = 2; // Adding this so realurl directories are linked right (non-existing).
132 132
                     }
133 133
                 }
134 134
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
                         $conf['no_cache'] = $this->stdWrap($conf['no_cache'], $conf['no_cache.']);
195 195
                     }
196 196
                     $link_params_parts = explode('#', $link_param);
197
-                    $link_param = trim($link_params_parts[0]);        // Link-data del
197
+                    $link_param = trim($link_params_parts[0]); // Link-data del
198 198
                     if (!strcmp($link_param, '')) {
199 199
                         $link_param = $GLOBALS['TSFE']->id;
200 200
                     }    // If no id or alias is given
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                     $pairParts = GeneralUtility::trimExplode(',', $link_param);
208 208
                     if (count($pairParts) > 1) {
209 209
                         $link_param = $pairParts[0];
210
-                        $theTypeP = isset($pairParts[1]) ? $pairParts[1] : 0;        // Overruling 'type'
210
+                        $theTypeP = isset($pairParts[1]) ? $pairParts[1] : 0; // Overruling 'type'
211 211
                         $conf['additionalParams'] .= isset($pairParts[2]) ? $pairParts[2] : '';
212 212
                     }
213 213
                     // Checking if the id-parameter is an alias.
@@ -287,8 +287,8 @@  discard block
 block discarded – undo
287 287
                             // If we do not do it, TYPO3 will fail to (1) link proper page in RealURL/CoolURI because
288 288
                             // they return relative links and (2) show proper page if no RealURL/CoolURI exists when link is clicked
289 289
                             if ($enableLinksAcrossDomains && $page['doktype'] == 4 && $page['shortcut_mode'] == 0) {
290
-                                $page2 = $page;    // Save in case of broken destination or endless loop
291
-                                $maxLoopCount = 20;    // Same as in RealURL, seems enough
290
+                                $page2 = $page; // Save in case of broken destination or endless loop
291
+                                $maxLoopCount = 20; // Same as in RealURL, seems enough
292 292
                                 while ($maxLoopCount && is_array($page) && $page['doktype'] == 4 && $page['shortcut_mode'] == 0) {
293 293
                                     $page = $GLOBALS['TSFE']->sys_page->getPage($page['shortcut'],
294 294
                                         $disableGroupAccessCheck);
@@ -301,11 +301,11 @@  discard block
 block discarded – undo
301 301
                             }
302 302
 
303 303
                             // 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:
304
-                            $tCR_rootline = $GLOBALS['TSFE']->sys_page->getRootLine($page['uid']);    // Gets rootline of linked-to page
304
+                            $tCR_rootline = $GLOBALS['TSFE']->sys_page->getRootLine($page['uid']); // Gets rootline of linked-to page
305 305
                             $tCR_flag = 0;
306 306
                             foreach ($tCR_rootline as $tCR_data) {
307 307
                                 if ($tCR_data['uid'] == $GLOBALS['TSFE']->tmpl->rootLine[0]['uid']) {
308
-                                    $tCR_flag = 1;    // OK, it was in rootline!
308
+                                    $tCR_flag = 1; // OK, it was in rootline!
309 309
                                     break;
310 310
                                 }
311 311
                                 if ($tCR_data['is_siteroot']) {
Please login to merge, or discard this patch.