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

Breadcrumb

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

function Common::isPharFile

Return TRUE if the path is a PHAR file.

Parameters

string $path The path to use.:

Return value

bool

5 calls to Common::isPharFile()
Common::realpath in vendor/squizlabs/php_codesniffer/src/Util/Common.php
CodeSniffer alternative for realpath.
FileList::__construct in vendor/squizlabs/php_codesniffer/src/Files/FileList.php
Constructs a file list and loads in an array of file paths to process.
Ruleset::expandRulesetReference in vendor/squizlabs/php_codesniffer/src/Ruleset.php
Expands a ruleset reference into a list of sniff files.
Ruleset::processRuleset in vendor/squizlabs/php_codesniffer/src/Ruleset.php
Processes a single ruleset and returns a list of the sniffs it represents.
Standards::getInstalledStandardPath in vendor/squizlabs/php_codesniffer/src/Util/Standards.php
Return the path of an installed coding standard.

File

vendor/squizlabs/php_codesniffer/src/Util/Common.php, line 43

Class

Common

Namespace

PHP_CodeSniffer\Util

Code

public static function isPharFile($path) {
    if (strpos($path, 'phar://') === 0) {
        return true;
    }
    return false;
}
RSS feed
Powered by Drupal