function Plugin::isRunningGlobally
Test if composer is running "global" This check kinda dirty, but it is the "Composer Way"
Return value
bool Whether Composer is running "globally"
Throws
\RuntimeException
1 call to Plugin::isRunningGlobally()
- Plugin::updateInstalledPaths in vendor/
dealerdirect/ phpcodesniffer-composer-installer/ src/ Plugin.php - Check all installed packages (including the root package) against the installed paths from PHP_CodeSniffer and add the missing ones.
File
-
vendor/
dealerdirect/ phpcodesniffer-composer-installer/ src/ Plugin.php, line 580
Class
- Plugin
- PHP_CodeSniffer standard installation manager.
Namespace
PHPCSStandards\Composer\Plugin\Installers\PHPCodeSnifferCode
private function isRunningGlobally() {
return $this->composer
->getConfig()
->get('home') === $this->cwd;
}