SU-HKKU/cardinal_service_profile

View on GitHub

Showing 2 of 150 total issues

Method runTask has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public function runTask(array &$install_state) {
    $this->state->set('nobots', FALSE);

    $node_pages = [
      '403_page' => '4b8018dc-49a6-4018-9c54-e8c3e462beee',
Severity: Minor
Found in src/Plugin/InstallTask/SiteSettings.php - About 1 hr to fix

    Method getSnowData has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      protected function getSnowData($site_name) {
        $api_url = Settings::get('cardinal_service_profile_snow_api_url', self::SNOW_API);
        try {
          $response = $this->client->request('GET', $api_url, [
            'query' => ['website_address' => $site_name],
    Severity: Minor
    Found in src/Plugin/InstallTask/SiteSettings.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language