@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | private function correctTableWithQuotesAsFieldPrefix($referenceTable) |
50 | 50 | { |
51 | 51 | if ($referenceTable != '') { |
52 | - return '`' . str_replace('`', '', $referenceTable) . '`.'; |
|
52 | + return '`'.str_replace('`', '', $referenceTable).'`.'; |
|
53 | 53 | } |
54 | 54 | return ''; |
55 | 55 | } |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | */ |
65 | 65 | protected function getFieldOutputTextFK($foreignKeysArray, $value, $iar) |
66 | 66 | { |
67 | - $query = $this->sQueryGenericSelectKeyValue([ |
|
68 | - '`' . $value['COLUMN_NAME'] . '`', |
|
67 | + $query = $this->sQueryGenericSelectKeyValue([ |
|
68 | + '`'.$value['COLUMN_NAME'].'`', |
|
69 | 69 | $foreignKeysArray[$value['COLUMN_NAME']][2], |
70 | 70 | $foreignKeysArray[$value['COLUMN_NAME']][0] |
71 | 71 | ]); |
@@ -277,8 +277,8 @@ discard block |
||
277 | 277 | { |
278 | 278 | $filters2 = implode(', ', array_diff($value, [''])); |
279 | 279 | if ($filters2 != '') { |
280 | - return '(' . $referenceTable . '`' . $key . '` IN ("' |
|
281 | - . str_replace(',', '","', str_replace(["'", '"'], '', $filters2)) . '"))'; |
|
280 | + return '('.$referenceTable.'`'.$key.'` IN ("' |
|
281 | + . str_replace(',', '","', str_replace(["'", '"'], '', $filters2)).'"))'; |
|
282 | 282 | } |
283 | 283 | return ''; |
284 | 284 | } |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | if ((substr($value, 0, 1) == '%') && (substr($value, -1) == '%')) { |
297 | 297 | $fTemp = 'LIKE'; |
298 | 298 | } |
299 | - return '(`' . $key . '` ' . $fTemp . '"' . $value . '")'; |
|
299 | + return '(`'.$key.'` '.$fTemp.'"'.$value.'")'; |
|
300 | 300 | } |
301 | 301 | |
302 | 302 | /** |
@@ -73,14 +73,14 @@ discard block |
||
73 | 73 | 'File Group' => $info->getGroup(), |
74 | 74 | 'File Inode' => $info->getInode(), |
75 | 75 | 'File Link Target' => ($info->isLink() ? $info->getLinkTarget() : '-'), |
76 | - 'File Name' => $info->getBasename('.' . $info->getExtension()), |
|
76 | + 'File Name' => $info->getBasename('.'.$info->getExtension()), |
|
77 | 77 | 'File Name w. Extension' => $info->getFilename(), |
78 | 78 | 'File Owner' => $info->getOwner(), |
79 | 79 | 'File Path' => $info->getPath(), |
80 | 80 | 'Name' => $info->getRealPath(), |
81 | 81 | 'Type' => $info->getType(), |
82 | 82 | ]; |
83 | - $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
83 | + $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
84 | 84 | ksort($aDetails); |
85 | 85 | return $aDetails; |
86 | 86 | } |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | $sFiles = []; |
128 | 128 | foreach ($iterator as $file) { |
129 | 129 | $relativePathFile = str_replace($sourcePath, '', $file->getRealPath()); |
130 | - if (!file_exists($targetPath . $relativePathFile)) { |
|
131 | - $sFiles[$relativePathFile] = $targetPath . $relativePathFile; |
|
130 | + if (!file_exists($targetPath.$relativePathFile)) { |
|
131 | + $sFiles[$relativePathFile] = $targetPath.$relativePathFile; |
|
132 | 132 | } |
133 | 133 | } |
134 | 134 | return $this->setArrayToJson($sFiles); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | private function sGlueFilterValIntoWhereStr($filterValue) |
67 | 67 | { |
68 | 68 | if (is_array($filterValue)) { |
69 | - return 'IN ("' . implode('", "', $filterValue) . '")'; |
|
69 | + return 'IN ("'.implode('", "', $filterValue).'")'; |
|
70 | 70 | } |
71 | 71 | return $this->sGlueFilterValueIntoWhereStringFinal($filterValue); |
72 | 72 | } |
@@ -79,13 +79,13 @@ discard block |
||
79 | 79 | 'NOT NULL|NULL', |
80 | 80 | ]; |
81 | 81 | if (in_array($filterValue, explode('|', $kFields[0]))) { |
82 | - return '= ' . $filterValue; |
|
82 | + return '= '.$filterValue; |
|
83 | 83 | } elseif (in_array($filterValue, explode('|', $kFields[1]))) { |
84 | 84 | return $filterValue; |
85 | 85 | } elseif (in_array($filterValue, explode('|', $kFields[2]))) { |
86 | - return 'IS ' . $filterValue; |
|
86 | + return 'IS '.$filterValue; |
|
87 | 87 | } |
88 | - return '= "' . $filterValue . '"'; |
|
88 | + return '= "'.$filterValue.'"'; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | private function sGlueFiltersIntoWhereArrayFilter($filters) |
98 | 98 | { |
99 | - return '(' . implode(') AND (', $filters) . ')'; |
|
99 | + return '('.implode(') AND (', $filters).')'; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | if (is_array($filterArray)) { |
116 | 116 | unset($filterArray['LIMIT']); |
117 | 117 | foreach ($filterArray as $key => $value) { |
118 | - $fltr[] = '`' . $tableToApplyFilterTo . '`.`' . $key . '` ' . $this->sGlueFilterValIntoWhereStr($value); |
|
118 | + $fltr[] = '`'.$tableToApplyFilterTo.'`.`'.$key.'` '.$this->sGlueFilterValIntoWhereStr($value); |
|
119 | 119 | } |
120 | 120 | } |
121 | 121 | return $this->sManageDynamicFiltersFinal($fltr); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | { |
126 | 126 | if (count($filters) > 0) { |
127 | 127 | $sReturn = ['WHERE', $this->sGlueFiltersIntoWhereArrayFilter($filters)]; |
128 | - return implode(' ', $sReturn) . ' '; |
|
128 | + return implode(' ', $sReturn).' '; |
|
129 | 129 | } |
130 | 130 | return ''; |
131 | 131 | } |
@@ -146,13 +146,13 @@ discard block |
||
146 | 146 | $filterArray = (is_array($filterArray) ? $filterArray : ['' => '']); |
147 | 147 | return 'SELECT ' |
148 | 148 | . '`C`.`TABLE_SCHEMA`, ' |
149 | - . $this->sQueryMySqlColumnsColumns() . ' ' |
|
149 | + . $this->sQueryMySqlColumnsColumns().' ' |
|
150 | 150 | . 'FROM `information_schema`.`COLUMNS` `C` ' |
151 | - . 'LEFT JOIN `information_schema`.`KEY_COLUMN_USAGE` `KCU` ON ((' . implode(') AND (', [ |
|
151 | + . 'LEFT JOIN `information_schema`.`KEY_COLUMN_USAGE` `KCU` ON (('.implode(') AND (', [ |
|
152 | 152 | '`C`.`TABLE_SCHEMA` = `KCU`.`TABLE_SCHEMA`', |
153 | 153 | '`C`.`TABLE_NAME` = `KCU`.`TABLE_NAME`', |
154 | 154 | '`C`.`COLUMN_NAME` = `KCU`.`COLUMN_NAME`', |
155 | - ]) . ')) ' |
|
155 | + ]).')) ' |
|
156 | 156 | . $this->sManageDynamicFilters($filterArray, 'C') |
157 | 157 | . 'GROUP BY `C`.`TABLE_SCHEMA`, `C`.`TABLE_NAME`, `C`.`COLUMN_NAME` ' |
158 | 158 | . 'ORDER BY `C`.`TABLE_SCHEMA`, `C`.`TABLE_NAME`, `C`.`ORDINAL_POSITION` ' |
@@ -179,20 +179,20 @@ discard block |
||
179 | 179 | { |
180 | 180 | return 'SELECT ' |
181 | 181 | . '`KCU`.`CONSTRAINT_SCHEMA`, ' |
182 | - . $this->sQueryMySqlIndexesColumns() . ' ' |
|
182 | + . $this->sQueryMySqlIndexesColumns().' ' |
|
183 | 183 | . 'FROM `information_schema`.`KEY_COLUMN_USAGE` `KCU` ' |
184 | - . 'INNER JOIN `information_schema`.`COLUMNS` `C` ON ((' . implode(') AND (', [ |
|
184 | + . 'INNER JOIN `information_schema`.`COLUMNS` `C` ON (('.implode(') AND (', [ |
|
185 | 185 | '`C`.`TABLE_SCHEMA` = `KCU`.`TABLE_SCHEMA`', |
186 | 186 | '`C`.`TABLE_NAME` = `KCU`.`TABLE_NAME`', |
187 | 187 | '`C`.`COLUMN_NAME` = `KCU`.`COLUMN_NAME`', |
188 | - ]) . ')) ' |
|
189 | - . 'LEFT JOIN `information_schema`.`REFERENTIAL_CONSTRAINTS` `RC` ON ((' . implode(') AND (', [ |
|
188 | + ]).')) ' |
|
189 | + . 'LEFT JOIN `information_schema`.`REFERENTIAL_CONSTRAINTS` `RC` ON (('.implode(') AND (', [ |
|
190 | 190 | '`KCU`.`CONSTRAINT_SCHEMA` = `RC`.`CONSTRAINT_SCHEMA`', |
191 | 191 | '`KCU`.`CONSTRAINT_NAME` = `RC`.`CONSTRAINT_NAME`', |
192 | - ]) . ')) ' |
|
192 | + ]).')) ' |
|
193 | 193 | . $this->sManageDynamicFilters($filterArray, 'KCU') |
194 | 194 | . 'ORDER BY `KCU`.`TABLE_SCHEMA`, `KCU`.`TABLE_NAME`' |
195 | - . $this->xtraSoring($filterArray, 'COLUMN_NAME') . ';'; |
|
195 | + . $this->xtraSoring($filterArray, 'COLUMN_NAME').';'; |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | private function sQueryMySqlIndexesColumns() |
@@ -208,23 +208,23 @@ discard block |
||
208 | 208 | { |
209 | 209 | $tblAls = substr($tblName, 0, 1); |
210 | 210 | $colName = (is_null($adtnlCol) ? $tblName : $adtnlFltr); |
211 | - return '(SELECT COUNT(*) AS `No. of records` FROM `information_schema`.`' . $tblName . '` `' . $tblAls . '` ' |
|
212 | - . 'WHERE (`' . $tblAls . '`.`' . $lnkDbCol . '` = `S`.`SCHEMA_NAME`)' |
|
213 | - . (!is_null($adtnlCol) ? ' AND (`' . $tblAls . '`.`' . $adtnlCol . '` = "' . $adtnlFltr . '")' : '') |
|
214 | - . ') AS `' . ucwords(strtolower($colName)) . '`'; |
|
211 | + return '(SELECT COUNT(*) AS `No. of records` FROM `information_schema`.`'.$tblName.'` `'.$tblAls.'` ' |
|
212 | + . 'WHERE (`'.$tblAls.'`.`'.$lnkDbCol.'` = `S`.`SCHEMA_NAME`)' |
|
213 | + . (!is_null($adtnlCol) ? ' AND (`'.$tblAls.'`.`'.$adtnlCol.'` = "'.$adtnlFltr.'")' : '') |
|
214 | + . ') AS `'.ucwords(strtolower($colName)).'`'; |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | protected function sQueryMySqlStatistics($filterArray = null) |
218 | 218 | { |
219 | 219 | return 'SELECT ' |
220 | 220 | . '`S`.`SCHEMA_NAME`, ' |
221 | - . $this->sQueryMySqlStatisticPattern('TABLES', 'TABLE_SCHEMA', 'TABLE_TYPE', 'BASE TABLE') . ', ' |
|
222 | - . $this->sQueryMySqlStatisticPattern('TABLES', 'TABLE_SCHEMA', 'TABLE_TYPE', 'VIEW') . ', ' |
|
223 | - . $this->sQueryMySqlStatisticPattern('COLUMNS', 'TABLE_SCHEMA') . ', ' |
|
224 | - . $this->sQueryMySqlStatisticPattern('TRIGGERS', 'EVENT_OBJECT_SCHEMA') . ', ' |
|
225 | - . $this->sQueryMySqlStatisticPattern('ROUTINES', 'ROUTINE_SCHEMA', 'ROUTINE_TYPE', 'Function') . ', ' |
|
226 | - . $this->sQueryMySqlStatisticPattern('ROUTINES', 'ROUTINE_SCHEMA', 'ROUTINE_TYPE', 'Procedure') . ', ' |
|
227 | - . $this->sQueryMySqlStatisticPattern('EVENTS', 'EVENT_SCHEMA') . ' ' |
|
221 | + . $this->sQueryMySqlStatisticPattern('TABLES', 'TABLE_SCHEMA', 'TABLE_TYPE', 'BASE TABLE').', ' |
|
222 | + . $this->sQueryMySqlStatisticPattern('TABLES', 'TABLE_SCHEMA', 'TABLE_TYPE', 'VIEW').', ' |
|
223 | + . $this->sQueryMySqlStatisticPattern('COLUMNS', 'TABLE_SCHEMA').', ' |
|
224 | + . $this->sQueryMySqlStatisticPattern('TRIGGERS', 'EVENT_OBJECT_SCHEMA').', ' |
|
225 | + . $this->sQueryMySqlStatisticPattern('ROUTINES', 'ROUTINE_SCHEMA', 'ROUTINE_TYPE', 'Function').', ' |
|
226 | + . $this->sQueryMySqlStatisticPattern('ROUTINES', 'ROUTINE_SCHEMA', 'ROUTINE_TYPE', 'Procedure').', ' |
|
227 | + . $this->sQueryMySqlStatisticPattern('EVENTS', 'EVENT_SCHEMA').' ' |
|
228 | 228 | . 'FROM `information_schema`.`SCHEMATA` `S` ' |
229 | 229 | . 'WHERE (`S`.`SCHEMA_NAME` NOT IN ("information_schema", "mysql", "performance_schema", "sys")) ' |
230 | 230 | . str_replace('WHERE', 'AND', $this->sManageDynamicFilters($filterArray, 'S')) |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | . ', `T`.`CREATE_OPTIONS`, `T`.`TABLE_COMMENT` ' |
246 | 246 | . 'FROM `information_schema`.`TABLES` `T` ' |
247 | 247 | . $this->sManageDynamicFilters($filterArray, 'T') |
248 | - . $this->xtraSoring($filterArray, 'TABLE_SCHEMA') . ';'; |
|
248 | + . $this->xtraSoring($filterArray, 'TABLE_SCHEMA').';'; |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | private function xtraSoring($filterArray, $filterValueToDecide) |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | protected function getFieldOutputEnumSetReadOnly($val, $adnlThings) |
49 | 49 | { |
50 | 50 | $inputFeatures = [ |
51 | - 'name' => $val['COLUMN_NAME'] . $adnlThings['suffix'], |
|
51 | + 'name' => $val['COLUMN_NAME'].$adnlThings['suffix'], |
|
52 | 52 | 'id' => $val['COLUMN_NAME'], |
53 | 53 | 'readonly' => 'readonly', |
54 | 54 | 'class' => 'input_readonly', |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | */ |
129 | 129 | protected function setFieldLabel($details, $features, $fieldLabel) |
130 | 130 | { |
131 | - $aLabel = ['for' => $details['COLUMN_NAME'], 'id' => $details['COLUMN_NAME'] . '_label']; |
|
131 | + $aLabel = ['for' => $details['COLUMN_NAME'], 'id' => $details['COLUMN_NAME'].'_label']; |
|
132 | 132 | if (isset($features['disabled'])) { |
133 | 133 | if (in_array($details['COLUMN_NAME'], $features['disabled'])) { |
134 | 134 | $aLabel = array_merge($aLabel, ['style' => 'color: grey;']); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | private function setFldLmtsExact($dTp, $cTp) |
188 | 188 | { |
189 | - $xct = [ |
|
189 | + $xct = [ |
|
190 | 190 | 'bigint' => ['l' => -9223372036854775808, 'L' => 999999999999, 's' => 21, 'sUS' => 20], |
191 | 191 | 'int' => ['l' => -2147483648, 'L' => 2147483647, 's' => 11, 'sUS' => 10], |
192 | 192 | 'mediumint' => ['l' => -8388608, 'L' => 8388607, 's' => 9, 'sUS' => 8], |
@@ -214,16 +214,16 @@ discard block |
||
214 | 214 | { |
215 | 215 | $btn = []; |
216 | 216 | $btn[] = '<input type="submit" id="submit" style="margin-left:220px;" value="' |
217 | - . $this->lclMsgCmn('i18n_Form_ButtonSave') . '" />'; |
|
217 | + . $this->lclMsgCmn('i18n_Form_ButtonSave').'" />'; |
|
218 | 218 | if (isset($feat['insertAndUpdate'])) { |
219 | 219 | $btn[] = '<input type="hidden" id="insertAndUpdate" name="insertAndUpdate" value="insertAndUpdate" />'; |
220 | 220 | } |
221 | 221 | if ($hiddenInfo != []) { |
222 | 222 | foreach ($hiddenInfo as $key => $value) { |
223 | - $btn[] = '<input type="hidden" id="' . $key . '" name="' . $key . '" value="' . $value . '" />'; |
|
223 | + $btn[] = '<input type="hidden" id="'.$key.'" name="'.$key.'" value="'.$value.'" />'; |
|
224 | 224 | } |
225 | 225 | } |
226 | - return '<div>' . implode('', $btn) . '</div>'; |
|
226 | + return '<div>'.implode('', $btn).'</div>'; |
|
227 | 227 | } |
228 | 228 | |
229 | 229 | protected function setMySQLqueryValidateInputs($prm) |
@@ -232,17 +232,17 @@ discard block |
||
232 | 232 | if (array_key_exists($prm['returnType'], $rMap)) { |
233 | 233 | $elC = [$prm['NoOfRows'], $rMap[$prm['returnType']]['r'][0], $rMap[$prm['returnType']]['r'][1]]; |
234 | 234 | if (filter_var($elC[0], FILTER_VALIDATE_INT, ['min_range' => $elC[1], 'max_range' => $elC[2]]) === false) { |
235 | - $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $rMap[$prm['returnType']][2]); |
|
235 | + $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$rMap[$prm['returnType']][2]); |
|
236 | 236 | return [false, sprintf($msg, $prm['NoOfColumns'])]; |
237 | 237 | } |
238 | 238 | $elR = [$prm['NoOfColumns'], $rMap[$prm['returnType']]['c'][0], $rMap[$prm['returnType']]['c'][1]]; |
239 | 239 | if (filter_var($elR[0], FILTER_VALIDATE_INT, ['min_range' => $elR[1], 'max_range' => $elR[2]])) { |
240 | 240 | return [true, '']; |
241 | 241 | } |
242 | - $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $rMap[$prm['returnType']][1]); |
|
242 | + $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$rMap[$prm['returnType']][1]); |
|
243 | 243 | return [false, sprintf($msg, $prm['NoOfColumns'])]; |
244 | 244 | } |
245 | - return [false, $prm['returnType'] . ' is not defined!']; |
|
245 | + return [false, $prm['returnType'].' is not defined!']; |
|
246 | 246 | } |
247 | 247 | |
248 | 248 | private function setMySQLqueryValidationMap() |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | protected function getTimestampRaw($returnType) { |
66 | - return call_user_func([$this, 'getTimestamp' . ucfirst($returnType)], gettimeofday()); |
|
66 | + return call_user_func([$this, 'getTimestamp'.ucfirst($returnType)], gettimeofday()); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | private function getTimestampString($crtTime) { |
@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | */ |
102 | 102 | private function handleLocalizationCommon() { |
103 | 103 | $this->handleLanguageIntoSession(); |
104 | - $localizationFile = $this->getCommonLocaleFolder() . '/locale/' |
|
105 | - . $this->tCmnSession->get('lang') . '/LC_MESSAGES/' |
|
106 | - . $this->commonLibFlags['localization_domain'] . '.mo'; |
|
104 | + $localizationFile = $this->getCommonLocaleFolder().'/locale/' |
|
105 | + . $this->tCmnSession->get('lang').'/LC_MESSAGES/' |
|
106 | + . $this->commonLibFlags['localization_domain'].'.mo'; |
|
107 | 107 | $translations = new \Gettext\Translations; |
108 | 108 | $translations->addFromMoFile($localizationFile); |
109 | 109 | $this->tCmnLb = new \Gettext\Translator(); |
@@ -88,11 +88,11 @@ discard block |
||
88 | 88 | 'size' => 10, |
89 | 89 | 'maxlength' => 10, |
90 | 90 | 'onfocus' => implode('', [ |
91 | - 'javascript:NewCssCal(\'' . $value['COLUMN_NAME'], |
|
91 | + 'javascript:NewCssCal(\''.$value['COLUMN_NAME'], |
|
92 | 92 | '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', |
93 | 93 | ]), |
94 | 94 | ]; |
95 | - return $this->setStringIntoShortTag('input', $inA) . $this->setCalendarControl($value['COLUMN_NAME']); |
|
95 | + return $this->setStringIntoShortTag('input', $inA).$this->setCalendarControl($value['COLUMN_NAME']); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | return [$line[0], $line[1]]; |
182 | 182 | // intentionally left open |
183 | 183 | case 'array_key2_value': |
184 | - return [$line[0] . '@' . $line[1], $line[1]]; |
|
184 | + return [$line[0].'@'.$line[1], $line[1]]; |
|
185 | 185 | // intentionally left open |
186 | 186 | case 'array_numbered': |
187 | 187 | return [$counter, $line[0]]; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'class' => 'input_readonly', |
77 | 77 | 'value' => $sDefaultValue, |
78 | 78 | ]; |
79 | - return $this->setStringIntoShortTag('input', $inputFeatures) . $aElements[$sDefaultValue]; |
|
79 | + return $this->setStringIntoShortTag('input', $inputFeatures).$aElements[$sDefaultValue]; |
|
80 | 80 | } |
81 | 81 | return $this->setArrayToSelectNotReadOnly($aElements, $sDefaultValue, $selectName, $featArray); |
82 | 82 | } |
@@ -122,13 +122,13 @@ discard block |
||
122 | 122 | $ditTitle .= ' (0)'; |
123 | 123 | } |
124 | 124 | $divTab = [ |
125 | - 'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="' . $ditTitle . '">', |
|
125 | + 'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="'.$ditTitle.'">', |
|
126 | 126 | 'end' => '</div><!-- from tab_NoData -->', |
127 | 127 | ]; |
128 | 128 | if (!isset($ftrs['noGlobalTab'])) { |
129 | 129 | $divTab = [ |
130 | - 'start' => '<div class="tabber" id="tab">' . $divTab['start'], |
|
131 | - 'end' => $divTab['end'] . '</div><!-- from global Tab -->', |
|
130 | + 'start' => '<div class="tabber" id="tab">'.$divTab['start'], |
|
131 | + 'end' => $divTab['end'].'</div><!-- from global Tab -->', |
|
132 | 132 | ]; |
133 | 133 | } |
134 | 134 | } |
@@ -151,14 +151,14 @@ discard block |
||
151 | 151 | } |
152 | 152 | $checkboxFormId = ''; |
153 | 153 | if ((isset($ftrs['actions']['checkbox_inlineEdit'])) || (isset($ftrs['actions']['checkbox']))) { |
154 | - $checkboxFormId = 'frm' . date('YmdHis'); |
|
155 | - $sReturn .= '<form id="' . $checkboxFormId . '" name="' . $checkboxFormId |
|
156 | - . '" method="post" ' . ' action="' . $this->tCmnRequest->server->get('PHP_SELF') . '" >'; |
|
154 | + $checkboxFormId = 'frm'.date('YmdHis'); |
|
155 | + $sReturn .= '<form id="'.$checkboxFormId.'" name="'.$checkboxFormId |
|
156 | + . '" method="post" '.' action="'.$this->tCmnRequest->server->get('PHP_SELF').'" >'; |
|
157 | 157 | } |
158 | 158 | $tbl = []; |
159 | 159 | $tbl['Def'] = '<table' |
160 | - . (isset($ftrs['table_style']) ? ' style="' . $ftrs['table_style'] . '"' : '') |
|
161 | - . (isset($ftrs['table_class']) ? ' class="' . $ftrs['table_class'] . '"' : '') |
|
160 | + . (isset($ftrs['table_style']) ? ' style="'.$ftrs['table_style'].'"' : '') |
|
161 | + . (isset($ftrs['table_class']) ? ' class="'.$ftrs['table_class'].'"' : '') |
|
162 | 162 | . '>'; |
163 | 163 | if (!isset($ftrs['grouping_cell_type'])) { |
164 | 164 | $ftrs['grouping_cell_type'] = 'row'; |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | $sReturn .= $tbl['Head']; |
200 | 200 | } |
201 | 201 | if (isset($iStartingPageRecord)) { |
202 | - $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge); |
|
202 | + $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge); |
|
203 | 203 | $sReturn .= $this->setStringIntoTag($this->setStringIntoTag($pgn, 'th', [ |
204 | 204 | 'colspan' => $iTableColumns |
205 | 205 | ]), 'tr'); |
@@ -241,22 +241,22 @@ discard block |
||
241 | 241 | } |
242 | 242 | $remebered_value = $color_column_value; |
243 | 243 | } |
244 | - $color = ' style="background-color: ' . $ftrs['row_colored_alternated'][$color_no] . ';"'; |
|
244 | + $color = ' style="background-color: '.$ftrs['row_colored_alternated'][$color_no].';"'; |
|
245 | 245 | } else { |
246 | 246 | if (isset($ftrs['RowStyle'])) { |
247 | - $color = ' style="' . $aElements[$rCntr][$ftrs['RowStyle']] . '"'; |
|
247 | + $color = ' style="'.$aElements[$rCntr][$ftrs['RowStyle']].'"'; |
|
248 | 248 | } else { |
249 | 249 | $color = ''; |
250 | 250 | } |
251 | 251 | } |
252 | - $tbl['tr_Color'] = '<tr' . $color . '>'; |
|
252 | + $tbl['tr_Color'] = '<tr'.$color.'>'; |
|
253 | 253 | // Grouping column |
254 | 254 | if (isset($ftrs['grouping_cell'])) { |
255 | 255 | foreach ($aElements[$rCntr] as $key => $value) { |
256 | 256 | if (($ftrs['grouping_cell'] == $key) && ($remindGroupValue != $value)) { |
257 | 257 | switch ($ftrs['grouping_cell_type']) { |
258 | 258 | case 'row': |
259 | - $sReturn .= $tbl['tr_Color'] . '<td ' . 'colspan="' . $iTableColumns . '">' |
|
259 | + $sReturn .= $tbl['tr_Color'].'<td '.'colspan="'.$iTableColumns.'">' |
|
260 | 260 | . $this->setStringIntoTag($value, 'div', ['class' => 'rowGroup rounded']) |
261 | 261 | . '</td></tr>'; |
262 | 262 | break; |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | } else { |
269 | 269 | $sReturn .= '</tbody></table>'; |
270 | 270 | if (isset($ftrs['showGroupingCounter'])) { |
271 | - $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
|
271 | + $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
|
272 | 272 | $groupCounter = 0; |
273 | 273 | } |
274 | 274 | $sReturn .= '</div>'; |
@@ -277,9 +277,9 @@ discard block |
||
277 | 277 | if (isset($ftrs['grouping_default_tab'])) { |
278 | 278 | $sReturn .= ($ftrs['grouping_default_tab'] == $value ? ' tabbertabdefault' : ''); |
279 | 279 | } |
280 | - $sReturn .= '" id="tab_' . $this->cleanStringForId($value) . '" ' |
|
281 | - . 'title="' . $value . '">' |
|
282 | - . $tbl['Def'] . $tbl['Head'] . $tbl['Header']; |
|
280 | + $sReturn .= '" id="tab_'.$this->cleanStringForId($value).'" ' |
|
281 | + . 'title="'.$value.'">' |
|
282 | + . $tbl['Def'].$tbl['Head'].$tbl['Header']; |
|
283 | 283 | break; |
284 | 284 | } |
285 | 285 | $remindGroupValue = $value; |
@@ -293,12 +293,12 @@ discard block |
||
293 | 293 | } |
294 | 294 | } |
295 | 295 | } |
296 | - $sReturn .= $tbl['tr_Color']; |
|
296 | + $sReturn .= $tbl['tr_Color']; |
|
297 | 297 | // Action column |
298 | 298 | $checkboxName = ''; |
299 | 299 | $checkboxNameS = ''; |
300 | 300 | if (isset($ftrs['actions'])) { |
301 | - $sReturn .= '<td style="white-space:nowrap;">'; |
|
301 | + $sReturn .= '<td style="white-space:nowrap;">'; |
|
302 | 302 | $action_argument = 0; |
303 | 303 | if (isset($ftrs['actions']['key'])) { |
304 | 304 | $actionKey = $ftrs['actions']['key']; |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | $actionKey = 'view'; |
307 | 307 | } |
308 | 308 | if (isset($ftrs['action_prefix'])) { |
309 | - $actPrfx = $ftrs['action_prefix'] . '&'; |
|
309 | + $actPrfx = $ftrs['action_prefix'].'&'; |
|
310 | 310 | $actionKey = 'view2'; |
311 | 311 | } else { |
312 | 312 | $actPrfx = ''; |
@@ -317,11 +317,11 @@ discard block |
||
317 | 317 | } |
318 | 318 | switch ($key) { |
319 | 319 | case 'checkbox': |
320 | - $checkboxName = $value . '[]'; |
|
320 | + $checkboxName = $value.'[]'; |
|
321 | 321 | $checkboxNameS = $value; |
322 | - $sReturn .= ' <input type="checkbox" name="' . $checkboxName |
|
323 | - . '" id="n' . $aElements[$rCntr][$value] |
|
324 | - . '" value="' . $aElements[$rCntr][$value] . '" '; |
|
322 | + $sReturn .= ' <input type="checkbox" name="'.$checkboxName |
|
323 | + . '" id="n'.$aElements[$rCntr][$value] |
|
324 | + . '" value="'.$aElements[$rCntr][$value].'" '; |
|
325 | 325 | if (isset($_REQUEST[$checkboxNameS])) { |
326 | 326 | if (is_array($_REQUEST[$checkboxNameS])) { |
327 | 327 | if (in_array($aElements[$rCntr][$value], $_REQUEST[$checkboxNameS])) { |
@@ -336,29 +336,29 @@ discard block |
||
336 | 336 | if (strpos($_REQUEST['view'], 'multiEdit') !== false) { |
337 | 337 | $sReturn .= 'disabled="disabled" '; |
338 | 338 | } |
339 | - $sReturn .= '/>'; |
|
339 | + $sReturn .= '/>'; |
|
340 | 340 | break; |
341 | 341 | case 'checkbox_inlineEdit': |
342 | - $checkboxName = $value . '[]'; |
|
342 | + $checkboxName = $value.'[]'; |
|
343 | 343 | $checkboxNameS = $value; |
344 | - $sReturn .= ' <input type="checkbox" name="' . $checkboxName |
|
345 | - . '" id="n' . $aElements[$rCntr][$value] . '" value="' |
|
346 | - . $aElements[$rCntr][$value] . '"/>'; |
|
344 | + $sReturn .= ' <input type="checkbox" name="'.$checkboxName |
|
345 | + . '" id="n'.$aElements[$rCntr][$value].'" value="' |
|
346 | + . $aElements[$rCntr][$value].'"/>'; |
|
347 | 347 | break; |
348 | 348 | case 'delete': |
349 | - $sReturn .= '<a href="#" onclick="javascript:setQuest(\'' . $value[0] . '\',\''; |
|
350 | - $iActArgs = count($value[1]); |
|
349 | + $sReturn .= '<a href="#" onclick="javascript:setQuest(\''.$value[0].'\',\''; |
|
350 | + $iActArgs = count($value[1]); |
|
351 | 351 | for ($cntr2 = 0; $cntr2 < $iActArgs; $cntr2++) { |
352 | - $sReturn .= $value[1][$cntr2] . '=' . $aElements[$rCntr][$value[1][$cntr2]]; |
|
352 | + $sReturn .= $value[1][$cntr2].'='.$aElements[$rCntr][$value[1][$cntr2]]; |
|
353 | 353 | } |
354 | - $sReturn .= '\');" id="' . $key . $rCntr . '"><i class="fa fa-times"> </i></a>'; |
|
354 | + $sReturn .= '\');" id="'.$key.$rCntr.'"><i class="fa fa-times"> </i></a>'; |
|
355 | 355 | break; |
356 | 356 | case 'edit': |
357 | 357 | case 'list2': |
358 | 358 | case 'schedule': |
359 | - $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half')); |
|
359 | + $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half')); |
|
360 | 360 | $sReturn .= $this->setDynamicActionToSpecialCell($value, $aElements, [ |
361 | - 'vIcon' => 'fa fa-' . $vIc, |
|
361 | + 'vIcon' => 'fa fa-'.$vIc, |
|
362 | 362 | 'aPrefix' => $actPrfx, |
363 | 363 | 'aKey' => $actionKey, |
364 | 364 | 'rCounter' => $rCntr, |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | switch ($value[1]) { |
387 | 387 | case '/': |
388 | 388 | // next variable is only to avoid a long line |
389 | - $shorter = [ |
|
389 | + $shorter = [ |
|
390 | 390 | $aElements[$rCntr][$value[3]], |
391 | 391 | $aElements[$rCntr][$value[4]], |
392 | 392 | ]; |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | break; |
395 | 395 | case '+': |
396 | 396 | // next variable is only to avoid a long line |
397 | - $iTemp = $this->setArrayValuesAsKey([ |
|
397 | + $iTemp = $this->setArrayValuesAsKey([ |
|
398 | 398 | $value[0], |
399 | 399 | $value[1], |
400 | 400 | $value[2] |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | } |
412 | 412 | if ($value[0] == '%') { |
413 | 413 | $rowComputed[$key] = ($aElements[$rCntr][$key] * 100); |
414 | - $dec -= 2; |
|
414 | + $dec -= 2; |
|
415 | 415 | } else { |
416 | 416 | $rowComputed[$key] = $aElements[$rCntr][$key]; |
417 | 417 | } |
@@ -423,59 +423,59 @@ discard block |
||
423 | 423 | $sReturn .= '</tr>'; |
424 | 424 | } |
425 | 425 | if (isset($iStartingPageRecord)) { |
426 | - $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]); |
|
427 | - $sReturn .= '<tr>' . $this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]) . '</tr>'; |
|
426 | + $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]); |
|
427 | + $sReturn .= '<tr>'.$this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]).'</tr>'; |
|
428 | 428 | } |
429 | 429 | $sReturn .= '</tbody></table>'; |
430 | 430 | if ($ftrs['grouping_cell_type'] == 'tab') { |
431 | 431 | if (isset($ftrs['showGroupingCounter'])) { |
432 | 432 | $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
433 | 433 | } |
434 | - $sReturn .= '</div><!-- from ' . $remindGroupValue . ' -->'; |
|
434 | + $sReturn .= '</div><!-- from '.$remindGroupValue.' -->'; |
|
435 | 435 | if (!isset($ftrs['noGlobalTab'])) { |
436 | 436 | $sReturn .= '</div><!-- from global tab -->'; |
437 | 437 | } |
438 | 438 | } |
439 | 439 | if (isset($ftrs['actions']['checkbox'])) { |
440 | 440 | if (strpos($_REQUEST['view'], 'multiEdit') === false) { |
441 | - $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
442 | - . '\',\'' . $checkboxName . '\',true);">Check All</a> ' |
|
443 | - . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
444 | - . '\',\'' . $checkboxName . '\',false);">Uncheck All</a> ' |
|
445 | - . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />'; |
|
441 | + $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
442 | + . '\',\''.$checkboxName.'\',true);">Check All</a> ' |
|
443 | + . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
444 | + . '\',\''.$checkboxName.'\',false);">Uncheck All</a> ' |
|
445 | + . '<input type="hidden" name="action" value="multiEdit_'.$checkboxNameS.'" />'; |
|
446 | 446 | if (isset($ftrs['hiddenInput'])) { |
447 | 447 | if (is_array($ftrs['hiddenInput'])) { |
448 | 448 | foreach ($ftrs['hiddenInput'] as $valueF) { |
449 | - $sReturn .= '<input type="hidden" name="' . $valueF |
|
450 | - . '" value="' . $_REQUEST[$valueF] . '" />'; |
|
449 | + $sReturn .= '<input type="hidden" name="'.$valueF |
|
450 | + . '" value="'.$_REQUEST[$valueF].'" />'; |
|
451 | 451 | } |
452 | 452 | } else { |
453 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
454 | - . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />'; |
|
453 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
454 | + . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />'; |
|
455 | 455 | } |
456 | 456 | } |
457 | - $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />'; |
|
457 | + $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" '.'value="Edit selected" />'; |
|
458 | 458 | } |
459 | 459 | $sReturn .= '</form>'; |
460 | 460 | } |
461 | 461 | if (isset($ftrs['actions']['checkbox_inlineEdit'])) { |
462 | - $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
463 | - . '\',\'' . $checkboxName . '\',true);">Check All</a> ' |
|
464 | - . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
465 | - . '\',\'' . $checkboxName . '\',false);">Uncheck All</a> '; |
|
462 | + $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
463 | + . '\',\''.$checkboxName.'\',true);">Check All</a> ' |
|
464 | + . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
465 | + . '\',\''.$checkboxName.'\',false);">Uncheck All</a> '; |
|
466 | 466 | if (isset($ftrs['visibleInput'])) { |
467 | 467 | $sReturn .= $ftrs['visibleInput']; |
468 | 468 | } |
469 | - $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />'; |
|
469 | + $sReturn .= '<input type="hidden" name="view" value="save_'.$checkboxNameS.'" />'; |
|
470 | 470 | if (isset($ftrs['hiddenInput'])) { |
471 | 471 | if (is_array($ftrs['hiddenInput'])) { |
472 | 472 | foreach ($ftrs['hiddenInput'] as $valueF) { |
473 | - $sReturn .= '<input type="hidden" name="' . $valueF |
|
474 | - . '" value="' . $_REQUEST[$valueF] . '" />'; |
|
473 | + $sReturn .= '<input type="hidden" name="'.$valueF |
|
474 | + . '" value="'.$_REQUEST[$valueF].'" />'; |
|
475 | 475 | } |
476 | 476 | } else { |
477 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
478 | - . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />'; |
|
477 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
478 | + . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />'; |
|
479 | 479 | } |
480 | 480 | } |
481 | 481 | $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />'; |
@@ -495,12 +495,12 @@ discard block |
||
495 | 495 | { |
496 | 496 | return $this->setStringIntoTag(' ', 'span', [ |
497 | 497 | 'onclick' => implode('', [ |
498 | - 'javascript:NewCssCal(\'' . $controlName, |
|
498 | + 'javascript:NewCssCal(\''.$controlName, |
|
499 | 499 | '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', |
500 | 500 | ]), |
501 | 501 | 'class' => 'fa fa-calendar', |
502 | - 'id' => $controlName . '_picker', |
|
503 | - 'style' => 'cursor:pointer;' . $additionalStyle, |
|
502 | + 'id' => $controlName.'_picker', |
|
503 | + 'style' => 'cursor:pointer;'.$additionalStyle, |
|
504 | 504 | ]); |
505 | 505 | } |
506 | 506 | |
@@ -515,30 +515,30 @@ discard block |
||
515 | 515 | { |
516 | 516 | return $this->setStringIntoTag(' ', 'span', [ |
517 | 517 | 'onclick' => implode('', [ |
518 | - 'javascript:NewCssCal(\'' . $controlName, |
|
518 | + 'javascript:NewCssCal(\''.$controlName, |
|
519 | 519 | '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);', |
520 | 520 | ]), |
521 | 521 | 'class' => 'fa fa-calendar', |
522 | - 'id' => $controlName . '_picker', |
|
523 | - 'style' => 'cursor:pointer;' . $additionalStyle, |
|
522 | + 'id' => $controlName.'_picker', |
|
523 | + 'style' => 'cursor:pointer;'.$additionalStyle, |
|
524 | 524 | ]); |
525 | 525 | } |
526 | 526 | |
527 | 527 | private function setDynamicActionToSpecialCell($val, $aElements, $inP) |
528 | 528 | { |
529 | 529 | $aArgumemts = []; |
530 | - $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName() . '?' . $inP['aPrefix'] . $inP['aKey'] . '=' . $val[0]; |
|
530 | + $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName().'?'.$inP['aPrefix'].$inP['aKey'].'='.$val[0]; |
|
531 | 531 | $iActArgs = count($val[1]); |
532 | 532 | for ($counter = 0; $counter < $iActArgs; $counter++) { |
533 | - $aArgumemts[] = $val[1][$counter] . '=' . $aElements[$inP['rCounter']][$val[1][$counter]]; |
|
533 | + $aArgumemts[] = $val[1][$counter].'='.$aElements[$inP['rCounter']][$val[1][$counter]]; |
|
534 | 534 | } |
535 | - $id = $inP['key'] . $inP['rCounter']; |
|
535 | + $id = $inP['key'].$inP['rCounter']; |
|
536 | 536 | if (isset($inP['Features']['NoAjaxEditing'])) { |
537 | - return '<a href="' . implode('&', $aArgumemts) . '" id="' . $id . '"><i class="' |
|
538 | - . $inP['vIcon'] . '"> </i></a>'; |
|
537 | + return '<a href="'.implode('&', $aArgumemts).'" id="'.$id.'"><i class="' |
|
538 | + . $inP['vIcon'].'"> </i></a>'; |
|
539 | 539 | } |
540 | - return '<a href="#" onclick="javascript:loadAE(\'' . implode('&', $aArgumemts) . '\');"' |
|
541 | - . ' id="' . $id . '"><i class="' . $inP['vIcon'] . '"> </i></a>'; |
|
540 | + return '<a href="#" onclick="javascript:loadAE(\''.implode('&', $aArgumemts).'\');"' |
|
541 | + . ' id="'.$id.'"><i class="'.$inP['vIcon'].'"> </i></a>'; |
|
542 | 542 | } |
543 | 543 | |
544 | 544 | /** |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | if (!is_null($sHK) && (in_array('noHeader', $sHK))) { |
554 | 554 | return ''; |
555 | 555 | } |
556 | - return $this->setFooterCommonInjected($footerInjected) . '</body></html>'; |
|
556 | + return $this->setFooterCommonInjected($footerInjected).'</body></html>'; |
|
557 | 557 | } |
558 | 558 | |
559 | 559 | protected function setFooterCommonInjected($footerInjected = null) |
@@ -586,11 +586,11 @@ discard block |
||
586 | 586 | 'lang' => '<html lang="en-US">', |
587 | 587 | 'head' => '<head>', |
588 | 588 | 'charset' => '<meta charset="utf-8" />', |
589 | - 'viewport' => '<meta name="viewport" content="' . implode(', ', [ |
|
589 | + 'viewport' => '<meta name="viewport" content="'.implode(', ', [ |
|
590 | 590 | 'width=device-width', |
591 | 591 | 'height=device-height', |
592 | 592 | 'initial-scale=1', |
593 | - ]) . '" />', |
|
593 | + ]).'" />', |
|
594 | 594 | ]; |
595 | 595 | if (!is_null($headerFeatures)) { |
596 | 596 | if (is_array($headerFeatures)) { |
@@ -618,11 +618,11 @@ discard block |
||
618 | 618 | break; |
619 | 619 | case 'lang': |
620 | 620 | $fixedHeaderElements['lang'] = '<html lang="' |
621 | - . filter_var($value, FILTER_SANITIZE_STRING) . '">'; |
|
621 | + . filter_var($value, FILTER_SANITIZE_STRING).'">'; |
|
622 | 622 | break; |
623 | 623 | case 'title': |
624 | - $aFeatures[] = '<title>' |
|
625 | - . filter_var($value, FILTER_SANITIZE_STRING) . '</title>'; |
|
624 | + $aFeatures[] = '<title>' |
|
625 | + . filter_var($value, FILTER_SANITIZE_STRING).'</title>'; |
|
626 | 626 | break; |
627 | 627 | } |
628 | 628 | } |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | . '</head>' |
636 | 636 | . '<body>' |
637 | 637 | . '<p style="background-color:red;color:#FFF;">The parameter sent to ' |
638 | - . __FUNCTION__ . ' must be an array</p>' |
|
638 | + . __FUNCTION__.' must be an array</p>' |
|
639 | 639 | . $this->setFooterCommon(); |
640 | 640 | throw new \Exception($sReturn); |
641 | 641 | } |
@@ -663,10 +663,10 @@ discard block |
||
663 | 663 | if (isset($features['column_formatting'][$key])) { |
664 | 664 | switch ($features['column_formatting'][$key]) { |
665 | 665 | case '@': |
666 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
666 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
667 | 667 | break; |
668 | 668 | case 'right': |
669 | - $sReturn .= 'style="text-align:right;">' . $value; |
|
669 | + $sReturn .= 'style="text-align:right;">'.$value; |
|
670 | 670 | break; |
671 | 671 | default: |
672 | 672 | $sReturn .= '???'; |
@@ -680,12 +680,12 @@ discard block |
||
680 | 680 | if ((strpos($value, '-') !== false) && (strlen($value) == 10)) { |
681 | 681 | if (preg_match("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $value, $regs)) { |
682 | 682 | $outputet = true; |
683 | - $sReturn .= 'style="text-align:right;width: 10px;">' |
|
684 | - . $regs[3] . '.' . $regs[2] . '.' . $regs[1]; |
|
683 | + $sReturn .= 'style="text-align:right;width: 10px;">' |
|
684 | + . $regs[3].'.'.$regs[2].'.'.$regs[1]; |
|
685 | 685 | } |
686 | 686 | } |
687 | 687 | if (!$outputet) { |
688 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
688 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
689 | 689 | } |
690 | 690 | } |
691 | 691 | } |
@@ -711,11 +711,11 @@ discard block |
||
711 | 711 | { |
712 | 712 | $styleToReturn = 'style="text-align: right;">'; |
713 | 713 | if (substr($value, 0, 1) === '0') { |
714 | - return $styleToReturn . $value; |
|
714 | + return $styleToReturn.$value; |
|
715 | 715 | } |
716 | 716 | $decimals = $this->setTableCellDecimals($key, $features); |
717 | 717 | $nDc = ['MinFractionDigits' => $decimals, 'MaxFractionDigits' => $decimals]; |
718 | - return $styleToReturn . $this->setNumberFormat($value, $nDc); |
|
718 | + return $styleToReturn.$this->setNumberFormat($value, $nDc); |
|
719 | 719 | } |
720 | 720 | |
721 | 721 | /** |
@@ -751,7 +751,7 @@ discard block |
||
751 | 751 | $this->handleLanguageIntoSession(); |
752 | 752 | return '<div class="upperRightBox">' |
753 | 753 | . '<div style="text-align:right;">' |
754 | - . '<span class="flag-icon flag-icon-' . strtolower(substr($this->tCmnSession->get('lang'), -2)) |
|
754 | + . '<span class="flag-icon flag-icon-'.strtolower(substr($this->tCmnSession->get('lang'), -2)) |
|
755 | 755 | . '" style="margin-right:2px;"> </span>' |
756 | 756 | . $aAvailableLanguages[$this->tCmnSession->get('lang')] |
757 | 757 | . '</div><!-- default Language -->' |
@@ -764,17 +764,17 @@ discard block |
||
764 | 764 | $linkWithoutLanguage = ''; |
765 | 765 | $alR = $this->tCmnSuperGlobals->query->all(); |
766 | 766 | if (count($alR) > 0) { |
767 | - $linkWithoutLanguage = $this->setArrayToStringForUrl('&', $alR, ['lang']) . '&'; |
|
767 | + $linkWithoutLanguage = $this->setArrayToStringForUrl('&', $alR, ['lang']).'&'; |
|
768 | 768 | } |
769 | 769 | $sReturn = []; |
770 | 770 | foreach ($aAvailableLanguages as $key => $value) { |
771 | 771 | if ($this->tCmnSession->get('lang') !== $key) { |
772 | - $sReturn[] = '<a href="?' . $linkWithoutLanguage . 'lang=' . $key . '" style="display:block;">' |
|
773 | - . '<span class="flag-icon flag-icon-' . strtolower(substr($key, -2)) |
|
774 | - . '" style="margin-right:2px;"> </span>' . $value . '</a>'; |
|
772 | + $sReturn[] = '<a href="?'.$linkWithoutLanguage.'lang='.$key.'" style="display:block;">' |
|
773 | + . '<span class="flag-icon flag-icon-'.strtolower(substr($key, -2)) |
|
774 | + . '" style="margin-right:2px;"> </span>'.$value.'</a>'; |
|
775 | 775 | } |
776 | 776 | } |
777 | - return '<div id="visibleOnHover">' . implode('', $sReturn) . '</div><!-- visibleOnHover end -->'; |
|
777 | + return '<div id="visibleOnHover">'.implode('', $sReturn).'</div><!-- visibleOnHover end -->'; |
|
778 | 778 | } |
779 | 779 | |
780 | 780 | } |