src/Installer.php
public static function isSystemRequirement(Link $requirement) {
    $package_name = $requirement->getTarget();
    if (strpos($package_name, '/') === FALSE) {
      return TRUE;
    }

    return FALSE;
  }
public static function isSystemRequirement(Link $requirement) {
    $package_name = $requirement->getTarget();
    if (strpos($package_name, '/') === FALSE) {
      return TRUE;
    }

    return FALSE;
  }
public static function isSystemRequirement ( Link $ requirement ) { $ package_name = $ requirement -> getTarget ( ) ; if ( strpos ( $ package_name , '/' ) === FALSE ) { return TRUE ; } return FALSE ; }
Checks if the required package doesn't have a vendor.

Packages without vendor definitions should only ever be php or a php
extension.

@param \Composer\Package\Link $requirement
Required package reference.

@return bool
True if the package is a php or an extension. False otherwise.
Checks if the required package doesn t have a vendor .