Completed
Push — master ( 8e4f41...38ab27 )
by Goffy
03:18
created
admin/morefiles.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@
 block discarded – undo
91 91
         }
92 92
         // Form file save
93 93
         $morefilesObj->setVars([
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
-                               ]);
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
+                                ]);
99 99
 
100 100
         if ($tdmcreate->getHandler('morefiles')->insert($morefilesObj)) {
101 101
             if ($morefilesObj->isNew()) {
Please login to merge, or discard this patch.
admin/addfiles.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@
 block discarded – undo
91 91
         }
92 92
         // Form file save
93 93
         $addfilesObj->setVars([
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
-                              ]);
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
+                                ]);
99 99
 
100 100
         if ($tdmcreate->getHandler('addfiles')->insert($addfilesObj)) {
101 101
             if ($addfilesObj->isNew()) {
Please login to merge, or discard this patch.
admin/tables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
             $tablesObj = $tables->create();
131 131
         }
132 132
         $tableOrder = XoopsRequest::getInt('table_order');
133
-        $order = $tablesObj->isNew() ? $tableOrder + 1 : $tableOrder;
133
+        $order = $tablesObj->isNew() ? $tableOrder+1 : $tableOrder;
134 134
         // Form save tables
135 135
         $tablesObj->setVars([
136 136
                                 'table_mid' => $tableMid,
Please login to merge, or discard this patch.
admin/modules.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
118 118
             $uploader->fetchMedia($_POST['xoops_upload_file'][0]);
119 119
             if (!$uploader->upload()) {
120
-                $errors =& $uploader->getErrors();
120
+                $errors = & $uploader->getErrors();
121 121
                 redirect_header('javascript:history.go(-1)', 3, $errors);
122 122
             } else {
123 123
                 $modulesObj->setVar('mod_image', $uploader->getSavedFileName());
Please login to merge, or discard this patch.
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -90,32 +90,32 @@  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([
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
-                             ]);
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
+                                ]);
113 113
         //Form mod_image
114 114
         include_once XOOPS_ROOT_PATH.'/class/uploader.php';
115 115
         $uploader = new XoopsMediaUploader(
116 116
             TDMC_UPLOAD_IMGMOD_PATH,
117 117
             $tdmcreate->getConfig('mimetypes'),
118
-                                           $tdmcreate->getConfig('maxsize'),
118
+                                            $tdmcreate->getConfig('maxsize'),
119 119
             null,
120 120
             null
121 121
         );
@@ -133,17 +133,17 @@  discard block
 block discarded – undo
133 133
         //Form module save
134 134
         $modulesObj->setVars(
135 135
             [
136
-                                 'mod_demo_site_url' => $_POST['mod_demo_site_url'],
137
-                                 'mod_demo_site_name' => $_POST['mod_demo_site_name'],
138
-                                 'mod_support_url' => $_POST['mod_support_url'],
139
-                                 'mod_support_name' => $_POST['mod_support_name'],
140
-                                 'mod_website_url' => $_POST['mod_website_url'],
141
-                                 'mod_website_name' => $_POST['mod_website_name'],
142
-                                 'mod_release' => $_POST['mod_release'],
143
-                                 'mod_status' => $_POST['mod_status'],
144
-                                 'mod_donations' => $_POST['mod_donations'],
145
-                                 'mod_subversion' => $_POST['mod_subversion'],
146
-                             ]
136
+                                    'mod_demo_site_url' => $_POST['mod_demo_site_url'],
137
+                                    'mod_demo_site_name' => $_POST['mod_demo_site_name'],
138
+                                    'mod_support_url' => $_POST['mod_support_url'],
139
+                                    'mod_support_name' => $_POST['mod_support_name'],
140
+                                    'mod_website_url' => $_POST['mod_website_url'],
141
+                                    'mod_website_name' => $_POST['mod_website_name'],
142
+                                    'mod_release' => $_POST['mod_release'],
143
+                                    'mod_status' => $_POST['mod_status'],
144
+                                    'mod_donations' => $_POST['mod_donations'],
145
+                                    'mod_subversion' => $_POST['mod_subversion'],
146
+                                ]
147 147
         );
148 148
         $moduleOption = XoopsRequest::getArray('module_option', []);
149 149
         $modulesObj->setVar('mod_admin', in_array('admin', $moduleOption));
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 $modversion['release_info']        = 'README';
41 41
 $modversion['release_file']        = 'https://github.com/txmodxoops/tdmcreate-1.91/releases';
42 42
 $modversion['manual']              = 'MANUAL';
43
-$modversion['manual_file']         = XOOPS_URL . "/modules/{$moduleDirName}/docs/manual.txt";
43
+$modversion['manual_file']         = XOOPS_URL."/modules/{$moduleDirName}/docs/manual.txt";
44 44
 $modversion['image']               = "assets/images/{$moduleDirName}_logo.png";
45 45
 $modversion['dirname']             = "{$moduleDirName}";
46 46
 // Frameworks icons
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 // Module icons
51 51
 $modversion['modicons16']          = 'assets/icons/16';
52 52
 $modversion['modicons32']          = 'assets/icons/32';
53
-$modversion['targetdir']           = XOOPS_UPLOAD_PATH . "/{$moduleDirName}/repository/";
53
+$modversion['targetdir']           = XOOPS_UPLOAD_PATH."/{$moduleDirName}/repository/";
54 54
 $modversion['module_website_url']  = 'https://github.com/txmodxoops/tdmcreate-1.91';
55 55
 $modversion['module_website_name'] = 'GitHub Txmodx Xoops';
56 56
 $modversion['min_php']             = '5.5';
@@ -86,17 +86,17 @@  discard block
 block discarded – undo
86 86
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
87 87
 // Tables created by sql file (without prefix!)
88 88
 $modversion['tables'] = [
89
-    $moduleDirName . '_' . 'settings',
90
-    $moduleDirName . '_' . 'modules',
91
-    $moduleDirName . '_' . 'tables',
92
-    $moduleDirName . '_' . 'fields',
93
-    $moduleDirName . '_' . 'languages',
94
-    $moduleDirName . '_' . 'fieldtype',
95
-    $moduleDirName . '_' . 'fieldattributes',
96
-    $moduleDirName . '_' . 'fieldnull',
97
-    $moduleDirName . '_' . 'fieldkey',
98
-    $moduleDirName . '_' . 'fieldelements',
99
-    $moduleDirName . '_' . 'morefiles'
89
+    $moduleDirName.'_'.'settings',
90
+    $moduleDirName.'_'.'modules',
91
+    $moduleDirName.'_'.'tables',
92
+    $moduleDirName.'_'.'fields',
93
+    $moduleDirName.'_'.'languages',
94
+    $moduleDirName.'_'.'fieldtype',
95
+    $moduleDirName.'_'.'fieldattributes',
96
+    $moduleDirName.'_'.'fieldnull',
97
+    $moduleDirName.'_'.'fieldkey',
98
+    $moduleDirName.'_'.'fieldelements',
99
+    $moduleDirName.'_'.'morefiles'
100 100
 ];
101 101
 // Scripts to run upon installation or update
102 102
 $modversion['onInstall'] = 'include/install.php';
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 $modversion['hasMain'] = 0;
106 106
 // Config
107 107
 $c                                       = 1;
108
-$modversion['config'][$c]['name']        = 'break' . $c;
108
+$modversion['config'][$c]['name']        = 'break'.$c;
109 109
 $modversion['config'][$c]['title']       = '_MI_TDMCREATE_CONFIG_BREAK_GENERAL';
110 110
 $modversion['config'][$c]['description'] = '_MI_TDMCREATE_CONFIG_';
111 111
 $modversion['config'][$c]['formtype']    = 'line_break';
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 $modversion['config'][$c]['valuetype']   = 'int';
174 174
 $modversion['config'][$c]['default']     = 10;
175 175
 ++$c;
176
-$modversion['config'][$c]['name']        = 'break' . $c;
176
+$modversion['config'][$c]['name']        = 'break'.$c;
177 177
 $modversion['config'][$c]['title']       = '_MI_TDMCREATE_CONFIG_BREAK_REQUIRED';
178 178
 $modversion['config'][$c]['description'] = '_MI_TDMCREATE_CONFIG_';
179 179
 $modversion['config'][$c]['formtype']    = 'line_break';
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 $modversion['config'][$c]['valuetype']   = 'int';
314 314
 $modversion['config'][$c]['default']     = 0;
315 315
 ++$c;
316
-$modversion['config'][$c]['name']        = 'break' . $c;
316
+$modversion['config'][$c]['name']        = 'break'.$c;
317 317
 $modversion['config'][$c]['title']       = '_MI_TDMCREATE_CONFIG_BREAK_OPTIONAL';
318 318
 $modversion['config'][$c]['description'] = '_MI_TDMCREATE_CONFIG_';
319 319
 $modversion['config'][$c]['formtype']    = 'line_break';
Please login to merge, or discard this patch.
class/logo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 
127 127
         // Write text
128 128
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
129
-        $spaceToBorder = (92 - strlen($moduleDirname) * 7.5) / 2;
129
+        $spaceToBorder = (92-strlen($moduleDirname) * 7.5) / 2;
130 130
         imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, ucfirst($moduleDirname), []);
131 131
 
132 132
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
Please login to merge, or discard this patch.
class/form/TDMCreateFormTabTray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js');
62 62
         $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
63 63
         $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.$this->uiTheme.'/ui.all.css');
64
-        $GLOBALS['xoTheme']->addScript('', ['type' => 'text/javascript'], '$(function() { $("#tabs_' . $this->getName() . '").tabs(); });');
64
+        $GLOBALS['xoTheme']->addScript('', ['type' => 'text/javascript'], '$(function() { $("#tabs_'.$this->getName().'").tabs(); });');
65 65
 
66 66
         $ret = '<div id="tabs_'.$this->getName().'">'.NWLINE;
67 67
         $ret .= '<ul>'.NWLINE;
Please login to merge, or discard this patch.
class/fields.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@
 block discarded – undo
325 325
         $id = 1;
326 326
         foreach ($fields as $field) {
327 327
             $class = ('even' === $class) ? 'odd' : 'even';
328
-            $fieldId = (int)$field->getVar('field_id');
328
+            $fieldId = (int) $field->getVar('field_id');
329 329
             if ($id > $fieldNumb) {   // delete additional fields, if number of fields is reduced - goffy
330 330
                 $fieldsObj = &$tdmcreate->getHandler('fields')->get($fieldId);
331 331
                 $tdmcreate->getHandler('fields')->delete($fieldsObj, true);
Please login to merge, or discard this patch.
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * @private function getFormNewLine
164 164
      *
165
-     * @param $form
166
-     * @param $class
167
-     * @param $i
165
+     * @param TDMCreateThemeForm $form
166
+     * @param string $class
167
+     * @param integer $i
168 168
      * @param $fieldMid
169 169
      * @param $fieldTid
170 170
      * @param $fName
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
     /**
449 449
      * @private function getFooterForm
450 450
      *
451
-     * @param $form
451
+     * @param TDMCreateThemeForm $form
452 452
      *
453 453
      * @return mixed
454 454
      */
@@ -602,10 +602,10 @@  discard block
 block discarded – undo
602 602
     /**
603 603
      * Get Fields Criteria.
604 604
      * @param $crFields
605
-     * @param $start
606
-     * @param $limit
607
-     * @param $sort
608
-     * @param $order
605
+     * @param integer $start
606
+     * @param integer $limit
607
+     * @param string $sort
608
+     * @param string $order
609 609
      * @return mixed
610 610
      */
611 611
     private function getFieldsCriteria($crFields, $start, $limit, $sort, $order)
Please login to merge, or discard this patch.
class/tables.php 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
     ];
56 56
 
57 57
     /**
58
-    *  @public function constructor class
59
-    *  @param null
60
-    */
58
+     *  @public function constructor class
59
+     *  @param null
60
+     */
61 61
 
62 62
     public function __construct()
63 63
     {
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-    *  @static function getInstance
110
-    *  @param null
109
+     *  @static function getInstance
110
+     *  @param null
111 111
      * @return TDMCreateTables
112 112
      */
113 113
     public static function getInstance()
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
     }
122 122
 
123 123
     /**
124
-    *  @static function getFormTables
125
-    *  @param mixed $action
124
+     *  @static function getFormTables
125
+     *  @param mixed $action
126 126
      *
127 127
      * @return XoopsThemeForm
128 128
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
     {
273 273
         $retTable = [];
274 274
         foreach ($this->options as $option) {
275
-            if (1 == $this->getVar('table_' . $option)) {
275
+            if (1 == $this->getVar('table_'.$option)) {
276 276
                 array_push($retTable, $option);
277 277
             }
278 278
         }
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     /**
284 284
      * Get Defined Language.
285 285
      *
286
-     * @param $lang
286
+     * @param string $lang
287 287
      *
288 288
      * @return string
289 289
      */
@@ -409,10 +409,10 @@  discard block
 block discarded – undo
409 409
      * Get Tables Criteria.
410 410
      *
411 411
      * @param $crTables
412
-     * @param $start
413
-     * @param $limit
414
-     * @param $sort
415
-     * @param $order
412
+     * @param integer $start
413
+     * @param integer $limit
414
+     * @param string $sort
415
+     * @param string $order
416 416
      *
417 417
      * @return mixed
418 418
      */
Please login to merge, or discard this patch.