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

Breadcrumb

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

function Perforce::checkStream

File

vendor/composer/composer/src/Composer/Util/Perforce.php, line 549

Class

Perforce
@author Matt Whittom <Matt.Whittom@veteransunited.com>

Namespace

Composer\Util

Code

public function checkStream() : bool {
    $command = $this->generateP4Command('depots', false);
    $this->executeCommand($command);
    $result = $this->commandResult;
    $resArray = explode(PHP_EOL, $result);
    foreach ($resArray as $line) {
        if (strpos($line, 'Depot') !== false) {
            $fields = explode(' ', $line);
            if (strcmp($this->p4Depot, $fields[1]) === 0) {
                $this->p4DepotType = $fields[3];
                return $this->isStream();
            }
        }
    }
    return false;
}
RSS feed
Powered by Drupal