Completed
Push — master ( 6f00b4...805ee0 )
by Gino
03:23
created
class/fields.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
     /**
193 193
      * @private function getFormNewLine
194 194
      *
195
-     * @param $form
196
-     * @param $class
197
-     * @param $i
195
+     * @param TDMCreateThemeForm $form
196
+     * @param string $class
197
+     * @param integer $i
198 198
      * @param $fieldMid
199 199
      * @param $fieldTid
200 200
      * @param $fName
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
     *  @param null
490 490
     */
491 491
     /**
492
-     * @param $form
492
+     * @param TDMCreateThemeForm $form
493 493
      *
494 494
      * @return mixed
495 495
      */
@@ -693,6 +693,10 @@  discard block
 block discarded – undo
693 693
 
694 694
     /**
695 695
      * Get Fields Criteria.
696
+     * @param integer $start
697
+     * @param integer $limit
698
+     * @param string $sort
699
+     * @param string $order
696 700
      */
697 701
     private function getFieldsCriteria($criteriaFields, $start, $limit, $sort, $order)
698 702
     {
Please login to merge, or discard this patch.
class/files/TDMCreateTableFields.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
     /**
31 31
      *  @public function constructor
32 32
      *
33
-     *  @param mixed $table
34 33
      */
35 34
     public function __construct()
36 35
     {
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminPages.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -255,6 +255,10 @@
 block discarded – undo
255 255
     *  @param $filename
256 256
     *  @return bool|string
257 257
     */
258
+
259
+    /**
260
+     * @param string $filename
261
+     */
258 262
     public function renderFile($filename)
259 263
     {
260 264
         $module = $this->getModule();
Please login to merge, or discard this patch.
class/helper.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     *  @param mixed $debug
59 59
     */
60 60
     /**
61
-     * @param $debug
61
+     * @param boolean $debug
62 62
      */
63 63
     public function __construct($debug)
64 64
     {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     *  @param string $name
107 107
     */
108 108
     /**
109
-     * @param null $name
109
+     * @param string $name
110 110
      *
111 111
      * @return null|string
112 112
      */
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * @param null $name
140 140
      * @param null $value
141 141
      *
142
-     * @return mixed
142
+     * @return string
143 143
      */
144 144
     public function setConfig($name = null, $value = null)
145 145
     {
@@ -157,9 +157,9 @@  discard block
 block discarded – undo
157 157
     *  @param string $name
158 158
     */
159 159
     /**
160
-     * @param $name
160
+     * @param string $name
161 161
      *
162
-     * @return mixed
162
+     * @return string
163 163
      */
164 164
     public function &getHandler($name)
165 165
     {
Please login to merge, or discard this patch.
class/logoGenerator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      * @param $logoIcon
101 101
      * @param $moduleDirname
102 102
      *
103
-     * @return bool|string
103
+     * @return false|string
104 104
      */
105 105
     public static function createLogo($logoIcon, $moduleDirname)
106 106
     {
Please login to merge, or discard this patch.
class/files/TDMCreateHtmlSmartyCodes.php 2 patches
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.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
     */
580 580
     /**
581 581
      * @param $language
582
-     * @param $const
582
+     * @param string $const
583 583
      *
584 584
      * @return string
585 585
      */
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
      * @param string $operator
691 691
      * @param string $type
692 692
      * @param string $contentIf
693
-     * @param mixed  $contentElse
693
+     * @param boolean  $contentElse
694 694
      * @param bool   $count
695 695
      *
696 696
      * @return string
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.