@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | $vlSlct = explode(',', $this->getFieldValue($val)); |
61 | 61 | $slctOptns = $this->getSetOrEnum2Array($tblSrc, $val['COLUMN_NAME']); |
62 | - return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'] . $adnlThings['suffix'], $inAdtnl); |
|
62 | + return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'].$adnlThings['suffix'], $inAdtnl); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | if ($iar !== []) { |
106 | 106 | $inAdtnl = array_merge($inAdtnl, $iar); |
107 | 107 | } |
108 | - return '<b>' . $this->getFieldValue($value) . '</b>' . $this->setStringIntoShortTag('input', $inAdtnl); |
|
108 | + return '<b>'.$this->getFieldValue($value).'</b>'.$this->setStringIntoShortTag('input', $inAdtnl); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | */ |
119 | 119 | private function getFieldOutputNumericNonFK($fkArray, $value, $iar = []) |
120 | 120 | { |
121 | - $query = $this->sQueryGenericSelectKeyValue([ |
|
122 | - '`' . $value['COLUMN_NAME'] . '`', |
|
121 | + $query = $this->sQueryGenericSelectKeyValue([ |
|
122 | + '`'.$value['COLUMN_NAME'].'`', |
|
123 | 123 | $fkArray[$value['COLUMN_NAME']][2], |
124 | 124 | $fkArray[$value['COLUMN_NAME']][0], |
125 | 125 | ]); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | $inM = $this->setStringIntoTag($mCN[$dtl['COLUMN_NAME']], 'span', ['style' => 'font-style:italic;']); |
284 | 284 | } |
285 | 285 | } |
286 | - $lbl = '<span class="fake_label">' . $this->getFieldNameForDisplay($dtl) . '</span>'; |
|
286 | + $lbl = '<span class="fake_label">'.$this->getFieldNameForDisplay($dtl).'</span>'; |
|
287 | 287 | return ['label' => $lbl, 'input' => $inM]; |
288 | 288 | } |
289 | 289 | |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | } elseif (in_array($dtls['DATA_TYPE'], ['date', 'datetime', 'time', 'timestamp', 'year'])) { |
300 | 300 | $sReturn = $this->setNeededFieldSingleType($tblName, $dtls, $iar); |
301 | 301 | } |
302 | - return $this->getFieldCompletionType($dtls) . $sReturn; |
|
302 | + return $this->getFieldCompletionType($dtls).$sReturn; |
|
303 | 303 | } |
304 | 304 | |
305 | 305 | private function setNeededFieldSingleType($tblName, $dtls, $iar) |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return $this->setArrayToJson($aReturn); |
58 | 58 | } |
59 | 59 | $aReturn = $this->getContentFromUrlThroughCurlRawArray($fullURL, $features); |
60 | - return '{ ' . $this->packIntoJson($aReturn, 'info') . ', ' . $this->packIntoJson($aReturn, 'response') . ' }'; |
|
60 | + return '{ '.$this->packIntoJson($aReturn, 'info').', '.$this->packIntoJson($aReturn, 'response').' }'; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | return '<div>No MySQL connection detected</div>'; |
118 | 118 | } |
119 | 119 | $afRows = $this->mySQLconnection->affected_rows; |
120 | - return '<div>' . sprintf($this->lclMsgCmnNumber('i18n_Record', 'i18n_Records', $afRows), $afRows) . '</div>'; |
|
120 | + return '<div>'.sprintf($this->lclMsgCmnNumber('i18n_Record', 'i18n_Records', $afRows), $afRows).'</div>'; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -189,9 +189,9 @@ discard block |
||
189 | 189 | private function packIntoJson($aReturn, $keyToWorkWith) |
190 | 190 | { |
191 | 191 | if ($this->isJsonByDanielGP($aReturn[$keyToWorkWith])) { |
192 | - return '"' . $keyToWorkWith . '": ' . $aReturn[$keyToWorkWith]; |
|
192 | + return '"'.$keyToWorkWith.'": '.$aReturn[$keyToWorkWith]; |
|
193 | 193 | } |
194 | - return '"' . $keyToWorkWith . '": {' . $aReturn[$keyToWorkWith] . ' }'; |
|
194 | + return '"'.$keyToWorkWith.'": {'.$aReturn[$keyToWorkWith].' }'; |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | { |
206 | 206 | $postingUrl = filter_var($urlToSendTo, FILTER_VALIDATE_URL); |
207 | 207 | if ($postingUrl === false) { |
208 | - throw new \Exception('Invalid URL in ' . __FUNCTION__); |
|
208 | + throw new \Exception('Invalid URL in '.__FUNCTION__); |
|
209 | 209 | } |
210 | 210 | if ($params !== []) { |
211 | 211 | $cntFailErrMsg = $this->lclMsgCmn('i18n_Error_FailedToConnect'); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | } |
226 | 226 | $flPointer = fsockopen($pUrlParts['host'], $postingPort, $erN, $erM, 30); |
227 | 227 | if ($flPointer === false) { |
228 | - throw new \Exception($cntFailErrMsg . ': ' . $erN . ' (' . $erM . ')'); |
|
228 | + throw new \Exception($cntFailErrMsg.': '.$erN.' ('.$erM.')'); |
|
229 | 229 | } |
230 | 230 | fwrite($flPointer, $this->sendBackgroundPrepareData($pUrlParts, $postingString)); |
231 | 231 | fclose($flPointer); |
@@ -235,12 +235,12 @@ discard block |
||
235 | 235 | { |
236 | 236 | $this->initializeSprGlbAndSession(); |
237 | 237 | $out = []; |
238 | - $out[] = 'POST ' . $pUrlParts['path'] . ' ' . $this->tCmnSuperGlobals->server->get['SERVER_PROTOCOL']; |
|
239 | - $out[] = 'Host: ' . $pUrlParts['host']; |
|
240 | - $out[] = 'User-Agent: ' . $this->getUserAgentByCommonLib(); |
|
238 | + $out[] = 'POST '.$pUrlParts['path'].' '.$this->tCmnSuperGlobals->server->get['SERVER_PROTOCOL']; |
|
239 | + $out[] = 'Host: '.$pUrlParts['host']; |
|
240 | + $out[] = 'User-Agent: '.$this->getUserAgentByCommonLib(); |
|
241 | 241 | $out[] = 'Content-Type: application/x-www-form-urlencoded'; |
242 | - $out[] = 'Content-Length: ' . strlen($postingString); |
|
243 | - $out[] = 'Connection: Close' . "\r\n"; |
|
242 | + $out[] = 'Content-Length: '.strlen($postingString); |
|
243 | + $out[] = 'Connection: Close'."\r\n"; |
|
244 | 244 | $out[] = $postingString; |
245 | 245 | return implode("\r\n", $out); |
246 | 246 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | if ($val[$cnm[0]] == $oCol) { |
59 | 59 | $vlQ = array_merge($val, ['LIMIT' => 2]); |
60 | 60 | $tFd = $this->setMySQLquery2Server($this->getForeignKeysQuery($vlQ), $cnm[1])['result']; |
61 | - $tgtFld = '`' . ($tFd[0][$cnm[0]] == $val[$cnm[0]] ? $tFd[1][$cnm[0]] : $tFd[0][$cnm[0]]) . '`'; |
|
61 | + $tgtFld = '`'.($tFd[0][$cnm[0]] == $val[$cnm[0]] ? $tFd[1][$cnm[0]] : $tFd[0][$cnm[0]]).'`'; |
|
62 | 62 | $aRt[$oCol] = [$this->glueDbTb($val[$cnm[2]], $val[$cnm[3]]), $val[$cnm[2]], $tgtFld]; |
63 | 63 | } |
64 | 64 | } |