Showing 51 of 94 total issues
Method formElement
has 58 lines of code (exceeds 40 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);
Unused use statement Open
Open
use Drupal\Core\Block\Attribute\Block;
- 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
declare(strict_types=1);
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[FieldFormatter(
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[FieldWidget(
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 2 Open
Open
id: 'datetime_year_only',
- Exclude checks
Expected 1 space after "?"; 0 found Open
Open
$link_uri = $value->get(0)?->get('uri')?->getString();
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[ViewsDisplay(
- Exclude checks
Missing class doc comment Open
Open
class EntityTitleHeading extends FormatterBase implements ContainerFactoryPluginInterface {
- Exclude checks
Missing class doc comment Open
Open
class DateYearOnlyWidget extends DateTimeDatelistWidget {
- Exclude checks
Expected 1 space after "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 2 Open
Open
id: 'taxonomy_label_hierarchy',
- Exclude checks
Expected 1 space before "?"; 0 found Open
Open
$link_uri = $value->get(0)?->get('uri')?->getString();
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[FieldWidget(
- Exclude checks
Doc comment short description must end with a full stop Open
Open
* {@inheritDoc}
- Exclude checks
Doc comment short description must start with a capital letter Open
Open
* {@inheritDoc}
- Exclude checks
Missing class doc comment Open
Open
final class TaxonomyLabelHierarchyWidget extends OptionsWidgetBase {
- Exclude checks
Missing class doc comment Open
Open
class LocalistUrlWidget extends LinkWidget {
- Exclude checks
Doc comment short description must end with a full stop Open
Open
* {@inheritDoc}
- Exclude checks