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

Breadcrumb

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

function Standard::pMatchArm

File

vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php, line 672

Class

Standard

Namespace

PhpParser\PrettyPrinter

Code

protected function pMatchArm(Node\MatchArm $node) : string {
    $result = '';
    if ($node->conds) {
        for ($i = 0, $c = \count($node->conds); $i + 1 < $c; $i++) {
            $result .= $this->p($node->conds[$i]) . ', ';
        }
        $result .= $this->pKey($node->conds[$i]);
    }
    else {
        $result = 'default => ';
    }
    return $result . $this->p($node->body);
}

API Navigation

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