original_string: public static function syncConfig(Connection $connection, array $configs, \Closure $callback)
      {
          foreach ($configs as $row) {
              $config = $connection->fetchAssoc('SELECT id, name FROM fusio_config WHERE name = :name', [
                  'name' => $row['name']
              ]);
  
              if (empty($config)) {
                  self::insertRow('fusio_config', $row, $callback);
              }
          }
      }
code: public static function syncConfig(Connection $connection, array $configs, \Closure $callback)
      {
          foreach ($configs as $row) {
              $config = $connection->fetchAssoc('SELECT id, name FROM fusio_config WHERE name = :name', [
                  'name' => $row['name']
              ]);
  
              if (empty($config)) {
                  self::insertRow('fusio_config', $row, $callback);
              }
          }
      }
code_tokens: public static function syncConfig ( Connection $ connection , array $ configs , \ Closure $ callback ) { foreach ( $ configs as $ row ) { $ config = $ connection -> fetchAssoc ( 'SELECT id, name FROM fusio_config WHERE name = :name' , [ 'name' => $ row [ 'name' ] ] ) ; if ( empty ( $ config ) ) { self :: insertRow ( 'fusio_config' , $ row , $ callback ) ; } } }
docstring: Helper method to sync all config values of an existing system
  
  @param \Doctrine\DBAL\Connection $connection
  @param array $configs
  @param \Closure $callback
docstring_tokens: Helper method to sync all config values of an existing system