SU-SWS/stanford_profile_helper

View on GitHub

Showing 524 of 712 total issues

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) {}

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;

syntax error, unexpected ')'
Open

        ));

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

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

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

todo found
Open

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

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

use Drupal\migrate\Attribute\MigrateProcess;

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

  public function __construct(protected StanfordDefaultContentInterface $defaultContent, protected StateInterface $state, protected EntityTypeManagerInterface $entityTypeManager) {}

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

  public function __construct(protected AccountProxyInterface $currentUser, protected StateInterface $state) {}

syntax error, unexpected ','
Open

  id: "jumpstart_ui_skipnav_main_anchor",

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

    $this->renderer = $renderer;

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

      'fields' => fn() => [

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

  id: "saml_role_mapping",

syntax error, unexpected ','
Open

  id: "signup_block",

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 {

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

  id: "jumpstart_ui_page_heading",

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