include suggested changes

This commit is contained in:
Philipp 2022-07-13 00:23:12 +02:00
parent 6ef609f4fb
commit d74e57ef2c
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
18 changed files with 64 additions and 67 deletions

View file

@ -61,13 +61,14 @@ class DbaDefinition
}
/**
* Get field data for the given table
* Truncate field data for the given table
*
* @param string $table Name of the table to load field definitions for
* @param array $data data fields
*
* @param string $table Tavle to load field definitions for
* @param array $data data fields
* @return array fields for the given
*/
public function getFieldsForTable(string $table, array $data = []): array
public function truncateFieldsForTable(string $table, array $data): array
{
$definition = $this->definition;
if (empty($definition[$table])) {