SU-SWS/stanford_migrate

View on GitHub

Showing 65 of 139 total issues

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Line exceeds 80 characters; contains 114 characters
Open

  // changes, the hash of the row  changes without any data actually changing. Fix the row data so that it doesn't
Severity: Minor
Found in stanford_migrate.module by phpcodesniffer

There must be no blank line following an inline comment
Open

    // Finally run this migration.
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Line exceeds 80 characters; contains 82 characters
Open

      // CSV Imported content can be ignored since it's normally a one time thing.
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Expected 1 space before "|"; 0 found
Open

  protected function getSourceData(string $url, string|int $item_selector = ''): array {

Variable $type is undefined.
Open

          [, $type] = explode(':', $destination['plugin']);
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Expected 1 blank line before function; 2 found
Open

  public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected MigrationPluginManagerInterface $migrationPluginManager, LoggerChannelFactoryInterface $logger_factory) {
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Variable $type is undefined.
Open

          if ($type == $entity->getEntityTypeId()) {
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Expected 1 space after "|"; 0 found
Open

  protected function getImageSize(string $url): bool|array {

If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
Open

      $source_data = [...$source_data, ...parent::getSourceData($page_url, $item_selector)];

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Missing parameter comment
Open

   * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migrationPluginManager
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}
Severity: Minor
Found in src/StanfordMigrate.php by phpcodesniffer

Variable $height is undefined.
Open

      [$width, $height] = $size;
Severity
Category
Status
Source
Language