SU-SWS/stanford_profile_helper

View on GitHub
modules/jumpstart_ui/src/Plugin/Block/PageHeadingBlock.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method blockForm has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public function blockForm($form, FormStateInterface $form_state) {
    $form = parent::blockForm($form, $form_state);
    $config = $this->getConfiguration();

    $form['heading_text'] = [
Severity: Minor
Found in modules/jumpstart_ui/src/Plugin/Block/PageHeadingBlock.php - About 1 hr to fix

    syntax error, unexpected ','
    Open

      id: "jumpstart_ui_page_heading",

    Unused use statement
    Open

    use Drupal\Core\Block\Attribute\Block;

    Line indented incorrectly; expected 0 spaces, found 2
    Open

      id: "jumpstart_ui_page_heading",

    Perl-style comments are not allowed; use "// Comment" instead
    Open

    #[Block(

    Missing class doc comment
    Open

    class PageHeadingBlock extends BlockBase {

    There are no issues that match your filters.

    Category
    Status