Passed
Push — master ( 15b7b4...04ef06 )
by Goffy
11:13 queued 08:22
created
language/english/admin.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,15 +63,15 @@
 block discarded – undo
63 63
 \define('_AM_WGSITENOTICE_OC', 'Online Versions');
64 64
 \define('_AM_WGSITENOTICE_OC_DISCLAIMER', 'Disclaimer');
65 65
 \define('_AM_WGSITENOTICE_OC_DISCLAIMER_DESCR',
66
-       'There is no warranty for the downloaded legal notices or of parts of them. The text of the legal versions are only a suggestion.<br/>Please check before you use them, whether this suggestions comply with the legal regulations and fulfil the relevant legal requirements, instructions and guidelines.<br/>You use them at your own risk.');
66
+        'There is no warranty for the downloaded legal notices or of parts of them. The text of the legal versions are only a suggestion.<br/>Please check before you use them, whether this suggestions comply with the legal regulations and fulfil the relevant legal requirements, instructions and guidelines.<br/>You use them at your own risk.');
67 67
 \define('_AM_WGSITENOTICE_OC_FORM', 'Check for available online versions');
68 68
 \define('_AM_WGSITENOTICE_OC_SERVER', 'Standard server for online check');
69 69
 \define('_AM_WGSITENOTICE_OC_START', 'Start check for available online versions');
70 70
 \define('_AM_WGSITENOTICE_OC_RESULT', 'On the named server available versions of legal notices');
71 71
 \define('_AM_WGSITENOTICE_OC_ERR_FORBIDDEN',
72
-       'Sorry, but the named server does not allow download of his versions of legal notices');
72
+        'Sorry, but the named server does not allow download of his versions of legal notices');
73 73
 \define('_AM_WGSITENOTICE_OC_ERR_NO_VERSIONS',
74
-       'Sorry, but on the named server are no versions of legal notices for download available');
74
+        'Sorry, but on the named server are no versions of legal notices for download available');
75 75
 \define('_AM_WGSITENOTICE_OC_ERR_INVALID_PARAM', 'Sorry, request failed caused by an invalid parameter');
76 76
 \define('_AM_WGSITENOTICE_OC_ERR_CONNECT', "Sorry, request to named server '%s' failed.<br/>Please check standard server in module settings");
77 77
 \define('_AM_WGSITENOTICE_OC_ERR_READ_XML', 'Sorry, an error occured when reading/parsing the xml-code');
Please login to merge, or discard this patch.
class/Utility.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -197,14 +197,14 @@
 block discarded – undo
197 197
         $donationform = [
198 198
             0   => '<form name="donation" id="donation" action="https://xoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">',
199 199
             1   => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'
200
-                   . \_AM_MODULEBUILDER_ABOUT_MAKE_DONATION
201
-                   . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
202
-                   . \_AM_MODULEBUILDER_DONATION_AMOUNT
203
-                   . '</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="'
204
-                   . \_SUBMIT
205
-                   . '" title="'
206
-                   . \_SUBMIT
207
-                   . '" type="submit"></td></tr></tbody></table>',
200
+                    . \_AM_MODULEBUILDER_ABOUT_MAKE_DONATION
201
+                    . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
202
+                    . \_AM_MODULEBUILDER_DONATION_AMOUNT
203
+                    . '</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="'
204
+                    . \_SUBMIT
205
+                    . '" title="'
206
+                    . \_SUBMIT
207
+                    . '" type="submit"></td></tr></tbody></table>',
208 208
             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="https://xoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="https://xoops.org/modules/xdonations/success.php" type="hidden"></form>',
209 209
             'D' => '',
210 210
             3   => '',
Please login to merge, or discard this patch.
admin/contents.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 $cont['weight'] = $contents_arr[$i]->getVar('cont_weight');
72 72
                 // Get Var cont_date
73 73
                 $cont['date'] = \formatTimestamp($contents_arr[$i]->getVar('cont_date'));
74
-                 if ($version_id_prev == $cont['version_id']) {
74
+                    if ($version_id_prev == $cont['version_id']) {
75 75
                     $cont['new_version'] = 0;
76 76
                     $cont['nb_conts_version'] = $nb_conts_version;
77 77
                 } else {
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
     break;
107 107
     case 'save':
108 108
         if ( !$GLOBALS['xoopsSecurity']->check() ) {
109
-           \redirect_header('contents.php', 3, \implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
109
+            \redirect_header('contents.php', 3, \implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
110 110
         }
111 111
         if (isset($cont_id)) {
112
-           $contentsObj = $contentsHandler->get($cont_id);
112
+            $contentsObj = $contentsHandler->get($cont_id);
113 113
         } else {
114
-           $contentsObj = $contentsHandler->create();
114
+            $contentsObj = $contentsHandler->create();
115 115
         }
116 116
         // Set Vars
117 117
         // Set Var cont_version_id
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $contentsObj->setVar('cont_date', \time());
129 129
         // Insert Data
130 130
         if ($contentsHandler->insert($contentsObj)) {
131
-           \redirect_header('contents.php?op=list', 2, \_AM_WGSITENOTICE_FORMOK);
131
+            \redirect_header('contents.php?op=list', 2, \_AM_WGSITENOTICE_FORMOK);
132 132
         }
133 133
         // Get Form
134 134
         $GLOBALS['xoopsTpl']->assign('error', $contentsObj->getHtmlErrors());
Please login to merge, or discard this patch.
admin/versions.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
     break;
98 98
     case 'save':
99 99
         if ( !$GLOBALS['xoopsSecurity']->check() ) {
100
-           \redirect_header('versions.php', 3, \implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
100
+            \redirect_header('versions.php', 3, \implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
101 101
         }
102 102
         if (isset($version_id)) {
103
-           $versionsObj = $versionsHandler->get($version_id);
103
+            $versionsObj = $versionsHandler->get($version_id);
104 104
         } else {
105
-           $versionsObj = $versionsHandler->create();
105
+            $versionsObj = $versionsHandler->create();
106 106
         }
107 107
         // Set Vars
108 108
         // Set Var version_name
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             $versionsObj->setVar('version_current', $version_current);
140 140
             // Insert Data
141 141
             if ($versionsHandler->insert($versionsObj)) {
142
-               \redirect_header('versions.php?op=list&start='.$start, 2, \_AM_WGSITENOTICE_FORMOK);
142
+                \redirect_header('versions.php?op=list&start='.$start, 2, \_AM_WGSITENOTICE_FORMOK);
143 143
             }
144 144
         }
145 145
     break;
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $versionsObj->setVar('version_online', $version_online);
153 153
             // Insert Data
154 154
             if ($versionsHandler->insert($versionsObj)) {
155
-               \redirect_header('versions.php?op=list&start='.$start, 2, \_AM_WGSITENOTICE_FORMOK);
155
+                \redirect_header('versions.php?op=list&start='.$start, 2, \_AM_WGSITENOTICE_FORMOK);
156 156
             }
157 157
         }
158 158
     break;
Please login to merge, or discard this patch.
index.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 $helper = Helper::getInstance();
26 26
 
27 27
 $GLOBALS['xoopsOption']['template_main'] = 'user/' . $helper->getConfig('wgsitenotice_template') . '/wgsitenotice_index_'
28
-                                           . $helper->getConfig('wgsitenotice_template') . '.tpl';
28
+                                            . $helper->getConfig('wgsitenotice_template') . '.tpl';
29 29
 include_once \XOOPS_ROOT_PATH.'/header.php';
30 30
 
31 31
 // Define Stylesheet
Please login to merge, or discard this patch.
admin/checkonline.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
 $oc_server = Request::getString('oc_server', 'default');
29 29
 if ('default' === $oc_server) {
30
-  $oc_server = $helper->getConfig('wgsitenotice_oc_server').'checkonline.php';
30
+    $oc_server = $helper->getConfig('wgsitenotice_oc_server').'checkonline.php';
31 31
 }
32 32
 
33 33
 $template_main = 'wgsitenotice_admin_checkonline.tpl';
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                             $contentsObj->setVar('cont_date', $onlinecontent->cont_date);
88 88
                             // Insert Data
89 89
                             if (!$contentsHandler->insert($contentsObj)) {
90
-                               $cont_errors++;
90
+                                $cont_errors++;
91 91
                             }
92 92
                         }
93 93
                         if ($cont_errors > 0) {
Please login to merge, or discard this patch.
language/german/admin.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 \define('_AM_WGSITENOTICE_OC', 'Online Versionen');
64 64
 \define('_AM_WGSITENOTICE_OC_DISCLAIMER', 'Haftungshinweis');
65 65
 \define('_AM_WGSITENOTICE_OC_DISCLAIMER_DESCR',
66
-       'Es wird keine Garantie für die Richtigkeit der heruntergeladenenen rechtlichen Hinweise bzw. Teile davon übernommen.<br/>
66
+        'Es wird keine Garantie für die Richtigkeit der heruntergeladenenen rechtlichen Hinweise bzw. Teile davon übernommen.<br/>
67 67
 Die Texte stellen nur einen Vorschlag dar. Bitte überprüfen Sie vor deren Verwendung, ob diese Vorschläge den gesetzlichen Vorschriften, rechtlichen Voraussetzungen, Bestimmungen oder Richtlinien entsprechen.<br/>
68 68
 Die Verwendung erfolgt auf eigene Gefahr.');
69 69
 \define('_AM_WGSITENOTICE_OC_FORM', 'Überprüfung auf verfügbare Online-Versionen');
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
 \define('_AM_WGSITENOTICE_OC_START', 'Starte Überprüfung auf verfügbare Online-Versionen');
72 72
 \define('_AM_WGSITENOTICE_OC_RESULT', 'Auf dem angeführten Server sind folgende Online-Versionen verfügbar');
73 73
 \define('_AM_WGSITENOTICE_OC_ERR_FORBIDDEN',
74
-       'Entschuldigung, aber der angeführte Server gestattet den Download der dort vorhandenen Versionen nicht');
74
+        'Entschuldigung, aber der angeführte Server gestattet den Download der dort vorhandenen Versionen nicht');
75 75
 \define('_AM_WGSITENOTICE_OC_ERR_NO_VERSIONS',
76
-       'Entschuldigung, aber auf dem angeführten Server sind keine Versionen für den Download verfügbar');
76
+        'Entschuldigung, aber auf dem angeführten Server sind keine Versionen für den Download verfügbar');
77 77
 \define('_AM_WGSITENOTICE_OC_ERR_INVALID_PARAM', 'Entschuldigung, aber die Anfrage ist aufgrund eines ungültigen Parameters fehlgeschlagen');
78 78
 \define('_AM_WGSITENOTICE_OC_ERR_CONNECT', "Entschuldigung, aber die Anfrage an den angeführten Server '%s' ist fehlgeschlagen.<br/>Bitte überprüfen Sie den Standardserver in den Moduleinstellungen");
79 79
 \define('_AM_WGSITENOTICE_OC_ERR_READ_XML', 'Entschuldigung, beim Lesen/Parsen des xml-Codes ist ein Fehler aufgetreten');
Please login to merge, or discard this patch.