SU-SWS/stanford_profile_helper

View on GitHub

Showing 399 of 592 total issues

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}

Doc comment short description must start with a capital letter
Open

   * {@inheritDoc}

Doc comment short description must end with a full stop
Open

   * {@inheritDoc}

Expected 1 space after "?"; 0 found
Open

      $collection->get('xmlsitemap.sitemap_xsl')?->setRequirement('_access', 'FALSE');

Expected 1 blank line after function; 2 found
Open

}

Expected 1 space before "?"; 0 found
Open

      $collection->get('xmlsitemap.sitemap_xsl')?->setRequirement('_access', 'FALSE');

Expected 1 space before "?"; 0 found
Open

      $collection->get('xmlsitemap.sitemap_xml')?->setRequirement('_access', 'FALSE');

Expected 1 space after "?"; 0 found
Open

      $property_path = $index->getField($name)?->getPropertyPath() ?: '';

Object operator not indented correctly; expected 4 spaces but found 6
Open

      ->getName() == 'layout_selection') {

Doc comment short description must end with a full stop
Open

 * stanford_profile_helper_helper.module

Expected 1 space after "?"; 0 found
Open

      $collection->get('xmlsitemap.sitemap_xml')?->setRequirement('_access', 'FALSE');

Line exceeds 80 characters; contains 82 characters
Open

  // Could be related to: https://www.drupal.org/project/paragraphs/issues/2897906

Expected 1 space before "?"; 0 found
Open

      $property_path = $index->getField($name)?->getPropertyPath() ?: '';

Line exceeds 80 characters; contains 82 characters
Open

      // in the UI. If cron is running, the current host won't match the canonical

Doc comment short description must start with a capital letter
Open

 * stanford_profile_helper_helper.module

Missing class import via use statement (line '29', column '17').
Open

      throw new \Exception('The number of minimum or maximum units is missing.');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Severity
Category
Status
Source
Language