Completed
Push — master ( 6f00b4...805ee0 )
by Gino
03:23
created
class/files/user/UserRss.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             if (strpos($fieldName, '_')) {
100 100
                 $str = strpos($fieldName, '_');
101 101
                 if ($str !== false) {
102
-                    $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName));
102
+                    $rpFieldName = substr($fieldName, $str+1, strlen($fieldName));
103 103
                 }
104 104
             }
105 105
             $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_'));
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
     *  @param string $filename
77 77
     */
78 78
     /**
79
-     * @param $module
79
+     * @param string $module
80 80
      * @param $table
81
-     * @param $filename
81
+     * @param string $filename
82 82
      */
83 83
     public function write($module, $table, $filename)
84 84
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     */
95 95
     /**
96 96
      * @param $moduleDirname
97
-     * @param $language
97
+     * @param string $language
98 98
      *
99 99
      * @return string
100 100
      */
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     *  @param null
217 217
     */
218 218
     /**
219
-     * @return bool|string
219
+     * @return null|string
220 220
      */
221 221
     public function render()
222 222
     {
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.
class/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
  */
28 28
 // Autoload Function
29 29
 ini_set('display_errors', 1);
30
-error_reporting(E_ALL | E_STRICT);
30
+error_reporting(E_ALL|E_STRICT);
31 31
 
32 32
 if (!function_exists('application_autoloader')) {
33 33
     function application_autoloader($class)
Please login to merge, or discard this patch.
admin/modules.php 2 patches
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @version         $Id: 1.59 modules.php 11297 2013-03-24 10:58:10Z timgno $
23 23
  */
24
-include __DIR__ .'/header.php';
24
+include __DIR__.'/header.php';
25 25
 // Recovered value of argument op in the URL $
26 26
 $op = XoopsRequest::getString('op', 'list');
27 27
 //
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                                  'mod_release_info' => $_POST['mod_release_info'],
109 109
                                  'mod_release_file' => $_POST['mod_release_file'],
110 110
                                  'mod_manual' => $_POST['mod_manual'],
111
-                                 'mod_manual_file' => $_POST['mod_manual_file'], ));
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'),
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                                  'mod_release' => $_POST['mod_release'],
136 136
                                  'mod_status' => $_POST['mod_status'],
137 137
                                  'mod_donations' => $_POST['mod_donations'],
138
-                                 'mod_subversion' => $_POST['mod_subversion'], )
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));
@@ -209,4 +209,4 @@  discard block
 block discarded – undo
209 209
         break;
210 210
 }
211 211
 
212
-include __DIR__ .'/footer.php';
212
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/settings.php 2 patches
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @version         $Id: 1.59 settings.php 11297 2013-03-24 10:58:10Z timgno $
23 23
  */
24
-include __DIR__ .'/header.php';
24
+include __DIR__.'/header.php';
25 25
 // Recovered value of argument op in the URL $
26 26
 $op = XoopsRequest::getString('op', 'list');
27 27
 //
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                                  'set_release_info' => $_POST['set_release_info'],
104 104
                                  'set_release_file' => $_POST['set_release_file'],
105 105
                                  'set_manual' => $_POST['set_manual'],
106
-                                 'set_manual_file' => $_POST['set_manual_file'], ));
106
+                                 'set_manual_file' => $_POST['set_manual_file'],));
107 107
         //Form set_image
108 108
         $settingsObj->setVar('set_image', $_POST['set_image']);
109 109
         //Form module save
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                                  'set_release' => $_POST['set_release'],
118 118
                                  'set_status' => $_POST['set_status'],
119 119
                                  'set_donations' => $_POST['set_donations'],
120
-                                 'set_subversion' => $_POST['set_subversion'], )
120
+                                 'set_subversion' => $_POST['set_subversion'],)
121 121
         );
122 122
         $settingOption = XoopsRequest::getArray('setting_option', array());
123 123
         $settingsObj->setVar('set_admin', in_array('admin', $settingOption));
@@ -177,4 +177,4 @@  discard block
 block discarded – undo
177 177
         }
178 178
         break;
179 179
 }
180
-include __DIR__ .'/footer.php';
180
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/addfiles.php 2 patches
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.
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
  * @version         $Id: 1.59 addfiles.php 11297 2013-03-24 10:58:10Z timgno $
23 23
  */
24
-include __DIR__ .'/header.php';
24
+include __DIR__.'/header.php';
25 25
 // Recovered value of argument op in the URL $
26 26
 $op = XoopsRequest::getString('op', 'list');
27 27
 //
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                                  'file_mid' => $_POST['file_mid'],
95 95
                                  'file_name' => $_POST['file_name'],
96 96
                                  'file_extension' => $_POST['file_extension'],
97
-                                 'file_infolder' => $_POST['file_infolder'], ));
97
+                                 'file_infolder' => $_POST['file_infolder'],));
98 98
 
99 99
         if ($tdmcreate->getHandler('addfiles')->insert($addfilesObj)) {
100 100
             if ($addfilesObj->isNew()) {
@@ -140,4 +140,4 @@  discard block
 block discarded – undo
140 140
         break;
141 141
 }
142 142
 
143
-include __DIR__ .'/footer.php';
143
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
class/fieldelements.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -275,6 +275,10 @@
 block discarded – undo
275 275
 
276 276
     /**
277 277
      * Get MoreFiles Criteria.
278
+     * @param integer $start
279
+     * @param integer $limit
280
+     * @param string $sort
281
+     * @param string $order
278 282
      */
279 283
     private function getMoreFilesCriteria($criteriaMoreFiles, $start, $limit, $sort, $order)
280 284
     {
Please login to merge, or discard this patch.
admin/morefiles.php 2 patches
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.
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
  * @version         $Id: 1.59 addfiles.php 11297 2013-03-24 10:58:10Z timgno $
23 23
  */
24
-include __DIR__ .'/header.php';
24
+include __DIR__.'/header.php';
25 25
 // Recovered value of argument op in the URL $
26 26
 $op = XoopsRequest::getString('op', 'list');
27 27
 //
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                                  'file_mid' => $_POST['file_mid'],
95 95
                                  'file_name' => $_POST['file_name'],
96 96
                                  'file_extension' => $_POST['file_extension'],
97
-                                 'file_infolder' => $_POST['file_infolder'], ));
97
+                                 'file_infolder' => $_POST['file_infolder'],));
98 98
 
99 99
         if ($tdmcreate->getHandler('addfiles')->insert($addfilesObj)) {
100 100
             if ($addfilesObj->isNew()) {
@@ -140,4 +140,4 @@  discard block
 block discarded – undo
140 140
         break;
141 141
 }
142 142
 
143
-include __DIR__ .'/footer.php';
143
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
class/files/user/UserPrint.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             if (strpos($fieldName, '_')) {
100 100
                 $str = strpos($fieldName, '_');
101 101
                 if ($str !== false) {
102
-                    $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName));
102
+                    $rpFieldName = substr($fieldName, $str+1, strlen($fieldName));
103 103
                 }
104 104
             }
105 105
             $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_'));
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
     *  @param string $filename
77 77
     */
78 78
     /**
79
-     * @param $module
79
+     * @param string $module
80 80
      * @param $table
81
-     * @param $filename
81
+     * @param string $filename
82 82
      */
83 83
     public function write($module, $table, $filename)
84 84
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     */
95 95
     /**
96 96
      * @param $moduleDirname
97
-     * @param $language
97
+     * @param string $language
98 98
      *
99 99
      * @return string
100 100
      */
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     *  @param null
217 217
     */
218 218
     /**
219
-     * @return bool|string
219
+     * @return null|string
220 220
      */
221 221
     public function render()
222 222
     {
Please login to merge, or discard this patch.