Passed
Push — master ( 834a16...1c3825 )
by Goffy
09:06 queued 04:27
created
class/Utility.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -189,14 +189,14 @@
 block discarded – undo
189 189
         $donationform = [
190 190
             0   => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">',
191 191
             1   => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'
192
-                   . _AM_TDMCREATE_ABOUT_MAKE_DONATION
193
-                   . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
194
-                   . _AM_TDMCREATE_DONATION_AMOUNT
195
-                   . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
196
-                   . _SUBMIT
197
-                   . '" title="'
198
-                   . _SUBMIT
199
-                   . '" type="submit"></td></tr></tbody></table>',
192
+                    . _AM_TDMCREATE_ABOUT_MAKE_DONATION
193
+                    . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
194
+                    . _AM_TDMCREATE_DONATION_AMOUNT
195
+                    . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
196
+                    . _SUBMIT
197
+                    . '" title="'
198
+                    . _SUBMIT
199
+                    . '" type="submit"></td></tr></tbody></table>',
200 200
             2   => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="EUR" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"></form>',
201 201
             'D' => '',
202 202
             3   => '',
Please login to merge, or discard this patch.
include/functions.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
     $donationform = [
34 34
         0   => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">',
35 35
         1   => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'
36
-               . _AM_TDMCREATE_ABOUT_MAKE_DONATION
37
-               . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
38
-               . _AM_TDMCREATE_DONATION_AMOUNT
39
-               . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
40
-               . _SUBMIT
41
-               . '" title="'
42
-               . _SUBMIT
43
-               . '" type="submit"></td></tr></tbody></table>',
36
+                . _AM_TDMCREATE_ABOUT_MAKE_DONATION
37
+                . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
38
+                . _AM_TDMCREATE_DONATION_AMOUNT
39
+                . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
40
+                . _SUBMIT
41
+                . '" title="'
42
+                . _SUBMIT
43
+                . '" type="submit"></td></tr></tbody></table>',
44 44
         2   => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="EUR" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"></form>',
45 45
         'D' => '',
46 46
         3   => '',
Please login to merge, or discard this patch.
admin/building.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
 
92 92
         // Directory to saved all files
93
-		$building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname);
93
+        $building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname);
94 94
         
95 95
         // Copy this module in root modules
96 96
         if (1 === $inroot_copy) {
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
                 }
106 106
             }
107 107
             $building->copyDir($fromDir, $toDir);
108
-			$building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir);
108
+            $building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir);
109 109
         }
110
-		$GLOBALS['xoopsTpl']->assign('building_directory', $building_directory);
110
+        $GLOBALS['xoopsTpl']->assign('building_directory', $building_directory);
111 111
         break;
112 112
     case 'default':
113 113
     default:
Please login to merge, or discard this patch.
commonfiles/include/install.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
             $dest = $configurator->copyBlankFiles[$i] . '/blank.gif';
85 85
             $utility::copyFile($file, $dest);
86 86
         }
87
-		$file = dirname(__DIR__) . '/assets/images/blank.png';
87
+        $file = dirname(__DIR__) . '/assets/images/blank.png';
88 88
         foreach (array_keys($configurator->copyBlankFiles) as $i) {
89 89
             $dest = $configurator->copyBlankFiles[$i] . '/blank.png';
90 90
             $utility::copyFile($file, $dest);
Please login to merge, or discard this patch.
commonfiles/include/update.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     $ret = tdmcreate_check_db($module);
40 40
 
41 41
     //check upload directory
42
-	include_once __DIR__ . '/install.php';
42
+    include_once __DIR__ . '/install.php';
43 43
     $ret = xoops_module_install_tdmcreate($module);
44 44
 
45 45
     $errors = $module->getErrors();
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 function tdmcreate_check_db($module)
114 114
 {
115 115
     $ret = true;
116
-	//insert here code for database check
116
+    //insert here code for database check
117 117
 
118 118
     /*
119 119
     // Example: update table (add new field)
Please login to merge, or discard this patch.
commonfiles/testdata/index.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
         $language = $xoopsConfig['language'] . '/';
68 68
     }
69 69
 
70
-	// load module tables
70
+    // load module tables
71 71
     foreach ($tables as $table) {
72 72
         $tabledata = \Xmf\Yaml::readWrapped($language . $table . '.yml');
73 73
         \Xmf\Database\TableLoad::truncateTable($table);
74 74
         \Xmf\Database\TableLoad::loadTableFromArray($table, $tabledata);
75 75
     }
76 76
 	
77
-	// load permissions
77
+    // load permissions
78 78
     $table     = 'group_permission';
79 79
     $tabledata = \Xmf\Yaml::readWrapped($language . $table . '.yml');
80 80
     $mid       = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getVar('mid');
@@ -105,18 +105,18 @@  discard block
 block discarded – undo
105 105
 
106 106
     $languageFolder = __DIR__ . '/' . $xoopsConfig['language'];
107 107
     if (!file_exists($languageFolder . '/')) {
108
-       Utility::createFolder($languageFolder . '/');
108
+        Utility::createFolder($languageFolder . '/');
109 109
     }
110 110
     $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/';
111 111
     Utility::createFolder($exportFolder);
112 112
 
113
-	// save module tables
113
+    // save module tables
114 114
     foreach ($tables as $table) {
115 115
         \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml');
116 116
     }
117 117
 	
118
-	// save permissions
119
-	$criteria = new \CriteriaCompo();
118
+    // save permissions
119
+    $criteria = new \CriteriaCompo();
120 120
     $criteria->add(new \Criteria('gperm_modid', \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getVar('mid')));
121 121
     $skipColumns[] = 'gperm_id';
122 122
     \Xmf\Database\TableLoad::saveTableToYamlFile('group_permission', $exportFolder . 'group_permission.yml', $criteria, $skipColumns);
Please login to merge, or discard this patch.
commonfiles/class/Utility.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -189,14 +189,14 @@
 block discarded – undo
189 189
         $donationform = [
190 190
             0   => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">',
191 191
             1   => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'
192
-                   . _AM_TDMCREATE_ABOUT_MAKE_DONATION
193
-                   . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
194
-                   . _AM_TDMCREATE_DONATION_AMOUNT
195
-                   . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
196
-                   . _SUBMIT
197
-                   . '" title="'
198
-                   . _SUBMIT
199
-                   . '" type="submit"></td></tr></tbody></table>',
192
+                    . _AM_TDMCREATE_ABOUT_MAKE_DONATION
193
+                    . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
194
+                    . _AM_TDMCREATE_DONATION_AMOUNT
195
+                    . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
196
+                    . _SUBMIT
197
+                    . '" title="'
198
+                    . _SUBMIT
199
+                    . '" type="submit"></td></tr></tbody></table>',
200 200
             2   => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="EUR" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"></form>',
201 201
             'D' => '',
202 202
             3   => '',
Please login to merge, or discard this patch.
commonfiles/class/Common/Resizer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@
 block discarded – undo
65 65
 
66 66
         if ($width > $this->maxWidth || $height > $this->maxHeight) {
67 67
             // recalc image size based on this->maxWidth/this->maxHeight
68
-			$new_width  = 0;
69
-			$new_height = 0;
68
+            $new_width  = 0;
69
+            $new_height = 0;
70 70
             if ($width > $height) {
71 71
                 if ($width < $this->maxWidth) {
72 72
                     $new_width = $width;
Please login to merge, or discard this patch.
include/update.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
         update_tdmcreate_v191($module);
39 39
     }
40 40
 
41
-	tdmcreate_check_db($module);
41
+    tdmcreate_check_db($module);
42 42
 	
43
-	//check upload directory
44
-	include_once __DIR__ . '/install.php';
43
+    //check upload directory
44
+    include_once __DIR__ . '/install.php';
45 45
     xoops_module_install_tdmcreate($module);
46 46
 	
47 47
     $errors = $module->getErrors();
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 function tdmcreate_check_db($module)
122 122
 {
123 123
     $ret = true;
124
-	//insert here code for database check
124
+    //insert here code for database check
125 125
     global $xoopsDB;
126 126
 
127 127
     // new form field SelectStatus
Please login to merge, or discard this patch.