modules/datastore/src/Form/DashboardForm.php
File DashboardForm.php
has 273 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Drupal\datastore\Form;
use Drupal\Core\Pager\PagerManagerInterface;
Method buildRevisionRow
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
protected function buildRevisionRow(array $rev, int $resourceCount, string $harvestStatus) {
// Moderation state can be 'hidden', which is not a good CSS class if we
// don't want data to be hidden. We hijack the 'registered' class for use
// here.
$moderation_class = $rev['moderation_state'];
Method buildFilters
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
protected function buildFilters(array $filters): array {
// Retrieve potential harvest IDs for "Harvest ID" filter.
$harvestIds = $this->harvest->getAllHarvestIds();
return [
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
HarvestService $harvestService,
DatasetInfo $datasetInfo,
MetastoreService $metastoreService,
PagerManagerInterface $pagerManager,
DateFormatter $dateFormatter,