@@ -91,8 +91,9 @@ discard block |
||
91 | 91 | $column = $this->getColumn($this->getHighestColumnArray($data)); |
92 | 92 | |
93 | 93 | |
94 | - if ($this->snake_case_table) |
|
95 | - $table = $this->snakeCase($table); |
|
94 | + if ($this->snake_case_table) { |
|
95 | + $table = $this->snakeCase($table); |
|
96 | + } |
|
96 | 97 | |
97 | 98 | $table_data = $this->getData($data, $column); |
98 | 99 | |
@@ -193,8 +194,9 @@ discard block |
||
193 | 194 | */ |
194 | 195 | public static function getHighestColumnArray($array) |
195 | 196 | { |
196 | - if (is_object($array) || (is_array($array) && !is_object($array[0]) && !is_array($array[0]))) |
|
197 | - return $array; |
|
197 | + if (is_object($array) || (is_array($array) && !is_object($array[0]) && !is_array($array[0]))) { |
|
198 | + return $array; |
|
199 | + } |
|
198 | 200 | |
199 | 201 | $Highest = false; |
200 | 202 | $ColumnCount = false; |
@@ -237,10 +239,11 @@ discard block |
||
237 | 239 | foreach ($item_row as $item) { |
238 | 240 | if (empty($item) && !is_numeric($item)) { |
239 | 241 | $value[] = "null"; |
240 | - } elseif (is_numeric($item)) |
|
241 | - $value[] = $item; |
|
242 | - else |
|
243 | - $value[] = '"' . addcslashes($item, "W") . '"'; |
|
242 | + } elseif (is_numeric($item)) { |
|
243 | + $value[] = $item; |
|
244 | + } else { |
|
245 | + $value[] = '"' . addcslashes($item, "W") . '"'; |
|
246 | + } |
|
244 | 247 | } |
245 | 248 | $String[] = '(' . implode(",", $value) . ')'; |
246 | 249 | } |
@@ -272,9 +275,10 @@ discard block |
||
272 | 275 | $Data = trim($Data); |
273 | 276 | if (is_numeric($Data)) { |
274 | 277 | return $Data + 0; |
275 | - } elseif (empty($Data)) |
|
276 | - return $empty_val; |
|
277 | - else |
|
278 | - return (string)$Data; |
|
278 | + } elseif (empty($Data)) { |
|
279 | + return $empty_val; |
|
280 | + } else { |
|
281 | + return (string)$Data; |
|
282 | + } |
|
279 | 283 | } |
280 | 284 | } |