SU-SWS/stanford_profile_helper

View on GitHub

Showing 521 of 706 total issues

todo found
Open

  @todo: Remove when https://www.drupal.org/node/2779919 is resolved.

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 '->' (T_OBJECT_OPERATOR)
Open

      $collection->get('xmlsitemap.sitemap_xml')?->setRequirement('_access', 'FALSE');

Invalid offset 0 of array type array{#title:}
Open

      $build['su_year'][0]['#markup'] = trim("$date, " . $build['su_year'][0]['#markup'], ', ');

syntax error, unexpected ')'
Open

        ));

syntax error, unexpected ','
Open

  id: "response_code",

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

  public function __construct(protected EntityTypeManagerInterface $entityTypeManager) {}

syntax error, unexpected ')'
Open

    );

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

      'fields' => fn() => [

syntax error, unexpected ','
Open

  id: "signup_block",

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

    return $parent;

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

use Drupal\migrate\Attribute\MigrateProcess;

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

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

syntax error, unexpected ','
Open

  id: "saml_role_mapping",

Argument 2 (allowable_tags) is array<int></int> but \strip_tags() takes string
Open

    $value = preg_replace('/\s\s+/', "\n", trim(strip_tags($text, $keep_tags)));

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 ','
Open

  id: "entity_access",

syntax error, unexpected ','
Open

  id: "pdb_component",
Severity: Critical
Found in src/Plugin/Block/PDBlock.php by phan

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

      $builder->callback(fn(CitationInterface $citation) => $citation->getBibliography()),

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") {
Severity
Category
Status
Source
Language