| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function write(array $hints) |
||
| 18 | { |
||
| 19 | $config = []; |
||
| 20 | |||
| 21 | foreach ($hints as $tableName => $tableHints) { |
||
| 22 | foreach ($tableHints as $columnName => $hint) { |
||
| 23 | /** @var ConfigGuesserHint $hint */ |
||
| 24 | $config[$tableName]['fields'][$columnName] = $hint->getConfigArray(); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | $config = [ |
||
| 29 | 'webnet_fr_database_anonymizer' => [ |
||
| 30 | 'tables' => $config, |
||
| 31 | ], |
||
| 32 | ]; |
||
| 33 | |||
| 34 | return Yaml::dump($config, 6); |
||
| 35 | } |
||
| 37 |