Passed
Push — master ( 829601...ed204a )
by Michael
02:18
created
header.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
 /** @var ContactHandler $contactHandler */
27 27
 
28 28
 $moduleDirName = basename(__DIR__);
29
-require_once \dirname(__DIR__, 2) . '/mainfile.php';
29
+require_once \dirname(__DIR__, 2).'/mainfile.php';
30 30
 //require_once __DIR__   . '/class/contact.php';
31
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
31
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
32 32
 
33 33
 $contactHandler = Helper::getInstance()->getHandler('Contact');
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
         //        $sql   .= " WHERE metakey='version' LIMIT 1";
37 37
         //        $query = $GLOBALS['xoopsDB']->query($sql);
38 38
         //        list($meta) = $GLOBALS['xoopsDB']->fetchRow($query);
39
-        $html .= "<fieldset><legend style='font-weight: bold; color: #900;'>" . \constant('CO_' . $moduleDirNameUpper . '_IMAGEINFO') . "</legend>\n";
39
+        $html .= "<fieldset><legend style='font-weight: bold; color: #900;'>".\constant('CO_'.$moduleDirNameUpper.'_IMAGEINFO')."</legend>\n";
40 40
         $html .= "<div style='padding: 8px;'>\n";
41 41
         //        $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_METAVERSION') . $meta . "</div>\n";
42 42
         //        $html .= "<br>\n";
43 43
         //        $html .= "<br>\n";
44
-        $html .= '<div>' . \constant('CO_' . $moduleDirNameUpper . '_SPHPINI') . "</div>\n";
44
+        $html .= '<div>'.\constant('CO_'.$moduleDirNameUpper.'_SPHPINI')."</div>\n";
45 45
         $html .= "<ul>\n";
46 46
 
47
-        $gdlib = \function_exists('gd_info') ? '<span style="color: green;">' . \constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: red;">' . \constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>';
48
-        $html  .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib;
47
+        $gdlib = \function_exists('gd_info') ? '<span style="color: green;">'.\constant('CO_'.$moduleDirNameUpper.'_GDON').'</span>' : '<span style="color: red;">'.\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: green;\">" . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>' : "<span style=\"color: red;\">" . 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: green;">' . \constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: red;">' . \constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>';
62
-        $html      .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads;
61
+        $downloads = \ini_get('file_uploads') ? '<span style="color: green;">'.\constant('CO_'.$moduleDirNameUpper.'_ON').'</span>' : '<span style="color: red;">'.\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: blue;">' . \ini_get('upload_max_filesize') . "</span></b>\n";
65
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: blue;">' . \ini_get('post_max_size') . "</span></b>\n";
66
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT') . ' <b><span style="color: blue;">' . \ini_get('memory_limit') . "</span></b>\n";
64
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE').' <b><span style="color: blue;">'.\ini_get('upload_max_filesize')."</span></b>\n";
65
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE').' <b><span style="color: blue;">'.\ini_get('post_max_size')."</span></b>\n";
66
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT').' <b><span style="color: blue;">'.\ini_get('memory_limit')."</span></b>\n";
67 67
         $html .= "</ul>\n";
68 68
         $html .= "<ul>\n";
69
-        $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_SERVERPATH') . ' <b>' . XOOPS_ROOT_PATH . "</b>\n";
69
+        $html .= '<li>'.\constant('CO_'.$moduleDirNameUpper.'_SERVERPATH').' <b>'.XOOPS_ROOT_PATH."</b>\n";
70 70
         $html .= "</ul>\n";
71 71
         $html .= "<br>\n";
72
-        $html .= \constant('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC') . "\n";
72
+        $html .= \constant('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC')."\n";
73 73
         $html .= '</div>';
74 74
         $html .= '</fieldset><br>';
75 75
 
Please login to merge, or discard this patch.
class/Common/Configurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function __construct()
44 44
     {
45
-        $config = require dirname(__DIR__, 2) . '/config/config.php';
45
+        $config = require dirname(__DIR__, 2).'/config/config.php';
46 46
 
47 47
         $this->name            = $config->name;
48 48
         $this->paths           = $config->paths;
Please login to merge, or discard this patch.
class/Utility.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 if (!mkdir($folder) && !is_dir($folder)) {
36 36
                     throw new RuntimeException(sprintf('Unable to create the %s directory', $folder));
37 37
                 } else {
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
             }
41 41
         } catch (\Exception $e) {
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
         //    @mkdir($dst);
74 74
         while (false !== ($file = readdir($dir))) {
75 75
             if (($file !== '.') && ($file !== '..')) {
76
-                if (is_dir($src . '/' . $file)) {
77
-                    self::recurseCopy($src . '/' . $file, $dst . '/' . $file);
76
+                if (is_dir($src.'/'.$file)) {
77
+                    self::recurseCopy($src.'/'.$file, $dst.'/'.$file);
78 78
                 } else {
79
-                    copy($src . '/' . $file, $dst . '/' . $file);
79
+                    copy($src.'/'.$file, $dst.'/'.$file);
80 80
                 }
81 81
             }
82 82
         }
Please login to merge, or discard this patch.
include/onupdate.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
 if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof \XoopsUser)
28 28
     || !$GLOBALS['xoopsUser']->isAdmin()) {
29
-    exit('Restricted access' . PHP_EOL);
29
+    exit('Restricted access'.PHP_EOL);
30 30
 }
31 31
 
32 32
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection();
73 73
 
74 74
     if ($previousVersion < 180) {
75
-        $sql = 'CREATE TABLE ' . $xoopsDB->prefix('contact') . ' (
75
+        $sql = 'CREATE TABLE '.$xoopsDB->prefix('contact').' (
76 76
         contact_id int(10) unsigned NOT NULL auto_increment,
77 77
         contact_uid int(10) NOT NULL,
78 78
         contact_cid int(10) NOT NULL,
@@ -97,50 +97,50 @@  discard block
 block discarded – undo
97 97
 
98 98
     if ($previousVersion < 181) {
99 99
         // Add contact_platform
100
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . "` ADD `contact_platform` ENUM('Android','Ios','Web') NOT NULL DEFAULT 'Web'";
100
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact')."` ADD `contact_platform` ENUM('Android','Ios','Web') NOT NULL DEFAULT 'Web'";
101 101
         $xoopsDB->query($sql);
102 102
         // Add contact_type
103
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . "` ADD `contact_type` ENUM('Contact','Phone','Mail') NOT NULL DEFAULT 'Contact'";
103
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact')."` ADD `contact_type` ENUM('Contact','Phone','Mail') NOT NULL DEFAULT 'Contact'";
104 104
         $xoopsDB->query($sql);
105 105
         // Add index contact_uid
106
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_uid` ( `contact_uid` )';
106
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_uid` ( `contact_uid` )';
107 107
         $xoopsDB->query($sql);
108 108
         // Add index contact_cid
109
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_cid` ( `contact_cid` )';
109
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_cid` ( `contact_cid` )';
110 110
         $xoopsDB->query($sql);
111 111
         // Add index contact_create
112
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_create` ( `contact_create` )';
112
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_create` ( `contact_create` )';
113 113
         $xoopsDB->query($sql);
114 114
         // Add index contact_mail
115
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_mail` ( `contact_mail` )';
115
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_mail` ( `contact_mail` )';
116 116
         $xoopsDB->query($sql);
117 117
         // Add index contact_phone
118
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_phone` ( `contact_phone` )';
118
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_phone` ( `contact_phone` )';
119 119
         $xoopsDB->query($sql);
120 120
         // Add index contact_platform
121
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_platform` ( `contact_platform` )';
121
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_platform` ( `contact_platform` )';
122 122
         $xoopsDB->query($sql);
123 123
         // Add index contact_type
124
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_type` ( `contact_type` )';
124
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_type` ( `contact_type` )';
125 125
         $xoopsDB->query($sql);
126 126
     }
127 127
 
128 128
     if ($previousVersion < 227) {
129
-        require_once __DIR__ . '/config.php';
129
+        require_once __DIR__.'/config.php';
130 130
         $configurator = new ContactConfigurator();
131 131
         $utility = new Utility();
132 132
 
133 133
         //delete old HTML templates
134 134
         if (count($configurator->templateFolders) > 0) {
135 135
             foreach ($configurator->templateFolders as $folder) {
136
-                $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder);
136
+                $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder);
137 137
                 if (is_dir($templateFolder)) {
138 138
                     $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), ['..', '.']);
139 139
                     foreach ($templateList as $k => $v) {
140
-                        $fileInfo = new \SplFileInfo($templateFolder . $v);
140
+                        $fileInfo = new \SplFileInfo($templateFolder.$v);
141 141
                         if ('html' === $fileInfo->getExtension() && 'index.html' !== $fileInfo->getFilename()) {
142
-                            if (is_file($templateFolder . $v)) {
143
-                                unlink($templateFolder . $v);
142
+                            if (is_file($templateFolder.$v)) {
143
+                                unlink($templateFolder.$v);
144 144
                             }
145 145
                         }
146 146
                     }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         if (count($configurator->oldFiles) > 0) {
153 153
             //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
154 154
             foreach (array_keys($configurator->oldFiles) as $i) {
155
-                $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator->oldFiles[$i]);
155
+                $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator->oldFiles[$i]);
156 156
                 if (is_file($tempFile)) {
157 157
                     unlink($tempFile);
158 158
                 }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         if (count($configurator->oldFolders) > 0) {
165 165
             //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
166 166
             foreach (array_keys($configurator->oldFolders) as $i) {
167
-                $tempFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator->oldFolders[$i]);
167
+                $tempFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator->oldFolders[$i]);
168 168
                 /* @var XoopsObjectHandler $folderHandler */
169 169
                 $folderHandler = XoopsFile::getHandler('folder', $tempFolder);
170 170
                 $folderHandler->delete($tempFolder);
@@ -181,15 +181,15 @@  discard block
 block discarded – undo
181 181
 
182 182
         //  ---  COPY blank.png FILES ---------------
183 183
         if (count($configurator->copyBlankFiles) > 0) {
184
-            $file = dirname(__DIR__) . '/assets/images/blank.png';
184
+            $file = dirname(__DIR__).'/assets/images/blank.png';
185 185
             foreach (array_keys($configurator->copyBlankFiles) as $i) {
186
-                $dest = $configurator->copyBlankFiles[$i] . '/blank.png';
186
+                $dest = $configurator->copyBlankFiles[$i].'/blank.png';
187 187
                 $utility::copyFile($file, $dest);
188 188
             }
189 189
         }
190 190
 
191 191
         //delete .html entries from the tpl table
192
-        $sql = 'DELETE FROM ' . $GLOBALS['xoopsDB']->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . '\' AND `tpl_file` LIKE \'%.html%\'';
192
+        $sql = 'DELETE FROM '.$GLOBALS['xoopsDB']->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname', 'n').'\' AND `tpl_file` LIKE \'%.html%\'';
193 193
         $GLOBALS['xoopsDB']->queryF($sql);
194 194
 
195 195
         /** @var \XoopsGroupPermHandler $grouppermHandler */
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
     if ($previousVersion < 227) {
202 202
         // Add contact_skype
203
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . "` ADD `contact_skype` VARCHAR(255) NULL AFTER `contact_icq`";
203
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact')."` ADD `contact_skype` VARCHAR(255) NULL AFTER `contact_icq`";
204 204
         $xoopsDB->query($sql);
205 205
     }
206 206
 }
Please login to merge, or discard this patch.
include/common.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 use Xmf\Module\Admin;
24 24
 use XoopsModules\Contact;
25 25
 
26
-require_once dirname(__DIR__) . '/preloads/autoloader.php';
26
+require_once dirname(__DIR__).'/preloads/autoloader.php';
27 27
 
28 28
 $moduleDirName      = \basename(\dirname(__DIR__));
29 29
 $moduleDirNameUpper = mb_strtoupper($moduleDirName); //$capsDirName
@@ -42,20 +42,20 @@  discard block
 block discarded – undo
42 42
 //$categoryHandler     = new Contact\CategoryHandler($db);
43 43
 //$downloadHandler     = new Contact\DownloadHandler($db);
44 44
 
45
-if (!defined($moduleDirNameUpper . '_CONSTANTS_DEFINED')) {
46
-    define($moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__)));
47
-    define($moduleDirNameUpper . '_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/');
48
-    define($moduleDirNameUpper . '_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/');
49
-    define($moduleDirNameUpper . '_URL', XOOPS_URL . '/modules/' . $moduleDirName . '/');
50
-    define($moduleDirNameUpper . '_IMAGE_URL', constant($moduleDirNameUpper . '_URL') . '/assets/images/');
51
-    define($moduleDirNameUpper . '_IMAGE_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/assets/images');
52
-    define($moduleDirNameUpper . '_ADMIN_URL', constant($moduleDirNameUpper . '_URL') . '/admin/');
53
-    define($moduleDirNameUpper . '_ADMIN_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/admin/');
54
-    define($moduleDirNameUpper . '_ADMIN', constant($moduleDirNameUpper . '_URL') . '/admin/index.php');
55
-    define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', constant($moduleDirNameUpper . '_URL') . '/assets/images/logoModule.png');
56
-    define($moduleDirNameUpper . '_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $moduleDirName); // WITHOUT Trailing slash
57
-    define($moduleDirNameUpper . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName); // WITHOUT Trailing slash
58
-    define($moduleDirNameUpper . '_CONSTANTS_DEFINED', 1);
45
+if (!defined($moduleDirNameUpper.'_CONSTANTS_DEFINED')) {
46
+    define($moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__)));
47
+    define($moduleDirNameUpper.'_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/');
48
+    define($moduleDirNameUpper.'_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/');
49
+    define($moduleDirNameUpper.'_URL', XOOPS_URL.'/modules/'.$moduleDirName.'/');
50
+    define($moduleDirNameUpper.'_IMAGE_URL', constant($moduleDirNameUpper.'_URL').'/assets/images/');
51
+    define($moduleDirNameUpper.'_IMAGE_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/assets/images');
52
+    define($moduleDirNameUpper.'_ADMIN_URL', constant($moduleDirNameUpper.'_URL').'/admin/');
53
+    define($moduleDirNameUpper.'_ADMIN_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/admin/');
54
+    define($moduleDirNameUpper.'_ADMIN', constant($moduleDirNameUpper.'_URL').'/admin/index.php');
55
+    define($moduleDirNameUpper.'_AUTHOR_LOGOIMG', constant($moduleDirNameUpper.'_URL').'/assets/images/logoModule.png');
56
+    define($moduleDirNameUpper.'_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.$moduleDirName); // WITHOUT Trailing slash
57
+    define($moduleDirNameUpper.'_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.$moduleDirName); // WITHOUT Trailing slash
58
+    define($moduleDirNameUpper.'_CONSTANTS_DEFINED', 1);
59 59
 }
60 60
 
61 61
 $pathIcon16 = Admin::iconUrl('', 16);
@@ -64,15 +64,15 @@  discard block
 block discarded – undo
64 64
 //$pathModIcon32 = $helper->getModule()->getInfo('modicons32');
65 65
 
66 66
 $icons = [
67
-    'edit'    => "<img src='" . $pathIcon16 . "/edit.png'  alt=" . _EDIT . "' align='middle'>",
68
-    'delete'  => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>",
69
-    'clone'   => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>",
70
-    'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>",
71
-    'print'   => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>",
72
-    'pdf'     => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>",
73
-    'add'     => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>",
74
-    '0'       => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>",
75
-    '1'       => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>",
67
+    'edit'    => "<img src='".$pathIcon16."/edit.png'  alt="._EDIT."' align='middle'>",
68
+    'delete'  => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>",
69
+    'clone'   => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>",
70
+    'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>",
71
+    'print'   => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>",
72
+    'pdf'     => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>",
73
+    'add'     => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>",
74
+    '0'       => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>",
75
+    '1'       => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>",
76 76
 ];
77 77
 
78 78
 $debug = false;
@@ -85,15 +85,15 @@  discard block
 block discarded – undo
85 85
     $GLOBALS['xoopsTpl'] = new \XoopsTpl();
86 86
 }
87 87
 
88
-$GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL . '/modules/' . $moduleDirName);
88
+$GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL.'/modules/'.$moduleDirName);
89 89
 // Local icons path
90 90
 if (is_object($helper->getModule())) {
91 91
     $pathModIcon16 = $helper->getModule()->getInfo('modicons16');
92 92
     $pathModIcon32 = $helper->getModule()->getInfo('modicons32');
93 93
 
94
-    $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL . '/modules/' . $moduleDirName . '/' . $pathModIcon16);
94
+    $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL.'/modules/'.$moduleDirName.'/'.$pathModIcon16);
95 95
     $GLOBALS['xoopsTpl']->assign('pathModIcon32', $pathModIcon32);
96 96
 }
97 97
 
98 98
 //require_once CONTACT_PATH.'/class/helper.php';
99
-require_once __DIR__ . '/include/functions.php';
99
+require_once __DIR__.'/include/functions.php';
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
 /** @var Admin $adminObject */
28 28
 /** @var ContactHandler $contactHandler */
29 29
 
30
-require dirname(__DIR__, 3) . '/include/cp_header.php';
31
-require dirname(__DIR__) . '/preloads/autoloader.php';
30
+require dirname(__DIR__, 3).'/include/cp_header.php';
31
+require dirname(__DIR__).'/preloads/autoloader.php';
32 32
 
33
-require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
34
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
33
+require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
34
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
35 35
 global $xoopsModule;
36 36
 
37 37
 $moduleDirName = $GLOBALS['xoopsModule']->getVar('dirname');
Please login to merge, or discard this patch.
admin/main.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 /** @var Admin $adminObject */
30 30
 
31 31
 // Call header
32
-require_once __DIR__ . '/admin_header.php';
32
+require_once __DIR__.'/admin_header.php';
33 33
 
34 34
 // Display Admin header
35 35
 xoops_cp_header();
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
 // Define scripts
49 49
 $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js');
50 50
 $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
51
-$GLOBALS['xoTheme']->addScript(XOOPS_URL . '/modules/contact/assets/js/admin.js');
51
+$GLOBALS['xoTheme']->addScript(XOOPS_URL.'/modules/contact/assets/js/admin.js');
52 52
 // Add module stylesheet
53
-$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . '/modules/contact/assets/css/admin.css');
54
-$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
55
-$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
53
+$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL.'/modules/contact/assets/css/admin.css');
54
+$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.xoops_getModuleOption('jquery_theme', 'system').'/ui.all.css');
55
+$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
56 56
 
57 57
 switch ($op) {
58 58
     case 'list':
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $contacts        = $contactHandler->contactGetAdminList($contact, 'contact_cid');
72 72
 
73 73
         if ($contact_numrows > $contact['limit']) {
74
-            $contact_pagenav = new \XoopsPageNav($contact_numrows, $contact['limit'], $contact['start'], 'start', 'limit=' . $contact['limit']);
74
+            $contact_pagenav = new \XoopsPageNav($contact_numrows, $contact['limit'], $contact['start'], 'start', 'limit='.$contact['limit']);
75 75
             $contact_pagenav = $contact_pagenav->renderNav(4);
76 76
         } else {
77 77
             $contact_pagenav = '';
@@ -198,6 +198,6 @@  discard block
 block discarded – undo
198 198
 $GLOBALS['xoopsTpl']->assign('level', $level);
199 199
 
200 200
 // Call template file
201
-$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH . '/modules/contact/templates/admin/contact_main.tpl');
201
+$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH.'/modules/contact/templates/admin/contact_main.tpl');
202 202
 // Call footer
203
-require_once __DIR__ . '/admin_footer.php';
203
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 /** @var ContactHandler $contactHandler */
23 23
 // Call header
24
-require_once __DIR__ . '/admin_header.php';
24
+require_once __DIR__.'/admin_header.php';
25 25
 // Display Admin header
26 26
 xoops_cp_header();
27 27
 
@@ -33,6 +33,6 @@  discard block
 block discarded – undo
33 33
 $adminObject->displayIndex();
34 34
 
35 35
 // Call template file
36
-$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH . '/modules/contact/templates/admin/contact_index.tpl');
36
+$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH.'/modules/contact/templates/admin/contact_index.tpl');
37 37
 // Call footer
38
-require_once __DIR__ . '/admin_footer.php';
38
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.