SU-SWS/stanford_profile_helper

View on GitHub
modules/stanford_decoupled/src/Plugin/GraphQLCompose/SchemaType/NameType.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Method getTypes has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

  public function getTypes(): array {
    $types = [];

    if (!$this->moduleHandler->moduleExists('name')) {
      return $types;

    syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ']'
    Invalid

          'fields' => fn() => [

    Expected 1 space after "="; 0 found
    Invalid

    declare(strict_types=1);

    Expected 1 space before "="; 0 found
    Invalid

    declare(strict_types=1);

    Each index in a multi-line array must be on a new line
    Invalid

          'fields' => fn() => [

    There are no issues that match your filters.

    Category
    Status