Passed
Branch master (31be8b)
by Gino
03:04
created
class/form/simpleform.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * XOOPS simple form.
4
- *
5
- * You may not change or alter any portion of this comment or credits
6
- * of supporting developers from this source code or any supporting source code
7
- * which is considered copyrighted (c) material of the original comment or credit authors.
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
- *
12
- * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
13
- * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
14
- *
15
- * @since           2.0.0
16
- *
17
- * @author          Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
18
- *
19
- * @version         $Id: simpleform.php 12562 2014-04-03 10:57:12Z timgno $
20
- */
3
+     * XOOPS simple form.
4
+     *
5
+     * You may not change or alter any portion of this comment or credits
6
+     * of supporting developers from this source code or any supporting source code
7
+     * which is considered copyrighted (c) material of the original comment or credit authors.
8
+     * This program is distributed in the hope that it will be useful,
9
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
+     *
12
+     * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
13
+     * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
14
+     *
15
+     * @since           2.0.0
16
+     *
17
+     * @author          Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
18
+     *
19
+     * @version         $Id: simpleform.php 12562 2014-04-03 10:57:12Z timgno $
20
+     */
21 21
 defined('XOOPS_ROOT_PATH') or die('Restricted access');
22 22
 
23 23
 /*
Please login to merge, or discard this patch.
class/form/themeform.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 10
  */
11 11
 /**
12
- * tdmcreate module.
13
- *
14
- * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
- * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
- *
17
- * @since           2.5.5
18
- *
19
- * @author          Txmod Xoops <[email protected]>
20
- *
21
- * @version         $Id: 1.59 themeform.php 11297 2013-03-24 10:58:10Z timgno $
22
- */
12
+     * tdmcreate module.
13
+     *
14
+     * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
+     * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
+     *
17
+     * @since           2.5.5
18
+     *
19
+     * @author          Txmod Xoops <[email protected]>
20
+     *
21
+     * @version         $Id: 1.59 themeform.php 11297 2013-03-24 10:58:10Z timgno $
22
+     */
23 23
 defined('XOOPS_ROOT_PATH') or die('Restricted access');
24 24
 
25 25
 xoops_load('XoopsFormLoader');
Please login to merge, or discard this patch.
class/settings.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,8 +295,8 @@
 block discarded – undo
295 295
     }
296 296
 }
297 297
 /**
298
- * Class TDMCreateSettingsHandler.
299
- */
298
+     * Class TDMCreateSettingsHandler.
299
+     */
300 300
 class TDMCreateSettingsHandler extends XoopsPersistableObjectHandler
301 301
 {
302 302
     /**
Please login to merge, or discard this patch.
class/files/TDMCreateHtmlSmartyCodes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         return $ret;
97 97
     }
98 98
 
99
-     /*
99
+        /*
100 100
     *  @private function setAttributes
101 101
     *  @param array $attributes
102 102
     */
Please login to merge, or discard this patch.
include/common.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 10
  */
11 11
 /**
12
- * tdmcreate module.
13
- *
14
- * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
- * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
- *
17
- * @since           2.5.0
18
- *
19
- * @author          Txmod Xoops http://www.txmodxoops.org
20
- *
21
- * @version         $Id: common.php 12258 2014-01-02 09:33:29Z timgno $
22
- */
12
+     * tdmcreate module.
13
+     *
14
+     * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
+     * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
+     *
17
+     * @since           2.5.0
18
+     *
19
+     * @author          Txmod Xoops http://www.txmodxoops.org
20
+     *
21
+     * @version         $Id: common.php 12258 2014-01-02 09:33:29Z timgno $
22
+     */
23 23
 defined('XOOPS_ROOT_PATH') or die('Restricted access');
24 24
 $dirname = $GLOBALS['xoopsModule']->getVar('dirname');
25 25
 // Root Frameworks icons 32x32 directory
Please login to merge, or discard this patch.
include/install.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 10
  */
11 11
 /**
12
- * tdmcreate module.
13
- *
14
- * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
- * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
- *
17
- * @since           2.5.0
18
- *
19
- * @author          Txmod Xoops http://www.txmodxoops.org
20
- *
21
- * @version         $Id: install.php 11084 2013-02-23 15:44:20Z timgno $
22
- */
12
+     * tdmcreate module.
13
+     *
14
+     * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
+     * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
+     *
17
+     * @since           2.5.0
18
+     *
19
+     * @author          Txmod Xoops http://www.txmodxoops.org
20
+     *
21
+     * @version         $Id: install.php 11084 2013-02-23 15:44:20Z timgno $
22
+     */
23 23
 $indexFile = XOOPS_UPLOAD_PATH.'/index.html';
24 24
 $blankFile = XOOPS_UPLOAD_PATH.'/blank.gif';
25 25
 $emptyFile = XOOPS_ROOT_PATH.'/modules/tdmcreate/assets/images/logos/empty.png';
Please login to merge, or discard this patch.
admin/modules.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -90,29 +90,29 @@  discard block
 block discarded – undo
90 90
         $moduleDirname = preg_replace('/[^a-zA-Z0-9]\s+/', '', strtolower($_POST['mod_dirname']));
91 91
         //Form module save
92 92
         $modulesObj->setVars(array(
93
-                                 'mod_name' => $_POST['mod_name'],
94
-                                 'mod_dirname' => $moduleDirname,
95
-                                 'mod_version' => $_POST['mod_version'],
96
-                                 'mod_since' => $_POST['mod_since'],
97
-                                 'mod_min_php' => $_POST['mod_min_php'],
98
-                                 'mod_min_xoops' => $_POST['mod_min_xoops'],
99
-                                 'mod_min_admin' => $_POST['mod_min_admin'],
100
-                                 'mod_min_mysql' => $_POST['mod_min_mysql'],
101
-                                 'mod_description' => $_POST['mod_description'],
102
-                                 'mod_author' => $_POST['mod_author'],
103
-                                 'mod_author_mail' => $_POST['mod_author_mail'],
104
-                                 'mod_author_website_url' => $_POST['mod_author_website_url'],
105
-                                 'mod_author_website_name' => $_POST['mod_author_website_name'],
106
-                                 'mod_credits' => $_POST['mod_credits'],
107
-                                 'mod_license' => $_POST['mod_license'],
108
-                                 'mod_release_info' => $_POST['mod_release_info'],
109
-                                 'mod_release_file' => $_POST['mod_release_file'],
110
-                                 'mod_manual' => $_POST['mod_manual'],
111
-                                 'mod_manual_file' => $_POST['mod_manual_file'], ));
93
+                                    'mod_name' => $_POST['mod_name'],
94
+                                    'mod_dirname' => $moduleDirname,
95
+                                    'mod_version' => $_POST['mod_version'],
96
+                                    'mod_since' => $_POST['mod_since'],
97
+                                    'mod_min_php' => $_POST['mod_min_php'],
98
+                                    'mod_min_xoops' => $_POST['mod_min_xoops'],
99
+                                    'mod_min_admin' => $_POST['mod_min_admin'],
100
+                                    'mod_min_mysql' => $_POST['mod_min_mysql'],
101
+                                    'mod_description' => $_POST['mod_description'],
102
+                                    'mod_author' => $_POST['mod_author'],
103
+                                    'mod_author_mail' => $_POST['mod_author_mail'],
104
+                                    'mod_author_website_url' => $_POST['mod_author_website_url'],
105
+                                    'mod_author_website_name' => $_POST['mod_author_website_name'],
106
+                                    'mod_credits' => $_POST['mod_credits'],
107
+                                    'mod_license' => $_POST['mod_license'],
108
+                                    'mod_release_info' => $_POST['mod_release_info'],
109
+                                    'mod_release_file' => $_POST['mod_release_file'],
110
+                                    'mod_manual' => $_POST['mod_manual'],
111
+                                    'mod_manual_file' => $_POST['mod_manual_file'], ));
112 112
         //Form mod_image
113 113
         include_once XOOPS_ROOT_PATH.'/class/uploader.php';
114 114
         $uploader = new XoopsMediaUploader(TDMC_UPLOAD_IMGMOD_PATH, $tdmcreate->getConfig('mimetypes'),
115
-                                           $tdmcreate->getConfig('maxsize'), null, null);
115
+                                            $tdmcreate->getConfig('maxsize'), null, null);
116 116
         if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
117 117
             $uploader->fetchMedia($_POST['xoops_upload_file'][0]);
118 118
             if (!$uploader->upload()) {
@@ -126,16 +126,16 @@  discard block
 block discarded – undo
126 126
         }
127 127
         //Form module save
128 128
         $modulesObj->setVars(array(
129
-                                 'mod_demo_site_url' => $_POST['mod_demo_site_url'],
130
-                                 'mod_demo_site_name' => $_POST['mod_demo_site_name'],
131
-                                 'mod_support_url' => $_POST['mod_support_url'],
132
-                                 'mod_support_name' => $_POST['mod_support_name'],
133
-                                 'mod_website_url' => $_POST['mod_website_url'],
134
-                                 'mod_website_name' => $_POST['mod_website_name'],
135
-                                 'mod_release' => $_POST['mod_release'],
136
-                                 'mod_status' => $_POST['mod_status'],
137
-                                 'mod_donations' => $_POST['mod_donations'],
138
-                                 'mod_subversion' => $_POST['mod_subversion'], )
129
+                                    'mod_demo_site_url' => $_POST['mod_demo_site_url'],
130
+                                    'mod_demo_site_name' => $_POST['mod_demo_site_name'],
131
+                                    'mod_support_url' => $_POST['mod_support_url'],
132
+                                    'mod_support_name' => $_POST['mod_support_name'],
133
+                                    'mod_website_url' => $_POST['mod_website_url'],
134
+                                    'mod_website_name' => $_POST['mod_website_name'],
135
+                                    'mod_release' => $_POST['mod_release'],
136
+                                    'mod_status' => $_POST['mod_status'],
137
+                                    'mod_donations' => $_POST['mod_donations'],
138
+                                    'mod_subversion' => $_POST['mod_subversion'], )
139 139
         );
140 140
         $moduleOption = XoopsRequest::getArray('module_option', array());
141 141
         $modulesObj->setVar('mod_admin', in_array('admin', $moduleOption));
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -83,39 +83,39 @@
 block discarded – undo
83 83
         $setModuleDirname = preg_replace('/[^a-zA-Z0-9]\s+/', '', strtolower($_POST['set_dirname']));
84 84
         //Form module save
85 85
         $settingsObj->setVars(array(
86
-                                 'set_name' => $_POST['set_name'],
87
-                                 'set_dirname' => $setModuleDirname,
88
-                                 'set_version' => $_POST['set_version'],
89
-                                 'set_since' => $_POST['set_since'],
90
-                                 'set_min_php' => $_POST['set_min_php'],
91
-                                 'set_min_xoops' => $_POST['set_min_xoops'],
92
-                                 'set_min_admin' => $_POST['set_min_admin'],
93
-                                 'set_min_mysql' => $_POST['set_min_mysql'],
94
-                                 'set_description' => $_POST['set_description'],
95
-                                 'set_author' => $_POST['set_author'],
96
-                                 'set_author_mail' => $_POST['set_author_mail'],
97
-                                 'set_author_website_url' => $_POST['set_author_website_url'],
98
-                                 'set_author_website_name' => $_POST['set_author_website_name'],
99
-                                 'set_credits' => $_POST['set_credits'],
100
-                                 'set_license' => $_POST['set_license'],
101
-                                 'set_release_info' => $_POST['set_release_info'],
102
-                                 'set_release_file' => $_POST['set_release_file'],
103
-                                 'set_manual' => $_POST['set_manual'],
104
-                                 'set_manual_file' => $_POST['set_manual_file'], ));
86
+                                    'set_name' => $_POST['set_name'],
87
+                                    'set_dirname' => $setModuleDirname,
88
+                                    'set_version' => $_POST['set_version'],
89
+                                    'set_since' => $_POST['set_since'],
90
+                                    'set_min_php' => $_POST['set_min_php'],
91
+                                    'set_min_xoops' => $_POST['set_min_xoops'],
92
+                                    'set_min_admin' => $_POST['set_min_admin'],
93
+                                    'set_min_mysql' => $_POST['set_min_mysql'],
94
+                                    'set_description' => $_POST['set_description'],
95
+                                    'set_author' => $_POST['set_author'],
96
+                                    'set_author_mail' => $_POST['set_author_mail'],
97
+                                    'set_author_website_url' => $_POST['set_author_website_url'],
98
+                                    'set_author_website_name' => $_POST['set_author_website_name'],
99
+                                    'set_credits' => $_POST['set_credits'],
100
+                                    'set_license' => $_POST['set_license'],
101
+                                    'set_release_info' => $_POST['set_release_info'],
102
+                                    'set_release_file' => $_POST['set_release_file'],
103
+                                    'set_manual' => $_POST['set_manual'],
104
+                                    'set_manual_file' => $_POST['set_manual_file'], ));
105 105
         //Form set_image
106 106
         $settingsObj->setVar('set_image', $_POST['set_image']);
107 107
         //Form module save
108 108
         $settingsObj->setVars(array(
109
-                                 'set_demo_site_url' => $_POST['set_demo_site_url'],
110
-                                 'set_demo_site_name' => $_POST['set_demo_site_name'],
111
-                                 'set_support_url' => $_POST['set_support_url'],
112
-                                 'set_support_name' => $_POST['set_support_name'],
113
-                                 'set_website_url' => $_POST['set_website_url'],
114
-                                 'set_website_name' => $_POST['set_website_name'],
115
-                                 'set_release' => $_POST['set_release'],
116
-                                 'set_status' => $_POST['set_status'],
117
-                                 'set_donations' => $_POST['set_donations'],
118
-                                 'set_subversion' => $_POST['set_subversion'], )
109
+                                    'set_demo_site_url' => $_POST['set_demo_site_url'],
110
+                                    'set_demo_site_name' => $_POST['set_demo_site_name'],
111
+                                    'set_support_url' => $_POST['set_support_url'],
112
+                                    'set_support_name' => $_POST['set_support_name'],
113
+                                    'set_website_url' => $_POST['set_website_url'],
114
+                                    'set_website_name' => $_POST['set_website_name'],
115
+                                    'set_release' => $_POST['set_release'],
116
+                                    'set_status' => $_POST['set_status'],
117
+                                    'set_donations' => $_POST['set_donations'],
118
+                                    'set_subversion' => $_POST['set_subversion'], )
119 119
         );
120 120
         $settingOption = XoopsRequest::getArray('setting_option', array());
121 121
         $settingsObj->setVar('set_admin', in_array('admin', $settingOption));
Please login to merge, or discard this patch.
admin/addfiles.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@
 block discarded – undo
91 91
         }
92 92
         // Form file save
93 93
         $addfilesObj->setVars(array(
94
-                                 'file_mid' => $_POST['file_mid'],
95
-                                 'file_name' => $_POST['file_name'],
96
-                                 'file_extension' => $_POST['file_extension'],
97
-                                 'file_infolder' => $_POST['file_infolder'], ));
94
+                                    'file_mid' => $_POST['file_mid'],
95
+                                    'file_name' => $_POST['file_name'],
96
+                                    'file_extension' => $_POST['file_extension'],
97
+                                    'file_infolder' => $_POST['file_infolder'], ));
98 98
 
99 99
         if ($tdmcreate->getHandler('addfiles')->insert($addfilesObj)) {
100 100
             if ($addfilesObj->isNew()) {
Please login to merge, or discard this patch.