@@ -87,12 +87,12 @@ discard block |
||
87 | 87 | } |
88 | 88 | foreach ($data as $table_name => $value) { |
89 | 89 | if ($this->snake_case_table) { |
90 | - $table_name = $this->snakeCase($prefix . $table_name); |
|
90 | + $table_name = $this->snakeCase($prefix.$table_name); |
|
91 | 91 | } |
92 | 92 | if (is_array($value) && is_object($value[0])) {//if it's a array and firs element is not a object |
93 | - $this->toMysqlData($value, $table_name . '_'); |
|
93 | + $this->toMysqlData($value, $table_name.'_'); |
|
94 | 94 | } elseif (is_object($value) || is_array($value)) { |
95 | - $this->toMysqlData($value, $table_name . '_'); |
|
95 | + $this->toMysqlData($value, $table_name.'_'); |
|
96 | 96 | $this->getTableData($table_name, $value); |
97 | 97 | } |
98 | 98 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $DataItem[] = ['value' => $item_value]; |
127 | 127 | } |
128 | 128 | |
129 | - $this->data[$table_name] = array_merge(($this->data[$table_name]??[]), $DataItem); |
|
129 | + $this->data[$table_name] = array_merge(($this->data[$table_name]??[]), $DataItem); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | } |