1 | <?php |
||
36 | trait MySQLiByDanielGPstructures |
||
37 | { |
||
38 | |||
39 | use MySQLiByDanielGP; |
||
40 | |||
41 | /** |
||
42 | * Return the list of Tables from the MySQL server |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | protected function getMySQLStatistics($filterArray = null) |
||
50 | |||
51 | /** |
||
52 | * returns a list of MySQL databases |
||
53 | * |
||
54 | * @return array |
||
55 | */ |
||
56 | protected function getMySQLactiveDatabases() |
||
60 | |||
61 | /** |
||
62 | * returns a list of active MySQL engines |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | protected function getMySQLactiveEngines() |
||
70 | |||
71 | /** |
||
72 | * returns the list of all MySQL generic informations |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | protected function getMySQLgenericInformations() |
||
83 | |||
84 | /** |
||
85 | * returns the list of all MySQL global variables |
||
86 | * |
||
87 | * @return array |
||
88 | */ |
||
89 | protected function getMySQLglobalVariables() |
||
93 | |||
94 | /** |
||
95 | * returns a list of MySQL indexes (w. choice of to choose any combination of db/table/column) |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | protected function getMySQLlistColumns($filterArray = null) |
||
103 | |||
104 | /** |
||
105 | * returns a list of MySQL databases (w. choice of exclude/include the system ones) |
||
106 | * |
||
107 | * @return array |
||
108 | */ |
||
109 | protected function getMySQLlistDatabases($excludeSystemDbs = true) |
||
113 | |||
114 | /** |
||
115 | * returns a list of MySQL engines (w. choice of return only the active ones) |
||
116 | * |
||
117 | * @return array |
||
118 | */ |
||
119 | protected function getMySQLlistEngines($onlyActiveOnes = true) |
||
123 | |||
124 | /** |
||
125 | * returns a list of MySQL indexes (w. choice of to choose any combination of db/table/column) |
||
126 | * |
||
127 | * @return array |
||
128 | */ |
||
129 | protected function getMySQLlistIndexes($filterArray = null) |
||
133 | |||
134 | /** |
||
135 | * Return the list of Tables from the MySQL server |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | protected function getMySQLlistTables($filterArray = null) |
||
143 | |||
144 | /** |
||
145 | * Returns maximum length for a given MySQL field |
||
146 | * |
||
147 | * @param array $fieldDetails |
||
148 | * @param boolean $outputFormated |
||
149 | * @return array |
||
150 | */ |
||
151 | protected function setFieldNumbers($fieldDetails, $outputFormated = false) |
||
163 | |||
164 | /** |
||
165 | * Establishes numbers of fields |
||
166 | * |
||
167 | * @param array $fieldDetails |
||
168 | * @return array |
||
169 | */ |
||
170 | private function setFieldSpecific($fieldDetails) |
||
181 | |||
182 | private function setFieldSpecificElse($fieldDetails) |
||
190 | |||
191 | private function setFldLmtsExact($cTp) |
||
209 | } |
||
210 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.