SU-SWS/stanford_profile_helper

View on GitHub

Showing 521 of 706 total issues

syntax error, unexpected ','
Open

  id: "entity_access",

syntax error, unexpected ','
Open

  id: "explore_courses_url",

Declaration of function setClientId(string $client_id) : \Drupal\stanford_person_importer\Cap should be compatible with function setClientId(string $client_id) : \Drupal\stanford_person_importer\CapInterface (method returning '\Drupal\stanford_person_importer\Cap' cannot override method returning '\Drupal\stanford_person_importer\CapInterface') defined in /code/modules/stanford_person/modules/stanford_person_importer/src/CapInterface.php:38
Open

  public function setClientId(string $client_id): self {

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

        'fields' => fn() => [

syntax error, unexpected ','
Open

  id: "stanford_events_importer_apiurl_field_widget",

Invalid offset "#fields" of array type array{#ds_configuration:array{regions:array{card_cta_label:mixed}}}
Open

    $variables['content']['#fields']['card_cta_label'] = $variables['content']['#fields']['card_button_label'];

syntax error, unexpected ','
Open

  id: "su_clean_html",

syntax error, unexpected '...' (T_ELLIPSIS), expecting ']'
Open

    return [...$fields, ...$focal_point];

Argument 1 (parent) is \Drupal\node\NodeInterface but \Drupal\stanford_publication\Entity\CitationInterface::setParentEntity() takes \Drupal\Core\Entity\ContentEntityInterface defined at /code/modules/stanford_publication/src/Entity/CitationInterface.php:67
Open

  $citation_entity->setParentEntity($entity, 'su_publication_citation')

Possibly zero references to use statement for classlike/namespace MigrateProcess (\Drupal\migrate\Attribute\MigrateProcess)
Open

use Drupal\migrate\Attribute\MigrateProcess;

syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)
Open

  public function __construct(private readonly ConfigPagesLoaderServiceInterface $configPagesLoader, private readonly RequestStack $requestStack, private readonly StateInterface $state) {}

syntax error, unexpected '$index' (T_VARIABLE), expecting ',' or ')'
Open

    $indexes = array_filter(ContentEntity::getIndexesForEntity($entity), fn(IndexInterface $index) => !!$index->getOption('algolia_index_name'));
Severity: Critical
Found in src/SearchApiAlgoliaHelper.php by phan

syntax error, unexpected ','
Open

  id: "jumpstart_ui_page_heading",

Assigning ?\Drupal\Core\Render\RendererInterface to property but \Drupal\jumpstart_ui\Plugin\TwigPlugin\JumpstartUITwig->renderer is \Drupal\Core\Render\RendererInterface
Open

    $this->renderer = $renderer;

Possibly zero references to use statement for classlike/namespace MigrateProcess (\Drupal\migrate\Attribute\MigrateProcess)
Open

use Drupal\migrate\Attribute\MigrateProcess;

Declaration of function setClientSecret(string $secret) : \Drupal\stanford_person_importer\Cap should be compatible with function setClientSecret(string $secret) : \Drupal\stanford_person_importer\CapInterface (method returning '\Drupal\stanford_person_importer\Cap' cannot override method returning '\Drupal\stanford_person_importer\CapInterface') defined in /code/modules/stanford_person/modules/stanford_person_importer/src/CapInterface.php:49
Open

  public function setClientSecret(string $secret): self {

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

      'fields' => fn() => [

syntax error, unexpected ','
Open

  id: "decoupled_referenced_invalidator",

Possibly zero references to use statement for classlike/namespace MigrateProcess (\Drupal\migrate\Attribute\MigrateProcess)
Open

use Drupal\migrate\Attribute\MigrateProcess;

Possibly zero references to use statement for classlike/namespace MigrateProcess (\Drupal\migrate\Attribute\MigrateProcess)
Open

use Drupal\migrate\Attribute\MigrateProcess;
Severity
Category
Status
Source
Language