Completed
Push — master ( 7ac2b2...53f768 )
by Marcus
02:57
created
src/Controller/Shop/Updateshippingcost.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -42,24 +42,24 @@
 block discarded – undo
42 42
 
43 43
         header('Content-Type: text/html; charset=UTF-8');
44 44
         $return = '<div>';
45
-        $return .= '<div id="shippingcostbrutto_new">' . number_format($_SESSION['cartpricesums']['fVersandkostenbrutto'],
45
+        $return .= '<div id="shippingcostbrutto_new">'.number_format($_SESSION['cartpricesums']['fVersandkostenbrutto'],
46 46
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
47
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
48
-        $return .= '<div id="vatfull_new">' . number_format(round($_SESSION['cartpricesums']['fSteuervoll'], 2),
47
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
48
+        $return .= '<div id="vatfull_new">'.number_format(round($_SESSION['cartpricesums']['fSteuervoll'], 2),
49 49
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
50
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
51
-        $return .= '<div id="totalbrutto_new">' . number_format(round($_SESSION['cartpricesums']['fGesamtbrutto'], 2),
50
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
51
+        $return .= '<div id="totalbrutto_new">'.number_format(round($_SESSION['cartpricesums']['fGesamtbrutto'], 2),
52 52
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
53
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
54
-        $return .= '<div id="shippingcostnetto_new">' . number_format($_SESSION['cartpricesums']['fVersandkostennetto'],
53
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
54
+        $return .= '<div id="shippingcostnetto_new">'.number_format($_SESSION['cartpricesums']['fVersandkostennetto'],
55 55
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
56
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
57
-        $return .= '<div id="vatreduced_new">' . number_format(round($_SESSION['cartpricesums']['fSteuererm'], 2),
56
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
57
+        $return .= '<div id="vatreduced_new">'.number_format(round($_SESSION['cartpricesums']['fSteuererm'], 2),
58 58
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
59
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
60
-        $return .= '<div id="totalnetto_new">' . number_format(round($_SESSION['cartpricesums']['fGesamtnetto'], 2),
59
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
60
+        $return .= '<div id="totalnetto_new">'.number_format(round($_SESSION['cartpricesums']['fGesamtnetto'], 2),
61 61
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
62
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
62
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
63 63
         $return .= '</div>';
64 64
         \HaaseIT\HCSF\Helper::terminateScript($return);
65 65
     }
Please login to merge, or discard this patch.
src/Controller/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         } elseif (count(HelperConfig::$secrets['admin_users'])) {
116 116
 
117 117
             if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { // fix for php cgi mode
118
-                list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'], 6)));
118
+                list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':', base64_decode(substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'], 6)));
119 119
             }
120 120
 
121 121
             if (isset($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) {
@@ -131,12 +131,12 @@  discard block
 block discarded – undo
131 131
             }
132 132
 
133 133
             if (!$validated) {
134
-                header('WWW-Authenticate: Basic realm="' . HelperConfig::$secrets['admin_authrealm'] . '"');
134
+                header('WWW-Authenticate: Basic realm="'.HelperConfig::$secrets['admin_authrealm'].'"');
135 135
                 header('HTTP/1.0 401 Unauthorized');
136 136
                 \HaaseIT\HCSF\Helper::terminateScript('Not authorized');
137 137
             }
138 138
         } else {
139
-            header('WWW-Authenticate: Basic realm="' . HelperConfig::$secrets['admin_authrealm'] . '"');
139
+            header('WWW-Authenticate: Basic realm="'.HelperConfig::$secrets['admin_authrealm'].'"');
140 140
             header('HTTP/1.0 401 Unauthorized');
141 141
             \HaaseIT\HCSF\Helper::terminateScript('Not authorized');
142 142
         }
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
             $aPath = explode('/', $this->sPath);
88 88
             if (!empty($map[$this->sPath])) {
89
-                $class = '\\HaaseIT\\HCSF\\Controller\\' . $map[$this->sPath];
89
+                $class = '\\HaaseIT\\HCSF\\Controller\\'.$map[$this->sPath];
90 90
             } else {
91 91
                 if ($aPath[1] == HelperConfig::$core['directory_images']) {
92 92
                     $class = Controller\Glide::class;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 } else { // if it is found, go on
133 133
                     // Support for shorturls
134 134
                     if ($this->P->cb_pagetype === 'shorturl') {
135
-                        \HaaseIT\HCSF\Helper::redirectToPage('Location: ' . $this->P->cb_pageconfig, true);
135
+                        \HaaseIT\HCSF\Helper::redirectToPage('Location: '.$this->P->cb_pageconfig, true);
136 136
                     }
137 137
 
138 138
                     if (isset($this->P, $aRoutingoverride) && count($aRoutingoverride)) {
@@ -148,14 +148,14 @@  discard block
 block discarded – undo
148 148
                 $this->P->iStatus = 404;
149 149
 
150 150
                 $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_found');
151
-                header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
151
+                header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
152 152
             } elseif (!is_object($this->P) && $this->P == 500) {
153 153
                 $this->P = new CorePage($this->serviceManager);
154 154
                 $this->P->cb_pagetype = 'error';
155 155
                 $this->P->iStatus = 500;
156 156
 
157 157
                 $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_server_error');
158
-                header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error');
158
+                header($_SERVER['SERVER_PROTOCOL'].' 500 Internal Server Error');
159 159
             } elseif (is_object($this->P) && $this->P->oPayload == NULL) {// elseif the page has been found but contains no payload...
160 160
                 if (
161 161
                     !(
@@ -165,10 +165,10 @@  discard block
 block discarded – undo
165 165
                     )
166 166
                 ) { // no payload is fine if page is one of these
167 167
                     $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_content_not_found');
168
-                    header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
168
+                    header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
169 169
                 }
170 170
             } elseif ($this->P->oPayload->cl_lang != NULL && $this->P->oPayload->cl_lang != HelperConfig::$lang) { // if the page is available but not in the current language, display info
171
-                $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_available_lang') . '<br><br>' . $this->P->oPayload->cl_html;
171
+                $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_available_lang').'<br><br>'.$this->P->oPayload->cl_html;
172 172
             }
173 173
         }
174 174
         return $this->P;
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 // to allow dots in the filename, we have to iterate through all parts of the filename
191 191
                 $aRoutingoverride['itemno'] = '';
192 192
                 for ($i = 0; $i < count($aTMP['exploded_request_file']) - 1; $i++) {
193
-                    $aRoutingoverride['itemno'] .= $aTMP['exploded_request_file'][$i] . '.';
193
+                    $aRoutingoverride['itemno'] .= $aTMP['exploded_request_file'][$i].'.';
194 194
                 }
195 195
                 // remove the trailing dot
196 196
                 $aRoutingoverride['itemno'] = \HaaseIT\Toolbox\Tools::cutStringend($aRoutingoverride['itemno'], 1);
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 // rebuild the path string without the trailing '/item/itemno.html'
201 201
                 $this->sPath = '';
202 202
                 for ($i = 0; $i < $aTMP['parts_in_path'] - 2; $i++) {
203
-                    $this->sPath .= $aPath[$i] . '/';
203
+                    $this->sPath .= $aPath[$i].'/';
204 204
                 }
205 205
             }
206 206
         }
Please login to merge, or discard this patch.