Showing 68 of 110 total issues
Expected 1 space before "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Expected 1 space before "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Expected 1 space before "|"; 0 found Open
Open
public function getTableOfContents(int|string $bid, int $depth_limit, array $exclude = [], bool $truncate = TRUE): array {
- Exclude checks
Missing class doc comment Open
Open
class DateYearOnlyWidget extends DateTimeDatelistWidget {
- Exclude checks
Doc comment short description must end with a full stop Open
Open
* {@inheritDoc}
- Exclude checks
Expected 1 space before "|"; 0 found Open
Open
public function getLinkDefaults(int|string $nid): array {
- Exclude checks
Unused use statement Open
Open
use Drupal\Core\Field\Attribute\FieldFormatter;
- Exclude checks
Missing class doc comment Open
Open
class EntityTitleHeading extends FormatterBase implements ContainerFactoryPluginInterface {
- Exclude checks
Expected 1 space before "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Expected 1 space after "|"; 0 found Open
Open
public function getLinkDefaults(int|string $nid): array {
- Exclude checks
Doc comment short description must end with a full stop Open
Open
* {@inheritDoc}
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[Constraint(
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 2 Open
Open
id: 'entity_title_heading',
- Exclude checks
Doc comment short description must start with a capital letter Open
Open
* {@inheritDoc}
- Exclude checks
Expected 1 space before "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Unused use statement Open
Open
use Drupal\views\Attribute\ViewsDisplay;
- Exclude checks
Expected 1 space after "|"; 0 found Open
Open
public function getTableOfContents(int|string $bid, int $depth_limit, array $exclude = [], bool $truncate = TRUE): array {
- Exclude checks
Function formElement
has a Cognitive Complexity of 11 (exceeds 10 allowed). Consider refactoring. Open
Open
public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state): array { $element = parent::formElement($items, $delta, $element, $form, $form_state); $options = $this->getOptions($items->getEntity()); $selected_items = $this->getSelectedOptions($items);
- Read upRead up
syntax error, unexpected ','
Open
Open
id: 'relative_internal_link',
- Exclude checks
syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open
Open
public function __construct(protected BookManagerInterface $bookManager, protected ConfigFactoryInterface $configFactory, protected EventDispatcherInterface $eventDispatcher, protected EntityTypeManagerInterface $entityTypeManager) {}
- Exclude checks