SU-SWS/stanford_profile_helper

View on GitHub

Showing 521 of 706 total issues

Variable $pattern_b is undefined.
Open

  uasort($variables['patterns'], fn($pattern_a, $pattern_b) => strcmp($pattern_a['label'], $pattern_b['label']));

Variable $pattern_b is undefined.
Open

  uasort($variables['patterns'], fn($pattern_a, $pattern_b) => strcmp($pattern_a['label'], $pattern_b['label']));

Line indented incorrectly; expected 0 spaces, found 2
Open

  id: "entity_access",

Missing class doc comment
Open

class StanfordEventsImporterAPIURLFieldWidget extends LinkWidget {

Unused use statement
Open

use Drupal\migrate\Attribute\MigrateProcess;

Expected 1 blank line before function; 2 found
Open

function stanford_basic_page_types_preprocess_pattern_card__layout__node__stanford_page(&$variables) {

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}

Expected 1 space after "?"; 0 found
Open

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

Perl-style comments are not allowed; use "// Comment" instead
Open

#[FieldType(

Missing class doc comment
Open

class EntityAccessFieldType extends FieldItemBase {

Line indented incorrectly; expected 0 spaces, found 2
Open

  id: "stanford_events_importer_apiurl_field_widget",

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}

Unused use statement
Open

use Drupal\Core\Block\Attribute\Block;

Line indented incorrectly; expected 0 spaces, found 2
Open

  id: "jumpstart_ui_page_heading",

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}

Variable $pattern_a is undefined.
Open

  uasort($variables['patterns'], fn($pattern_a, $pattern_b) => strcmp($pattern_a['label'], $pattern_b['label']));
Severity
Category
Status
Source
Language