Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RuleSet.php

function RuleSet::getPrettyString

1 call to RuleSet::getPrettyString()
RuleSet::__toString in vendor/composer/composer/src/Composer/DependencyResolver/RuleSet.php

File

vendor/composer/composer/src/Composer/DependencyResolver/RuleSet.php, line 176

Class

RuleSet
@author Nils Adermann <naderman@naderman.de> @implements \IteratorAggregate<Rule> @internal @final

Namespace

Composer\DependencyResolver

Code

public function getPrettyString(?RepositorySet $repositorySet = null, ?Request $request = null, ?Pool $pool = null, bool $isVerbose = false) : string {
    $string = "\n";
    foreach ($this->rules as $type => $rules) {
        $string .= str_pad(self::TYPES[$type], 8, ' ') . ": ";
        foreach ($rules as $rule) {
            $string .= ($repositorySet !== null && $request !== null && $pool !== null ? $rule->getPrettyString($repositorySet, $request, $pool, $isVerbose) : $rule) . "\n";
        }
        $string .= "\n\n";
    }
    return $string;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal