@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * returns a list of MySQL databases |
141 | 141 | * |
142 | - * @return array |
|
142 | + * @return string |
|
143 | 143 | */ |
144 | 144 | protected function getMySQLactiveDatabases() |
145 | 145 | { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | /** |
150 | 150 | * returns a list of active MySQL engines |
151 | 151 | * |
152 | - * @return array |
|
152 | + * @return string |
|
153 | 153 | */ |
154 | 154 | protected function getMySQLactiveEngines() |
155 | 155 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * returns the list of all MySQL global variables |
179 | 179 | * |
180 | - * @return array |
|
180 | + * @return string |
|
181 | 181 | */ |
182 | 182 | protected function getMySQLglobalVariables() |
183 | 183 | { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | /** |
188 | 188 | * returns a list of MySQL indexes (w. choice of to choose any combination of db/table/column) |
189 | 189 | * |
190 | - * @return array |
|
190 | + * @return string |
|
191 | 191 | */ |
192 | 192 | protected function getMySQLlistColumns($filterArray = null) |
193 | 193 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | /** |
198 | 198 | * returns a list of MySQL databases (w. choice of exclude/include the system ones) |
199 | 199 | * |
200 | - * @return array |
|
200 | + * @return string |
|
201 | 201 | */ |
202 | 202 | protected function getMySQLlistDatabases($excludeSystemDbs = true) |
203 | 203 | { |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | /** |
208 | 208 | * returns a list of MySQL engines (w. choice of return only the active ones) |
209 | 209 | * |
210 | - * @return array |
|
210 | + * @return string |
|
211 | 211 | */ |
212 | 212 | protected function getMySQLlistEngines($onlyActiveOnes = true) |
213 | 213 | { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | /** |
218 | 218 | * returns a list of MySQL indexes (w. choice of to choose any combination of db/table/column) |
219 | 219 | * |
220 | - * @return array |
|
220 | + * @return string |
|
221 | 221 | */ |
222 | 222 | protected function getMySQLlistIndexes($filterArray = null) |
223 | 223 | { |
@@ -227,6 +227,8 @@ discard block |
||
227 | 227 | /** |
228 | 228 | * Return various informations (from predefined list) from the MySQL server |
229 | 229 | * |
230 | + * @param string $returnChoice |
|
231 | + * @param string $returnType |
|
230 | 232 | * @return string |
231 | 233 | */ |
232 | 234 | private function getMySQLlistMultiple($returnChoice, $returnType, $additionalFeatures = null) |
@@ -580,7 +582,7 @@ discard block |
||
580 | 582 | * |
581 | 583 | * @param array $entryArray |
582 | 584 | * @param string $referenceTable |
583 | - * @return array |
|
585 | + * @return string |
|
584 | 586 | */ |
585 | 587 | private function setArrayToFilterValues($entryArray, $referenceTable = '') |
586 | 588 | { |
@@ -626,7 +628,6 @@ discard block |
||
626 | 628 | /** |
627 | 629 | * Returns maximum length for a given MySQL field |
628 | 630 | * |
629 | - * @param string $field_full_type |
|
630 | 631 | * @return array |
631 | 632 | */ |
632 | 633 | protected function setFieldNumbers($fieldDetails, $outputFormated = false) |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | |
568 | 568 | private function stFldLmtsExact($colType) |
569 | 569 | { |
570 | - $xct = [ |
|
570 | + $xct = [ |
|
571 | 571 | 'bigint' => ['l' => -9223372036854775808, 'L' => 999999999999, 's' => 21, 'sUS' => 20], |
572 | 572 | 'int' => ['l' => -2147483648, 'L' => 2147483647, 's' => 11, 'sUS' => 10], |
573 | 573 | 'mediumint' => ['l' => -8388608, 'L' => 8388607, 's' => 9, 'sUS' => 8], |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | case 'array_numbered': |
636 | 636 | case 'array_pairs_key_value': |
637 | 637 | case 'full_array_key_numbered': |
638 | - $aReturn = $this->setMySQLquery2ServerByPattern([ |
|
638 | + $aReturn = $this->setMySQLquery2ServerByPattern([ |
|
639 | 639 | 'NoOfColumns' => $result->field_count, |
640 | 640 | 'NoOfRows' => $result->num_rows, |
641 | 641 | 'QueryResult' => $result, |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | break; |
646 | 646 | case 'full_array_key_numbered_with_record_number_prefix': |
647 | 647 | case 'full_array_key_numbered_with_prefix': |
648 | - $aReturn = $this->setMySQLquery2ServerByPattern([ |
|
648 | + $aReturn = $this->setMySQLquery2ServerByPattern([ |
|
649 | 649 | 'NoOfColumns' => $result->field_count, |
650 | 650 | 'NoOfRows' => $result->num_rows, |
651 | 651 | 'QueryResult' => $result, |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | . $aElements[$rCntr][$value] . '"/>'; |
412 | 412 | break; |
413 | 413 | case 'edit': |
414 | - $edt = ''; |
|
414 | + $edt = ''; |
|
415 | 415 | if (isset($ftrs['NoAjaxEditing'])) { |
416 | 416 | $edt .= $_SERVER['PHP_SELF'] . '?' . $actPrfx |
417 | 417 | . $action_key . '=' . $value[0] . '&'; |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | switch ($value[1]) { |
480 | 480 | case '/': |
481 | 481 | // next variable is only to avoid a long line |
482 | - $shorter = [ |
|
482 | + $shorter = [ |
|
483 | 483 | $aElements[$rCntr][$value[3]], |
484 | 484 | $aElements[$rCntr][$value[4]], |
485 | 485 | ]; |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | break; |
488 | 488 | case '+': |
489 | 489 | // next variable is only to avoid a long line |
490 | - $iTemp = $this->setArrayValuesAsKey([ |
|
490 | + $iTemp = $this->setArrayValuesAsKey([ |
|
491 | 491 | $value[0], |
492 | 492 | $value[1], |
493 | 493 | $value[2] |
@@ -846,7 +846,7 @@ discard block |
||
846 | 846 | . filter_var($value, FILTER_SANITIZE_STRING) . '">'; |
847 | 847 | break; |
848 | 848 | case 'title': |
849 | - $aFeatures[] = '<title>' |
|
849 | + $aFeatures[] = '<title>' |
|
850 | 850 | . filter_var($value, FILTER_SANITIZE_STRING) . '</title>'; |
851 | 851 | break; |
852 | 852 | } |
@@ -63,6 +63,9 @@ discard block |
||
63 | 63 | return $aDetails; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $fileGiven |
|
68 | + */ |
|
66 | 69 | protected function getFileDetailsRawStatistic(\SplFileInfo $info, $fileGiven) |
67 | 70 | { |
68 | 71 | return [ |
@@ -81,6 +84,9 @@ discard block |
||
81 | 84 | ]; |
82 | 85 | } |
83 | 86 | |
87 | + /** |
|
88 | + * @param integer $timeAsPhpNumber |
|
89 | + */ |
|
84 | 90 | private function getFileTimes($timeAsPhpNumber) |
85 | 91 | { |
86 | 92 | return [ |
@@ -94,7 +100,7 @@ discard block |
||
94 | 100 | * |
95 | 101 | * @param type $sourcePath |
96 | 102 | * @param type $targetPath |
97 | - * @return type |
|
103 | + * @return string |
|
98 | 104 | */ |
99 | 105 | protected function moveFilesIntoTargetFolder($sourcePath, $targetPath) |
100 | 106 | { |
@@ -210,7 +216,7 @@ discard block |
||
210 | 216 | /** |
211 | 217 | * Provides a list of all known JSON errors and their description |
212 | 218 | * |
213 | - * @return type |
|
219 | + * @return null|string |
|
214 | 220 | */ |
215 | 221 | protected function setJsonErrorInPlainEnglish() |
216 | 222 | { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'Name' => $info->getRealPath(), |
59 | 59 | 'Type' => $info->getType(), |
60 | 60 | ]; |
61 | - $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
61 | + $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
62 | 62 | ksort($aDetails); |
63 | 63 | return $aDetails; |
64 | 64 | } |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | */ |
215 | 215 | protected function setJsonErrorInPlainEnglish() |
216 | 216 | { |
217 | - $knownErrors = [ |
|
217 | + $knownErrors = [ |
|
218 | 218 | JSON_ERROR_NONE => null, |
219 | 219 | JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
220 | 220 | JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |
@@ -133,7 +133,7 @@ |
||
133 | 133 | 'highcharts' => 'setJavascriptFileCDNforHighCharts', |
134 | 134 | 'exporting' => 'setJavascriptFileCDNforHighChartsExporting', |
135 | 135 | ]; |
136 | - $rootFN = pathinfo($sFileParts[0])['basename']; |
|
136 | + $rootFN = pathinfo($sFileParts[0])['basename']; |
|
137 | 137 | if (array_key_exists($rootFN, $knownFNs)) { |
138 | 138 | return call_user_func([$this, $knownFNs[$rootFN]], pathinfo($jsFileName)['basename']); |
139 | 139 | } |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | |
215 | 215 | private function getFieldOutputNumericNonFK($fkArray, $value, $iar = []) |
216 | 216 | { |
217 | - $query = $this->sQueryGenericSelectKeyValue([ |
|
217 | + $query = $this->sQueryGenericSelectKeyValue([ |
|
218 | 218 | $fkArray[$value['COLUMN_NAME']][1], |
219 | 219 | $fkArray[$value['COLUMN_NAME']][2], |
220 | 220 | $fkArray[$value['COLUMN_NAME']][0], |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | |
255 | 255 | private function getFieldOutputTextFK($foreignKeysArray, $value, $iar) |
256 | 256 | { |
257 | - $query = $this->sQueryGenericSelectKeyValue([ |
|
257 | + $query = $this->sQueryGenericSelectKeyValue([ |
|
258 | 258 | $foreignKeysArray[$value['COLUMN_NAME']][1], |
259 | 259 | $foreignKeysArray[$value['COLUMN_NAME']][2], |
260 | 260 | $foreignKeysArray[$value['COLUMN_NAME']][0] |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | |
542 | 542 | private function handleFeaturesSingle($fieldName, $features, $featureKey) |
543 | 543 | { |
544 | - $fMap = [ |
|
544 | + $fMap = [ |
|
545 | 545 | 'readonly' => ['readonly', 'class', 'input_readonly'], |
546 | 546 | 'disabled' => ['disabled'] |
547 | 547 | ]; |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * @param type $foreignKeysArray |
299 | 299 | * @param type $value |
300 | 300 | * @param type $iar |
301 | - * @return type |
|
301 | + * @return string |
|
302 | 302 | */ |
303 | 303 | private function getFieldOutputTextFK($foreignKeysArray, $value, $iar) |
304 | 304 | { |
@@ -797,7 +797,7 @@ discard block |
||
797 | 797 | * @param string $tableSource |
798 | 798 | * @param array $details |
799 | 799 | * @param array $features |
800 | - * @return string|array |
|
800 | + * @return null|string |
|
801 | 801 | */ |
802 | 802 | private function setNeededField($tableSource, $details, $features) |
803 | 803 | { |
@@ -819,7 +819,7 @@ discard block |
||
819 | 819 | * @param string $tblName |
820 | 820 | * @param array $dtls |
821 | 821 | * @param array $features |
822 | - * @return string|array |
|
822 | + * @return string |
|
823 | 823 | */ |
824 | 824 | private function setNeededFieldByType($tblName, $dtls, $features) |
825 | 825 | { |
@@ -830,6 +830,9 @@ discard block |
||
830 | 830 | return $this->setNeededFieldKnown($tblName, $dtls, $features); |
831 | 831 | } |
832 | 832 | |
833 | + /** |
|
834 | + * @param string $tblName |
|
835 | + */ |
|
833 | 836 | private function setNeededFieldKnown($tblName, $dtls, $features) |
834 | 837 | { |
835 | 838 | $iar = $this->handleFeatures($dtls['COLUMN_NAME'], $features); |
@@ -845,6 +848,10 @@ discard block |
||
845 | 848 | return $this->getFieldCompletionType($dtls) . $sReturn; |
846 | 849 | } |
847 | 850 | |
851 | + /** |
|
852 | + * @param string $tableSource |
|
853 | + * @param string $fieldLabel |
|
854 | + */ |
|
848 | 855 | private function setNeededFieldFinal($tableSource, $details, $features, $fieldLabel) |
849 | 856 | { |
850 | 857 | $sReturn = $this->setField($tableSource, $details, $features, $fieldLabel); |
@@ -881,7 +888,7 @@ discard block |
||
881 | 888 | /** |
882 | 889 | * create a Cache for given table to use it in many places |
883 | 890 | * |
884 | - * @param type $tblSrc |
|
891 | + * @param string $tblSrc |
|
885 | 892 | */ |
886 | 893 | private function setTableCache($tblSrc) |
887 | 894 | { |