@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | /** |
| 106 | 106 | * @param string $sKeyConfig |
| 107 | 107 | * @param string $sKeyForm |
| 108 | - * @param array|bool $aUserData |
|
| 108 | + * @param boolean $aUserData |
|
| 109 | 109 | * @return bool |
| 110 | 110 | */ |
| 111 | 111 | public static function getCustomerFormDefaultValue($sKeyConfig, $sKeyForm, $aUserData) { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @param $sLang |
|
| 121 | + * @param string $sLang |
|
| 122 | 122 | * @param string $sPurpose |
| 123 | 123 | * @param string $sErr |
| 124 | 124 | * @param bool $aUserData |
@@ -86,7 +86,7 @@ discard block |
||
| 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 = '\\HaaseIT\\HCSF\\Controller\\Glide'; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } else { // if it is found, go on |
| 133 | 133 | // Support for shorturls |
| 134 | 134 | if ($this->P->cb_pagetype === 'shorturl') { |
| 135 | - header('Location: ' . $this->P->cb_pageconfig, true, 302); |
|
| 135 | + header('Location: '.$this->P->cb_pageconfig, true, 302); |
|
| 136 | 136 | exit(); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -149,14 +149,14 @@ discard block |
||
| 149 | 149 | $this->P->iStatus = 404; |
| 150 | 150 | |
| 151 | 151 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T("misc_page_not_found"); |
| 152 | - header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found"); |
|
| 152 | + header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); |
|
| 153 | 153 | } elseif (!is_object($this->P) && $this->P == 500) { |
| 154 | 154 | $this->P = new CorePage($this->serviceManager); |
| 155 | 155 | $this->P->cb_pagetype = 'error'; |
| 156 | 156 | $this->P->iStatus = 500; |
| 157 | 157 | |
| 158 | 158 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T("misc_server_error"); |
| 159 | - header($_SERVER["SERVER_PROTOCOL"] . " 500 Internal Server Error"); |
|
| 159 | + header($_SERVER["SERVER_PROTOCOL"]." 500 Internal Server Error"); |
|
| 160 | 160 | } elseif (is_object($this->P) && $this->P->oPayload == NULL) {// elseif the page has been found but contains no payload... |
| 161 | 161 | if ( |
| 162 | 162 | !( |
@@ -166,10 +166,10 @@ discard block |
||
| 166 | 166 | ) |
| 167 | 167 | ) { // no payload is fine if page is one of these |
| 168 | 168 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T("misc_content_not_found"); |
| 169 | - header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found"); |
|
| 169 | + header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); |
|
| 170 | 170 | } |
| 171 | 171 | } 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 |
| 172 | - $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T("misc_page_not_available_lang") . '<br><br>' . $this->P->oPayload->cl_html; |
|
| 172 | + $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T("misc_page_not_available_lang").'<br><br>'.$this->P->oPayload->cl_html; |
|
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | return $this->P; |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | // to allow dots in the filename, we have to iterate through all parts of the filename |
| 192 | 192 | $aRoutingoverride["itemno"] = ''; |
| 193 | 193 | for ($i = 0; $i < count($aTMP["exploded_request_file"]) - 1; $i++) { |
| 194 | - $aRoutingoverride["itemno"] .= $aTMP["exploded_request_file"][$i] . '.'; |
|
| 194 | + $aRoutingoverride["itemno"] .= $aTMP["exploded_request_file"][$i].'.'; |
|
| 195 | 195 | } |
| 196 | 196 | // remove the trailing dot |
| 197 | 197 | $aRoutingoverride["itemno"] = \HaaseIT\Toolbox\Tools::cutStringend($aRoutingoverride["itemno"], 1); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | // rebuild the path string without the trailing '/item/itemno.html' |
| 202 | 202 | $this->sPath = ''; |
| 203 | 203 | for ($i = 0; $i < $aTMP["parts_in_path"] - 2; $i++) { |
| 204 | - $this->sPath .= $aPath[$i] . '/'; |
|
| 204 | + $this->sPath .= $aPath[$i].'/'; |
|
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @param $purifier |
| 161 | 161 | * @return string |
| 162 | 162 | */ |
| 163 | - private function admin_updateGroup( $purifier) |
|
| 163 | + private function admin_updateGroup($purifier) |
|
| 164 | 164 | { |
| 165 | 165 | $sql = 'SELECT * FROM itemgroups_base WHERE itmg_id != :id AND itmg_no = :gno'; |
| 166 | 166 | $hResult = $this->db->prepare($sql); |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | $sql = DBTools::buildPSUpdateQuery($aData, 'itemgroups_base', 'itmg_id'); |
| 186 | 186 | $hResult = $this->db->prepare($sql); |
| 187 | 187 | foreach ($aData as $sKey => $sValue) { |
| 188 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 188 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 189 | 189 | } |
| 190 | 190 | $hResult->execute(); |
| 191 | 191 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $sql = DBTools::buildPSUpdateQuery($aData, 'itemgroups_text', 'itmgt_id'); |
| 208 | 208 | $hResult = $this->db->prepare($sql); |
| 209 | 209 | foreach ($aData as $sKey => $sValue) { |
| 210 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 210 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 211 | 211 | } |
| 212 | 212 | $hResult->execute(); |
| 213 | 213 | } |