Passed
Push — master ( b911e4...6fc58e )
by Goffy
04:13 queued 54s
created
testdata/index.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     Utility
25 25
 };
26 26
 
27
-require_once \dirname(__DIR__, 3) . '/include/cp_header.php';
28
-require \dirname(__DIR__) . '/preloads/autoloader.php';
27
+require_once \dirname(__DIR__, 3).'/include/cp_header.php';
28
+require \dirname(__DIR__).'/preloads/autoloader.php';
29 29
 
30 30
 $op = \Xmf\Request::getCmd('op', '');
31 31
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             loadSampleData();
46 46
         } else {
47 47
             xoops_cp_header();
48
-            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', \sprintf(\constant('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA_OK')), \constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true);
48
+            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', \sprintf(\constant('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA_OK')), \constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true);
49 49
             xoops_cp_footer();
50 50
         }
51 51
         break;
@@ -68,20 +68,20 @@  discard block
 block discarded – undo
68 68
     $tables = Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
69 69
 
70 70
     $language = 'english/';
71
-    if (\is_dir(__DIR__ . '/' . $xoopsConfig['language'])) {
72
-        $language = $xoopsConfig['language'] . '/';
71
+    if (\is_dir(__DIR__.'/'.$xoopsConfig['language'])) {
72
+        $language = $xoopsConfig['language'].'/';
73 73
     }
74 74
 
75 75
     // load module tables
76 76
     foreach ($tables as $table) {
77
-        $tabledata = Yaml::readWrapped($language . $table . '.yml');
77
+        $tabledata = Yaml::readWrapped($language.$table.'.yml');
78 78
         TableLoad::truncateTable($table);
79 79
         TableLoad::loadTableFromArray($table, $tabledata);
80 80
     }
81 81
 
82 82
     // load permissions
83 83
     $table     = 'group_permission';
84
-    $tabledata = Yaml::readWrapped($language . $table . '.yml');
84
+    $tabledata = Yaml::readWrapped($language.$table.'.yml');
85 85
     $mid       = Helper::getHelper($moduleDirName)->getModule()->getVar('mid');
86 86
     loadTableFromArrayWithReplace($table, $tabledata, 'gperm_modid', $mid);
87 87
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             $utility::rcopy($src, $dest);
95 95
         }
96 96
     }
97
-    \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
97
+    \redirect_header('../admin/index.php', 1, \constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
98 98
 }
99 99
 
100 100
 function saveSampleData()
@@ -108,23 +108,23 @@  discard block
 block discarded – undo
108 108
 
109 109
     $tables = Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
110 110
 
111
-    $languageFolder = __DIR__ . '/' . $xoopsConfig['language'];
112
-    if (!\file_exists($languageFolder . '/')) {
113
-        Utility::createFolder($languageFolder . '/');
111
+    $languageFolder = __DIR__.'/'.$xoopsConfig['language'];
112
+    if (!\file_exists($languageFolder.'/')) {
113
+        Utility::createFolder($languageFolder.'/');
114 114
     }
115
-    $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/';
115
+    $exportFolder = $languageFolder.'/Exports-'.date('Y-m-d-H-i-s').'/';
116 116
     Utility::createFolder($exportFolder);
117 117
 
118 118
     // save module tables
119 119
     foreach ($tables as $table) {
120
-        TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml');
120
+        TableLoad::saveTableToYamlFile($table, $exportFolder.$table.'.yml');
121 121
     }
122 122
 
123 123
     // save permissions
124 124
     $criteria = new \CriteriaCompo();
125 125
     $criteria->add(new \Criteria('gperm_modid', Helper::getHelper($moduleDirName)->getModule()->getVar('mid')));
126 126
     $skipColumns[] = 'gperm_id';
127
-    TableLoad::saveTableToYamlFile('group_permission', $exportFolder . 'group_permission.yml', $criteria, $skipColumns);
127
+    TableLoad::saveTableToYamlFile('group_permission', $exportFolder.'group_permission.yml', $criteria, $skipColumns);
128 128
     unset($criteria);
129 129
 
130 130
     //  ---  COPY test folder files ---------------
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             Utility::rcopy($src, $dest);
136 136
         }
137 137
     }
138
-    \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA_SUCCESS'));
138
+    \redirect_header('../admin/index.php', 1, \constant('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA_SUCCESS'));
139 139
 }
140 140
 
141 141
 function exportSchema()
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         //
151 151
         //        \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
152 152
     } catch (\Exception $e) {
153
-        exit(\constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
153
+        exit(\constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR'));
154 154
     }
155 155
 
156 156
 }
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
     $db = \XoopsDatabaseFactory::getDatabaseConnection();
174 174
     $prefixedTable = $db->prefix($table);
175 175
     $count = 0;
176
-    $sql = 'DELETE FROM ' . $prefixedTable . ' WHERE `' . $search . '`=' . $db->quote($replace);
176
+    $sql = 'DELETE FROM '.$prefixedTable.' WHERE `'.$search.'`='.$db->quote($replace);
177 177
     $db->queryF($sql);
178 178
     foreach ($data as $row) {
179
-        $insertInto = 'INSERT INTO ' . $prefixedTable . ' (';
179
+        $insertInto = 'INSERT INTO '.$prefixedTable.' (';
180 180
         $valueClause = ' VALUES (';
181 181
         $first = true;
182 182
         foreach ($row as $column => $value) {
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 $valueClause .= $db->quote($value);
194 194
             }
195 195
         }
196
-        $sql = $insertInto . ') ' . $valueClause . ')';
196
+        $sql = $insertInto.') '.$valueClause.')';
197 197
         $result = $db->queryF($sql);
198 198
         if (false !== $result) {
199 199
             ++$count;
Please login to merge, or discard this patch.
class/Github/Sanity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function & __get($name)
15 15
     {
16
-        throw new LogicException('Cannot read an undeclared property ' . \get_class($this) . "::\$$name.");
16
+        throw new LogicException('Cannot read an undeclared property '.\get_class($this)."::\$$name.");
17 17
     }
18 18
 
19 19
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function __set($name, $value)
24 24
     {
25
-        throw new LogicException('Cannot write to an undeclared property ' . \get_class($this) . "::\$$name.");
25
+        throw new LogicException('Cannot write to an undeclared property '.\get_class($this)."::\$$name.");
26 26
     }
27 27
 
28 28
 }
Please login to merge, or discard this patch.
class/Github/Paginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
      */
149 149
     public static function parseLink($link, $rel)
150 150
     {
151
-        if (!\preg_match('(<([^>]+)>;\s*rel="' . preg_quote($rel) . '")', $link, $match)) {
151
+        if (!\preg_match('(<([^>]+)>;\s*rel="'.preg_quote($rel).'")', $link, $match)) {
152 152
             return NULL;
153 153
         }
154 154
 
Please login to merge, or discard this patch.
class/Github/Http/StreamClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,15 +47,15 @@  discard block
 block discarded – undo
47 47
         $options = [
48 48
             'http' => [
49 49
                 'method' => $request->getMethod(),
50
-                'header' => \implode("\r\n", $headerStr) . "\r\n",
51
-                'follow_location' => 0,  # Github sets the Location header for 201 code too and redirection is not required for us
50
+                'header' => \implode("\r\n", $headerStr)."\r\n",
51
+                'follow_location' => 0, # Github sets the Location header for 201 code too and redirection is not required for us
52 52
                 'protocol_version' => 1.1,
53 53
                 'ignore_errors' => TRUE,
54 54
             ],
55 55
             'ssl' => [
56 56
                 'verify_peer' => TRUE,
57
-                'cafile' => realpath(__DIR__ . '/../../ca-chain.crt'),
58
-                'disable_compression' => TRUE,  # Effective since PHP 5.4.13
57
+                'cafile' => realpath(__DIR__.'/../../ca-chain.crt'),
58
+                'disable_compression' => TRUE, # Effective since PHP 5.4.13
59 59
             ],
60 60
         ];
61 61
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $headers = [];
105 105
         foreach ($http_response_header as $header) {
106 106
             if (\in_array(\substr($header, 0, 1), [' ', "\t"], TRUE)) {
107
-                $headers[$last] .= ' ' . \trim($header);  # RFC2616, 2.2
107
+                $headers[$last] .= ' '.\trim($header); # RFC2616, 2.2
108 108
             } else {
109 109
                 list($name, $value) = \explode(':', $header, 2) + [NULL, NULL];
110 110
                 $headers[$last = \trim($name)] = \trim($value);
Please login to merge, or discard this patch.
class/Github/Http/CurlClient.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             CURLOPT_CONNECTTIMEOUT => 10,
59 59
             CURLOPT_SSL_VERIFYHOST => 2,
60 60
             CURLOPT_SSL_VERIFYPEER => 1,
61
-            CURLOPT_CAINFO => realpath(__DIR__ . '/../ca-chain.crt'),
61
+            CURLOPT_CAINFO => realpath(__DIR__.'/../ca-chain.crt'),
62 62
         ];
63 63
 
64 64
         $hardOptions = [
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                     $responseHeaders = [];
79 79
 
80 80
                 } elseif (\in_array(\substr($line, 0, 1), [' ', "\t"], TRUE)) {
81
-                    $responseHeaders[$last] .= ' ' . \trim($line);  # RFC2616, 2.2
81
+                    $responseHeaders[$last] .= ' '.\trim($line); # RFC2616, 2.2
82 82
 
83 83
                 } elseif ($line !== "\r\n") {
84 84
                     list($name, $value) = \explode(':', $line, 2);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $result = curl_setopt_array($this->curl, $hardOptions + ($this->options ?: []) + $softOptions);
104 104
         if ($result === FALSE) {
105
-            throw new BadResponseException('Setting cURL options failed: ' . \curl_error($this->curl), curl_errno($this->curl));
105
+            throw new BadResponseException('Setting cURL options failed: '.\curl_error($this->curl), curl_errno($this->curl));
106 106
         }
107 107
 
108 108
         $content = \curl_exec($this->curl);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         $code = \curl_getinfo($this->curl, CURLINFO_HTTP_CODE);
114 114
         if ($code === FALSE) {
115
-            throw new BadResponseException('HTTP status code is missing:' . \curl_error($this->curl), curl_errno($this->curl));
115
+            throw new BadResponseException('HTTP status code is missing:'.\curl_error($this->curl), curl_errno($this->curl));
116 116
         }
117 117
 
118 118
         return new Response($code, $responseHeaders, $content);
Please login to merge, or discard this patch.
class/Github/Api.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             $urlPath = $this->expandUriTemplate($urlPath, $parameters, $this->defaultParameters);
255 255
         }
256 256
 
257
-        $url = rtrim($baseUrl, '/') . '/' . ltrim($urlPath, '/');
257
+        $url = rtrim($baseUrl, '/').'/'.ltrim($urlPath, '/');
258 258
 
259 259
         if ($content !== NULL && (\is_array($content) || \is_object($content))) {
260 260
             $headers['Content-Type'] = 'application/json; charset=utf-8';
@@ -394,13 +394,13 @@  discard block
 block discarded – undo
394 394
             }
395 395
             $parameter = $parameters[$m[2]];
396 396
             unset($parameters[$m[2]]);
397
-            return $m[1] . rawurlencode($parameter);
397
+            return $m[1].rawurlencode($parameter);
398 398
         }, $url);
399 399
 
400 400
         $url = rtrim($url, '/');
401 401
 
402 402
         if (\count($parameters)) {
403
-            $url .= '?' . http_build_query($parameters);
403
+            $url .= '?'.http_build_query($parameters);
404 404
         }
405 405
 
406 406
         return $url;
@@ -421,14 +421,14 @@  discard block
 block discarded – undo
421 421
         $parameters += $defaultParameters;
422 422
 
423 423
         static $operatorFlags = [
424
-            ''  => ['prefix' => '',  'separator' => ',', 'named' => FALSE, 'ifEmpty' => '',  'reserved' => FALSE],
425
-            '+' => ['prefix' => '',  'separator' => ',', 'named' => FALSE, 'ifEmpty' => '',  'reserved' => TRUE],
426
-            '#' => ['prefix' => '#', 'separator' => ',', 'named' => FALSE, 'ifEmpty' => '',  'reserved' => TRUE],
427
-            '.' => ['prefix' => '.', 'separator' => '.', 'named' => FALSE, 'ifEmpty' => '',  'reserved' => FALSE],
428
-            '/' => ['prefix' => '/', 'separator' => '/', 'named' => FALSE, 'ifEmpty' => '',  'reserved' => FALSE],
429
-            ';' => ['prefix' => ';', 'separator' => ';', 'named' => TRUE,  'ifEmpty' => '',  'reserved' => FALSE],
430
-            '?' => ['prefix' => '?', 'separator' => '&', 'named' => TRUE,  'ifEmpty' => '=', 'reserved' => FALSE],
431
-            '&' => ['prefix' => '&', 'separator' => '&', 'named' => TRUE,  'ifEmpty' => '=', 'reserved' => FALSE],
424
+            ''  => ['prefix' => '', 'separator' => ',', 'named' => FALSE, 'ifEmpty' => '', 'reserved' => FALSE],
425
+            '+' => ['prefix' => '', 'separator' => ',', 'named' => FALSE, 'ifEmpty' => '', 'reserved' => TRUE],
426
+            '#' => ['prefix' => '#', 'separator' => ',', 'named' => FALSE, 'ifEmpty' => '', 'reserved' => TRUE],
427
+            '.' => ['prefix' => '.', 'separator' => '.', 'named' => FALSE, 'ifEmpty' => '', 'reserved' => FALSE],
428
+            '/' => ['prefix' => '/', 'separator' => '/', 'named' => FALSE, 'ifEmpty' => '', 'reserved' => FALSE],
429
+            ';' => ['prefix' => ';', 'separator' => ';', 'named' => TRUE, 'ifEmpty' => '', 'reserved' => FALSE],
430
+            '?' => ['prefix' => '?', 'separator' => '&', 'named' => TRUE, 'ifEmpty' => '=', 'reserved' => FALSE],
431
+            '&' => ['prefix' => '&', 'separator' => '&', 'named' => TRUE, 'ifEmpty' => '=', 'reserved' => FALSE],
432 432
         ];
433 433
 
434 434
         return preg_replace_callback('~{([+#./;?&])?([^}]+?)}~', function($m) use ($url, & $parameters, $operatorFlags) {
@@ -463,17 +463,17 @@  discard block
 block discarded – undo
463 463
                     if ($explode) {
464 464
                         $parts = [];
465 465
                         if ($isAssoc) {
466
-                            $this->walk($value, function ($v, $k) use (& $parts, $flags, $maxLength) {
466
+                            $this->walk($value, function($v, $k) use (& $parts, $flags, $maxLength) {
467 467
                                 $parts[] = $this->prefix(['named' => TRUE] + $flags, $k, $this->escape($flags, $v, $maxLength));
468 468
                             });
469 469
 
470 470
                         } elseif ($flags['named']) {
471
-                            $this->walk($value, function ($v) use (& $parts, $flags, $name, $maxLength) {
471
+                            $this->walk($value, function($v) use (& $parts, $flags, $name, $maxLength) {
472 472
                                 $parts[] = $this->prefix($flags, $name, $this->escape($flags, $v, $maxLength));
473 473
                             });
474 474
 
475 475
                         } else {
476
-                            $this->walk($value, function ($v) use (& $parts, $flags, $maxLength) {
476
+                            $this->walk($value, function($v) use (& $parts, $flags, $maxLength) {
477 477
                                 $parts[] = $this->escape($flags, $v, $maxLength);
478 478
                             });
479 479
                         }
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
             }
505 505
 
506 506
             if (isset($translated[0])) {
507
-                return $flags['prefix'] . \implode($flags['separator'], $translated);
507
+                return $flags['prefix'].\implode($flags['separator'], $translated);
508 508
             }
509 509
 
510 510
             return '';
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
             }
531 531
         }
532 532
 
533
-        return $prefix . $value;
533
+        return $prefix.$value;
534 534
     }
535 535
 
536 536
 
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
         $value = (string) $value;
546 546
 
547 547
         if ($maxLength !== NULL) {
548
-            if (\preg_match('~^(.{' . $maxLength . '}).~u', $value, $m)) {
548
+            if (\preg_match('~^(.{'.$maxLength.'}).~u', $value, $m)) {
549 549
                 $value = $m[1];
550 550
             } elseif (\strlen($value) > $maxLength) {  # when malformed UTF-8
551 551
                 $value = \substr($value, 0, $maxLength);
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 
559 559
             $escaped = '';
560 560
             for ($i = 0, $count = \count($parts); $i < $count; $i += 2) {
561
-                $escaped .= rawurlencode($parts[$i]) . $parts[$i + 1];
561
+                $escaped .= rawurlencode($parts[$i]).$parts[$i + 1];
562 562
             }
563 563
 
564 564
             return $escaped;
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
 
597 597
         if (isset($content->errors)) {
598 598
             $message .= \implode(', ', array_map(function($error) {
599
-                return '[' . \implode(':', (array) $error) . ']';
599
+                return '['.\implode(':', (array) $error).']';
600 600
             }, $content->errors));
601 601
         }
602 602
 
Please login to merge, or discard this patch.
class/Github/Storages/FileCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             throw new MissingDirectoryException("Directory '$tempDir' is missing.");
28 28
         }
29 29
 
30
-        $dir = $tempDir . DIRECTORY_SEPARATOR . 'milo.github-api';
30
+        $dir = $tempDir.DIRECTORY_SEPARATOR.'milo.github-api';
31 31
 
32 32
         if (!\is_dir($dir)) {
33 33
             set_error_handler(function($severity, $message, $file, $line) use ($dir, & $valid) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     private function filePath($key)
93 93
     {
94
-        return $this->dir . DIRECTORY_SEPARATOR . sha1($key) . '.php';
94
+        return $this->dir.DIRECTORY_SEPARATOR.sha1($key).'.php';
95 95
     }
96 96
 
97 97
 }
Please login to merge, or discard this patch.
class/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      */
71 71
     public function getHandler($name)
72 72
     {
73
-        $class = __NAMESPACE__ . '\\' . \ucfirst($name) . 'Handler';
73
+        $class = __NAMESPACE__.'\\'.\ucfirst($name).'Handler';
74 74
         if (!\class_exists($class)) {
75 75
             throw new \RuntimeException("Class '$class' not found");
76 76
         }
Please login to merge, or discard this patch.
class/Utility.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
     {
57 57
         if ($considerHtml) {
58 58
             // if the plain text is shorter than the maximum length, return the whole text
59
-            if (mb_strlen(\preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
59
+            if (mb_strlen(\preg_replace('/<.*?'.'>/', '', $text)) <= $length) {
60 60
                 return $text;
61 61
             }
62 62
             // splits all html-tags to scanable lines
63
-            \preg_match_all('/(<.+?' . '>)?([^<>]*)/s', $text, $lines, PREG_SET_ORDER);
63
+            \preg_match_all('/(<.+?'.'>)?([^<>]*)/s', $text, $lines, PREG_SET_ORDER);
64 64
             $total_length = mb_strlen($ending);
65 65
             $open_tags    = [];
66 66
             $truncate     = '';
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                             unset($open_tags[$pos]);
79 79
                         }
80 80
                         // if tag is an opening tag
81
-                    } elseif (\preg_match('/^<\s*([^\s>!]+).*?' . '>$/s', $line_matchings[1], $tag_matchings)) {
81
+                    } elseif (\preg_match('/^<\s*([^\s>!]+).*?'.'>$/s', $line_matchings[1], $tag_matchings)) {
82 82
                         // add tag to the beginning of $open_tags list
83 83
                         \array_unshift($open_tags, \mb_strtolower($tag_matchings[1]));
84 84
                     }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         if ($considerHtml) {
139 139
             // close all unclosed html-tags
140 140
             foreach ($open_tags as $tag) {
141
-                $truncate .= '</' . $tag . '>';
141
+                $truncate .= '</'.$tag.'>';
142 142
             }
143 143
         }
144 144
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 //--></script>
212 212
 <!-- End Form Validation JavaScript //-->',
213 213
         ];
214
-        $paypalform   = [
214
+        $paypalform = [
215 215
             0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
216 216
             1 => '<input name="cmd" value="_s-xclick" type="hidden">',
217 217
             2 => '<input name="hosted_button_id" value="%s" type="hidden">',
@@ -224,11 +224,11 @@  discard block
 block discarded – undo
224 224
                 case 2:
225 225
                     $donationform[$key] = \sprintf(
226 226
                         $donationform[$key],
227
-                        $GLOBALS['xoopsConfig']['sitename'] . ' - ' . ('' != $GLOBALS['xoopsUser']->getVar('name') ? $GLOBALS['xoopsUser']->getVar('name') . ' [' . $GLOBALS['xoopsUser']->getVar('uname') . ']' : $GLOBALS['xoopsUser']->getVar('uname')),
227
+                        $GLOBALS['xoopsConfig']['sitename'].' - '.('' != $GLOBALS['xoopsUser']->getVar('name') ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')),
228 228
                         $GLOBALS['xoopsUser']->getVar('email'),
229 229
                         XOOPS_LICENSE_KEY,
230 230
                         \mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')),
231
-                        \mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')) . ' ' . $GLOBALS['xoopsModule']->getVar('name')
231
+                        \mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name')
232 232
                     );
233 233
                     break;
234 234
             }
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -191,14 +191,14 @@
 block discarded – undo
191 191
         $donationform = [
192 192
             0   => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">',
193 193
             1   => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'
194
-                   . \_AM_WGGITHUB_ABOUT_MAKE_DONATION
195
-                   . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
196
-                   . \_AM_WGGITHUB_DONATION_AMOUNT
197
-                   . '</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="'
198
-                   . \_SUBMIT
199
-                   . '" title="'
200
-                   . \_SUBMIT
201
-                   . '" type="submit"></td></tr></tbody></table>',
194
+                    . \_AM_WGGITHUB_ABOUT_MAKE_DONATION
195
+                    . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
196
+                    . \_AM_WGGITHUB_DONATION_AMOUNT
197
+                    . '</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="'
198
+                    . \_SUBMIT
199
+                    . '" title="'
200
+                    . \_SUBMIT
201
+                    . '" type="submit"></td></tr></tbody></table>',
202 202
             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>',
203 203
             'D' => '',
204 204
             3   => '',
Please login to merge, or discard this patch.