Passed
Push — master ( 834a16...1c3825 )
by Goffy
09:06 queued 04:27
created
class/Files/CreateSmartyCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         $str = '';
93 93
         foreach ($attributes as $name => $value) {
94 94
             if ('_' !== $name) {
95
-                $str .= ' ' . $name . '="' . $value . '"';
95
+                $str .= ' '.$name.'="'.$value.'"';
96 96
             }
97 97
         }
98 98
 
Please login to merge, or discard this patch.
class/Common/FilesManagement.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                     throw new \RuntimeException(sprintf('Unable to create the %s directory', $folder));
36 36
                 }
37 37
 
38
-                file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>');
38
+                file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>');
39 39
             }
40 40
         } catch (\Exception $e) {
41 41
             echo 'Caught exception: ', $e->getMessage(), '<br>';
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
         $dir = opendir($src);
62 62
         //        @mkdir($dst);
63 63
         if (!@mkdir($dst) && !is_dir($dst)) {
64
-            throw new \RuntimeException('The directory ' . $dst . ' could not be created.');
64
+            throw new \RuntimeException('The directory '.$dst.' could not be created.');
65 65
         }
66 66
         while (false !== ($file = readdir($dir))) {
67 67
             if (('.' !== $file) && ('..' !== $file)) {
68
-                if (is_dir($src . '/' . $file)) {
69
-                    self::recurseCopy($src . '/' . $file, $dst . '/' . $file);
68
+                if (is_dir($src.'/'.$file)) {
69
+                    self::recurseCopy($src.'/'.$file, $dst.'/'.$file);
70 70
                 } else {
71
-                    copy($src . '/' . $file, $dst . '/' . $file);
71
+                    copy($src.'/'.$file, $dst.'/'.$file);
72 72
                 }
73 73
             }
74 74
         }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                 self::rrmdir($fObj->getPathname());
208 208
             }
209 209
         }
210
-        $iterator = null;   // clear iterator Obj to close file/directory
210
+        $iterator = null; // clear iterator Obj to close file/directory
211 211
         return rmdir($src); // remove the directory & return results
212 212
     }
213 213
 
@@ -240,14 +240,14 @@  discard block
 block discarded – undo
240 240
         $iterator = new \DirectoryIterator($src);
241 241
         foreach ($iterator as $fObj) {
242 242
             if ($fObj->isFile()) {
243
-                rename($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
243
+                rename($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
244 244
             } elseif (!$fObj->isDot() && $fObj->isDir()) {
245 245
                 // Try recursively on directory
246
-                self::rmove($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
246
+                self::rmove($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
247 247
                 //                rmdir($fObj->getPath()); // now delete the directory
248 248
             }
249 249
         }
250
-        $iterator = null;   // clear iterator Obj to close file/directory
250
+        $iterator = null; // clear iterator Obj to close file/directory
251 251
         return rmdir($src); // remove the directory & return results
252 252
     }
253 253
 
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
         $iterator = new \DirectoryIterator($src);
284 284
         foreach ($iterator as $fObj) {
285 285
             if ($fObj->isFile()) {
286
-                copy($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
286
+                copy($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
287 287
             } elseif (!$fObj->isDot() && $fObj->isDir()) {
288
-                self::rcopy($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
288
+                self::rcopy($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
289 289
             }
290 290
         }
291 291
 
Please login to merge, or discard this patch.
class/Common/ServerStats.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
         //        $query = $GLOBALS['xoopsDB']->query($sql);
37 37
         //        list($meta) = $GLOBALS['xoopsDB']->fetchRow($query);
38 38
         $html .= '<fieldset>';
39
-        $html .= "<legend style='font-weight: bold; color: #900;'>" . constant('CO_' . $moduleDirNameUpper . '_IMAGEINFO') . '</legend>';
39
+        $html .= "<legend style='font-weight: bold; color: #900;'>".constant('CO_'.$moduleDirNameUpper.'_IMAGEINFO').'</legend>';
40 40
         $html .= "<div style='padding: 8px;'>";
41 41
         //        $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_METAVERSION') . $meta . "</div>";
42 42
         //        $html .= "<br>";
43 43
         //        $html .= "<br>";
44
-        $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_SPHPINI') . '</div>';
44
+        $html .= '<div>'.constant('CO_'.$moduleDirNameUpper.'_SPHPINI').'</div>';
45 45
         $html .= '<ul>';
46 46
 
47
-        $gdlib = function_exists('gd_info') ? '<span style="color: #008000;">' . constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: #ff0000;">' . constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>';
48
-        $html  .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib;
47
+        $gdlib = function_exists('gd_info') ? '<span style="color: #008000;">'.constant('CO_'.$moduleDirNameUpper.'_GDON').'</span>' : '<span style="color: #ff0000;">'.constant('CO_'.$moduleDirNameUpper.'_GDOFF').'</span>';
48
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS').$gdlib;
49 49
         if (function_exists('gd_info')) {
50 50
             if (true === ($gdlib = gd_info())) {
51
-                $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>';
51
+                $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_GDLIBVERSION').'<b>'.$gdlib['GD Version'].'</b>';
52 52
             }
53 53
         }
54 54
 
@@ -58,18 +58,18 @@  discard block
 block discarded – undo
58 58
         //    $registerglobals = (!ini_get('register_globals')) ? "<span style=\"color: #008000;\">" . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>' : "<span style=\"color: #ff0000;\">" . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>';
59 59
         //    $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals;
60 60
 
61
-        $downloads = ini_get('file_uploads') ? '<span style="color: #008000;">' . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: #ff0000;">' . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>';
62
-        $html      .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads;
61
+        $downloads = ini_get('file_uploads') ? '<span style="color: #008000;">'.constant('CO_'.$moduleDirNameUpper.'_ON').'</span>' : '<span style="color: #ff0000;">'.constant('CO_'.$moduleDirNameUpper.'_OFF').'</span>';
62
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS').$downloads;
63 63
 
64
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: #0000ff;">' . ini_get('upload_max_filesize') . '</span></b>';
65
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: #0000ff;">' . ini_get('post_max_size') . '</span></b>';
66
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT') . ' <b><span style="color: #0000ff;">' . ini_get('memory_limit') . '</span></b>';
64
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE').' <b><span style="color: #0000ff;">'.ini_get('upload_max_filesize').'</span></b>';
65
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE').' <b><span style="color: #0000ff;">'.ini_get('post_max_size').'</span></b>';
66
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT').' <b><span style="color: #0000ff;">'.ini_get('memory_limit').'</span></b>';
67 67
         $html .= '</ul>';
68 68
         $html .= '<ul>';
69
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERPATH') . ' <b>' . XOOPS_ROOT_PATH . '</b>';
69
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_SERVERPATH').' <b>'.XOOPS_ROOT_PATH.'</b>';
70 70
         $html .= '</ul>';
71 71
         $html .= '<br>';
72
-        $html .= constant('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC') . '';
72
+        $html .= constant('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC').'';
73 73
         $html .= '</div>';
74 74
         $html .= '</fieldset><br>';
75 75
 
Please login to merge, or discard this patch.
class/Common/ModuleFeedback.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -71,29 +71,29 @@  discard block
 block discarded – undo
71 71
         $moduleDirNameUpper = mb_strtoupper($moduleDirName);
72 72
         // Get Theme Form
73 73
         xoops_load('XoopsFormLoader');
74
-        $form = new \XoopsThemeForm(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_FORM_TITLE'), 'formfeedback', 'feedback.php', 'post', true);
74
+        $form = new \XoopsThemeForm(constant('CO_'.$moduleDirNameUpper.'_'.'FB_FORM_TITLE'), 'formfeedback', 'feedback.php', 'post', true);
75 75
         $form->setExtra('enctype="multipart/form-data"');
76 76
 
77
-        $recipient = new \XoopsFormText(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_RECIPIENT'), 'recipient', 50, 255, $GLOBALS['xoopsModule']->getInfo('author_mail'));
77
+        $recipient = new \XoopsFormText(constant('CO_'.$moduleDirNameUpper.'_'.'FB_RECIPIENT'), 'recipient', 50, 255, $GLOBALS['xoopsModule']->getInfo('author_mail'));
78 78
         $recipient->setExtra('disabled="disabled"');
79 79
         $form->addElement($recipient);
80
-        $your_name = new \XoopsFormText(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME'), 'your_name', 50, 255, $this->name);
81
-        $your_name->setExtra('placeholder="' . constant('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME_PLACEHOLER') . '"');
80
+        $your_name = new \XoopsFormText(constant('CO_'.$moduleDirNameUpper.'_'.'FB_NAME'), 'your_name', 50, 255, $this->name);
81
+        $your_name->setExtra('placeholder="'.constant('CO_'.$moduleDirNameUpper.'_'.'FB_NAME_PLACEHOLER').'"');
82 82
         $form->addElement($your_name);
83
-        $your_site = new \XoopsFormText(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE'), 'your_site', 50, 255, $this->site);
84
-        $your_site->setExtra('placeholder="' . constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE_PLACEHOLER') . '"');
83
+        $your_site = new \XoopsFormText(constant('CO_'.$moduleDirNameUpper.'_'.'FB_SITE'), 'your_site', 50, 255, $this->site);
84
+        $your_site->setExtra('placeholder="'.constant('CO_'.$moduleDirNameUpper.'_'.'FB_SITE_PLACEHOLER').'"');
85 85
         $form->addElement($your_site);
86
-        $your_mail = new \XoopsFormText(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL'), 'your_mail', 50, 255, $this->email);
87
-        $your_mail->setExtra('placeholder="' . constant('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL_PLACEHOLER') . '"');
86
+        $your_mail = new \XoopsFormText(constant('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL'), 'your_mail', 50, 255, $this->email);
87
+        $your_mail->setExtra('placeholder="'.constant('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL_PLACEHOLER').'"');
88 88
         $form->addElement($your_mail);
89 89
 
90
-        $fbtypeSelect = new \XoopsFormSelect(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE'), 'fb_type', $this->type);
90
+        $fbtypeSelect = new \XoopsFormSelect(constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE'), 'fb_type', $this->type);
91 91
         $fbtypeSelect->addOption('', '');
92
-        $fbtypeSelect->addOption(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_SUGGESTION'), constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_SUGGESTION'));
93
-        $fbtypeSelect->addOption(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_BUGS'), constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_BUGS'));
94
-        $fbtypeSelect->addOption(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_TESTIMONIAL'), constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_TESTIMONIAL'));
95
-        $fbtypeSelect->addOption(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_FEATURES'), constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_FEATURES'));
96
-        $fbtypeSelect->addOption(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_OTHERS'), constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_OTHERS'));
92
+        $fbtypeSelect->addOption(constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_SUGGESTION'), constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_SUGGESTION'));
93
+        $fbtypeSelect->addOption(constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_BUGS'), constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_BUGS'));
94
+        $fbtypeSelect->addOption(constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_TESTIMONIAL'), constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_TESTIMONIAL'));
95
+        $fbtypeSelect->addOption(constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_FEATURES'), constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_FEATURES'));
96
+        $fbtypeSelect->addOption(constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_OTHERS'), constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_OTHERS'));
97 97
         $form->addElement($fbtypeSelect, true);
98 98
 
99 99
         $editorConfigs           = [];
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $configHandler           = xoops_getHandler('config');
109 109
         $config                  = &$configHandler->getConfigsByCat(0, $module->getVar('mid'));
110 110
         $editorConfigs['editor'] = $config['general_editor'];
111
-        $editor                  = new \XoopsFormEditor(constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT'), 'fb_content', $editorConfigs);
111
+        $editor                  = new \XoopsFormEditor(constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT'), 'fb_content', $editorConfigs);
112 112
         $form->addElement($editor, true);
113 113
 
114 114
         $form->addElement(new \XoopsFormHidden('op', 'send'));
Please login to merge, or discard this patch.
class/Common/VersionChecks.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
         //check for minimum XOOPS version
40 40
         $currentVer = mb_substr(XOOPS_VERSION, 6); // get the numeric part of string
41 41
         if (null === $requiredVer) {
42
-            $requiredVer = '' . $module->getInfo('min_xoops'); //making sure it's a string
42
+            $requiredVer = ''.$module->getInfo('min_xoops'); //making sure it's a string
43 43
         }
44 44
         $success = true;
45 45
 
46 46
         if (version_compare($currentVer, $requiredVer, '<')) {
47 47
             $success = false;
48
-            $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
48
+            $module->setErrors(sprintf(constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
49 49
         }
50 50
 
51 51
         return $success;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         if (false !== $reqVer && '' !== $reqVer) {
75 75
             if (version_compare($verNum, $reqVer, '<')) {
76
-                $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP'), $reqVer, $verNum));
76
+                $module->setErrors(sprintf(constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP'), $reqVer, $verNum));
77 77
                 $success = false;
78 78
             }
79 79
         }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $moduleDirName      = basename(dirname(dirname(__DIR__)));
96 96
         $moduleDirNameUpper = mb_strtoupper($moduleDirName);
97 97
         $update             = '';
98
-        $repository         = 'XoopsModules25x/' . $moduleDirName;
98
+        $repository         = 'XoopsModules25x/'.$moduleDirName;
99 99
         //        $repository         = 'XoopsModules25x/publisher'; //for testing only
100 100
         $ret             = '';
101 101
         $infoReleasesUrl = "https://api.github.com/repos/$repository/releases";
@@ -109,14 +109,14 @@  discard block
 block discarded – undo
109 109
                 if (false === $curlReturn) {
110 110
                     trigger_error(curl_error($curlHandle));
111 111
                 } elseif (mb_strpos($curlReturn, 'Not Found')) {
112
-                    trigger_error('Repository Not Found: ' . $infoReleasesUrl);
112
+                    trigger_error('Repository Not Found: '.$infoReleasesUrl);
113 113
                 } else {
114 114
                     $file              = json_decode($curlReturn, false);
115 115
                     $latestVersionLink = sprintf("https://github.com/$repository/archive/%s.zip", $file ? reset($file)->tag_name : $default);
116 116
                     $latestVersion     = $file[0]->tag_name;
117 117
                     $prerelease        = $file[0]->prerelease;
118 118
                     if ('master' !== $latestVersionLink) {
119
-                        $update = constant('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION') . $latestVersion;
119
+                        $update = constant('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION').$latestVersion;
120 120
                     }
121 121
                     //"PHP-standardized" version
122 122
                     $latestVersion = mb_strtolower($latestVersion);
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                         $latestVersion = str_replace('_', '', mb_strtolower($latestVersion));
125 125
                         $latestVersion = str_replace('final', '', mb_strtolower($latestVersion));
126 126
                     }
127
-                    $moduleVersion = ($helper->getModule()->getInfo('version') . '_' . $helper->getModule()->getInfo('module_status'));
127
+                    $moduleVersion = ($helper->getModule()->getInfo('version').'_'.$helper->getModule()->getInfo('module_status'));
128 128
                     //"PHP-standardized" version
129 129
                     $moduleVersion = str_replace(' ', '', mb_strtolower($moduleVersion));
130 130
                     //                    $moduleVersion = '1.0'; //for testing only
Please login to merge, or discard this patch.
class/Logo.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -112,15 +112,15 @@  discard block
 block discarded – undo
112 112
         }
113 113
 
114 114
         $dirname      = 'tdmcreate';
115
-        $iconFileName = XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32/' . basename($logoIcon);
115
+        $iconFileName = XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32/'.basename($logoIcon);
116 116
 
117 117
         //$dirFonts = TDMC_PATH . "/assets/fonts";
118 118
         //$dirLogos = TDMC_PATH . "/assets/images/logos";
119
-        $dirFonts = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/assets/fonts';
120
-        $dirLogos = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/assets/images/logos';
119
+        $dirFonts = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/assets/fonts';
120
+        $dirLogos = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/assets/images/logos';
121 121
 
122
-        if (!file_exists($imageBase = $dirLogos . '/empty.png')
123
-            || !file_exists($font = $dirFonts . '/VeraBd.ttf')
122
+        if (!file_exists($imageBase = $dirLogos.'/empty.png')
123
+            || !file_exists($font = $dirFonts.'/VeraBd.ttf')
124 124
             || !file_exists($iconFile = $iconFileName)) {
125 125
             return false;
126 126
         }
@@ -136,13 +136,13 @@  discard block
 block discarded – undo
136 136
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
137 137
 
138 138
         //$targetImage = TDMC_UPLOAD_IMGMOD_URL . "/" . $moduleDirname . "_logo.png";
139
-        $targetImage = '/uploads/' . $dirname . '/images/modules/' . $moduleDirname . '_logo.png';
139
+        $targetImage = '/uploads/'.$dirname.'/images/modules/'.$moduleDirname.'_logo.png';
140 140
 
141
-        imagepng($imageModule, XOOPS_ROOT_PATH . $targetImage);
141
+        imagepng($imageModule, XOOPS_ROOT_PATH.$targetImage);
142 142
 
143 143
         imagedestroy($imageModule);
144 144
         imagedestroy($imageIcon);
145 145
 
146
-        return XOOPS_URL . $targetImage;
146
+        return XOOPS_URL.$targetImage;
147 147
     }
148 148
 }
Please login to merge, or discard this patch.
admin/logo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  * @author          Txmod Xoops <[email protected]>
23 23
  *
24 24
  */
25
-include __DIR__ . '/header.php';
25
+include __DIR__.'/header.php';
26 26
 $funct    = \Xmf\Request::getString('funct', '', 'GET');
27 27
 $iconName = \Xmf\Request::getString('iconName', '', 'GET');
28 28
 $caption  = \Xmf\Request::getString('caption', '', 'GET');
Please login to merge, or discard this patch.
admin/header.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
  * @author          Txmod Xoops http://www.txmodxoops.org
21 21
  *
22 22
  */
23
-include dirname(__DIR__) . '/preloads/autoloader.php';
23
+include dirname(__DIR__).'/preloads/autoloader.php';
24 24
 
25
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
26
-include_once dirname(__DIR__) . '/include/common.php';
25
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
26
+include_once dirname(__DIR__).'/include/common.php';
27 27
 
28 28
 $thisDirname = $GLOBALS['xoopsModule']->getVar('dirname');
29 29
 // Link System Icons
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 // MyTextSanitizer
41 41
 $myts = MyTextSanitizer::getInstance();
42 42
 if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
43
-    include_once XOOPS_ROOT_PATH . '/class/template.php';
43
+    include_once XOOPS_ROOT_PATH.'/class/template.php';
44 44
     $xoopsTpl = new \XoopsTpl();
45 45
 }
46 46
 // System Icons
Please login to merge, or discard this patch.
class/LogoGenerator.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  * @author          Xoops Team Developement Modules - https://xoops.org
23 23
  *
24 24
  */
25
-include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
25
+include_once dirname(dirname(dirname(__DIR__))).'/mainfile.php';
26 26
 
27 27
 /**
28 28
  * @param string $val
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     echo $val;
33 33
 }
34 34
 
35
-$myfunction = '\\XoopsModules\\Tdmcreate\\' . $_GET['f'];
35
+$myfunction = '\\XoopsModules\\Tdmcreate\\'.$_GET['f'];
36 36
 
37 37
 if (function_exists($myfunction)) {
38 38
     $ret = \XoopsModules\Tdmcreate\LogoGenerator::createLogo($_GET['iconName'], $_GET['caption']);
@@ -66,15 +66,15 @@  discard block
 block discarded – undo
66 66
         }
67 67
 
68 68
         $dirname      = 'tdmcreate';
69
-        $iconFileName = XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32/' . basename($logoIcon);
69
+        $iconFileName = XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32/'.basename($logoIcon);
70 70
 
71 71
         //$dirFonts = TDMC_PATH . "/assets/fonts";
72 72
         //$dirLogos = TDMC_PATH . "/assets/images/logos";
73
-        $dirFonts = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/assets/fonts';
74
-        $dirLogos = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/assets/images/logos';
73
+        $dirFonts = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/assets/fonts';
74
+        $dirLogos = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/assets/images/logos';
75 75
 
76
-        if (!file_exists($imageBase = $dirLogos . '/empty.png')
77
-            || !file_exists($font = $dirFonts . '/VeraBd.ttf')
76
+        if (!file_exists($imageBase = $dirLogos.'/empty.png')
77
+            || !file_exists($font = $dirFonts.'/VeraBd.ttf')
78 78
             || !file_exists($iconFile = $iconFileName)) {
79 79
             return false;
80 80
         }
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
91 91
 
92 92
         //$targetImage = TDMC_UPLOAD_IMGMOD_URL . "/" . $moduleName . "_logo.png";
93
-        $targetImage = '/uploads/' . $dirname . '/images/modules/' . $moduleName . '_logo.png';
93
+        $targetImage = '/uploads/'.$dirname.'/images/modules/'.$moduleName.'_logo.png';
94 94
 
95
-        imagepng($imageModule, XOOPS_ROOT_PATH . $targetImage);
95
+        imagepng($imageModule, XOOPS_ROOT_PATH.$targetImage);
96 96
 
97 97
         imagedestroy($imageModule);
98 98
         imagedestroy($imageIcon);
99 99
 
100
-        return XOOPS_URL . $targetImage;
100
+        return XOOPS_URL.$targetImage;
101 101
     }
102 102
 }
Please login to merge, or discard this patch.