SU-SWS/stanford_migrate

View on GitHub
src/StanfordMigrateBatchExecutable.php

Summary

Maintainability
A
0 mins
Test Coverage
B
87%

Method batchProcessImport has 53 lines of code (exceeds 40 allowed). Consider refactoring.
Wontfix

  public static function batchProcessImport($migration_id, array $options, &$context): void {
    if (empty($context['sandbox'])) {
      $context['finished'] = 0;
      $context['sandbox'] = [];
      $context['sandbox']['total'] = 0;
Severity: Major
Found in src/StanfordMigrateBatchExecutable.php - About 1 hr to fix

    Call with 3 arg(s) to \Drupal\stanford_migrate\StanfordMigrateBatchExecutable::__construct() which only takes 0 arg(s) defined at /code/src/StanfordMigrateBatchExecutable.php:17
    Invalid

        $executable = new StanfordMigrateBatchExecutable($migration, $message, $options);

    There are no issues that match your filters.

    Category
    Status