SU-SWS/stanford_profile_helper

View on GitHub

Showing 524 of 712 total issues

Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "* Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
Open

 * Implements hook_page_attachments.

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 EntityTypeManagerInterface $entityTypeManager, private readonly UuidInterface $uuid, private readonly PasswordGeneratorInterface $passwordGenerator, private readonly EventDispatcherInterface $eventDispatcher) {

Invalid offset "#field_name" of array type array{add_more:array{#value:}}|array{add_more:array{add_more_button_stanford_person_cta:array{#value:}}}|array{add_more_button_stanford_person_cta:array{#value:}}
Open

    if ($variables['element']['#field_name'] == "su_schedule_speaker") {

Doc-block of $renderer in __construct is phpdoc param type \Drupal\Core\Render\RendererInterface which is not a permitted replacement of the nullable param type ?\Drupal\Core\Render\RendererInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

   * @param \Drupal\Core\Render\RendererInterface $renderer

syntax error, unexpected ','
Open

  id: "explore_courses_url",

syntax error, unexpected ','
Open

  id: "entity_access",

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')

syntax error, unexpected '->' (T_OBJECT_OPERATOR)
Open

  if (!$node->isPublished() && $node->original?->isPublished() && \Drupal::hasService('search_api_algolia.helper')) {
Severity: Critical
Found in stanford_profile_helper.module by phan

syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open

  public function __construct(protected EntityTypeManagerInterface $entityTypeManager) {}

syntax error, unexpected ')'
Open

    );

syntax error, unexpected ','
Open

  id: "entity_access",

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

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

syntax error, unexpected ','
Open

  id: "decoupled_referenced_invalidator",

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

      $urls = [...$bookmark_urls, ...$feed_urls];

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'];

Returning type \Drupal\Core\TypedData\TranslatableInterface but getParentEntity() is declared to return \Drupal\Core\Entity\ContentEntityInterface|null
Open

    return $parent;

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

      'fields' => fn() => [

syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open

  public function __construct(protected BookManagerInterface $bookManager, protected ConfigPagesLoaderServiceInterface $configPagesLoader, protected EntityTypeManagerInterface $entityTypeManager) {
Severity
Category
Status
Source
Language