GetDKAN/dkan

View on GitHub
modules/data_dictionary_widget/src/Fields/FieldCreation.php

Summary

Maintainability
A
0 mins
Test Coverage
A
98%

Method createField has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

  protected static function createField(string $field, array $field_json_metadata, FormStateInterface &$form_state) {
    $identifier_uuid = $field_json_metadata['identifier'] ?? $form_state->getUserInput()["field_json_metadata"][0]["identifier"] ?? NULL;

    $fieldMappings = [
      'title' => [
Severity: Minor
Found in modules/data_dictionary_widget/src/Fields/FieldCreation.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status