Completed
Push — master ( df9201...fc5d0d )
by Goffy
9s
created
class/form/TDMCreateFormRadio.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         }
64 64
         if (!empty($this->columns)) {
65 65
             if ($span = $i % $this->columns) {
66
-                $ret .= '<td colspan="'.($this->columns - $span).'"></td></tr>';
66
+                $ret .= '<td colspan="'.($this->columns-$span).'"></td></tr>';
67 67
             }
68 68
             $ret .= '</table>';
69 69
         }
Please login to merge, or discard this patch.
class/files/include/IncludeSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $nb_fieldSearch = count($fieldSearch);
96 96
             $sql .= '(';
97 97
             for ($i = 0; $i < $nb_fieldSearch; ++$i) {
98
-                if ($i != $nb_fieldSearch - 1) {
98
+                if ($i != $nb_fieldSearch-1) {
99 99
                     $sql .= ''.$fieldSearch[$i].' LIKE %$queryarray['.$options.']% OR ';
100 100
                 } else {
101 101
                     $sql .= ''.$fieldSearch[$i].' LIKE %$queryarray[0]%';
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
     /**
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 1 patch
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.
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 1 patch
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.