SU-SWS/stanford_profile_helper

View on GitHub
src/SearchApiAlgoliaHelper.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

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

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}

Expected 1 space before "|"; 0 found
Open

  public static function deleteRecords(string|int $objet_id, string $index_name, string $app_id, string $app_key) {

Variable $index is undefined.
Open

    $indexes = array_filter(ContentEntity::getIndexesForEntity($entity), fn(IndexInterface $index) => !!$index->getOption('algolia_index_name'));

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}

Variable $index is undefined.
Open

    $indexes = array_filter(ContentEntity::getIndexesForEntity($entity), fn(IndexInterface $index) => !!$index->getOption('algolia_index_name'));

Expected 1 space after "|"; 0 found
Open

  public static function deleteRecords(string|int $objet_id, string $index_name, string $app_id, string $app_key) {

There are no issues that match your filters.

Category
Status