original_string: public function isIndirect()
      {
          $erroringFile = $erroringPackage = null;
          foreach ($this->trace as $line) {
              if (\in_array($line['function'], ['require', 'require_once', 'include', 'include_once'], true)) {
                  continue;
              }
              if (!isset($line['file'])) {
                  continue;
              }
              $file = $line['file'];
              if ('-' === $file || 'Standard input code' === $file || !realpath($file)) {
                  continue;
              }
              if (!$this->pathOriginatesFromVendor($file)) {
                  return false;
              }
              if (null !== $erroringFile && null !== $erroringPackage) {
                  $package = $this->getPackage($file);
                  if ('composer' !== $package && $package !== $erroringPackage) {
                      return true;
                  }
                  continue;
              }
              $erroringFile = $file;
              $erroringPackage = $this->getPackage($file);
          }
  
          return false;
      }
code: public function isIndirect()
      {
          $erroringFile = $erroringPackage = null;
          foreach ($this->trace as $line) {
              if (\in_array($line['function'], ['require', 'require_once', 'include', 'include_once'], true)) {
                  continue;
              }
              if (!isset($line['file'])) {
                  continue;
              }
              $file = $line['file'];
              if ('-' === $file || 'Standard input code' === $file || !realpath($file)) {
                  continue;
              }
              if (!$this->pathOriginatesFromVendor($file)) {
                  return false;
              }
              if (null !== $erroringFile && null !== $erroringPackage) {
                  $package = $this->getPackage($file);
                  if ('composer' !== $package && $package !== $erroringPackage) {
                      return true;
                  }
                  continue;
              }
              $erroringFile = $file;
              $erroringPackage = $this->getPackage($file);
          }
  
          return false;
      }
code_tokens: public function isIndirect ( ) { $ erroringFile = $ erroringPackage = null ; foreach ( $ this -> trace as $ line ) { if ( \ in_array ( $ line [ 'function' ] , [ 'require' , 'require_once' , 'include' , 'include_once' ] , true ) ) { continue ; } if ( ! isset ( $ line [ 'file' ] ) ) { continue ; } $ file = $ line [ 'file' ] ; if ( '-' === $ file || 'Standard input code' === $ file || ! realpath ( $ file ) ) { continue ; } if ( ! $ this -> pathOriginatesFromVendor ( $ file ) ) { return false ; } if ( null !== $ erroringFile && null !== $ erroringPackage ) { $ package = $ this -> getPackage ( $ file ) ; if ( 'composer' !== $ package && $ package !== $ erroringPackage ) { return true ; } continue ; } $ erroringFile = $ file ; $ erroringPackage = $ this -> getPackage ( $ file ) ; } return false ; }
docstring: Tells whether both the calling package and the called package are vendor
  packages.
  
  @return bool
docstring_tokens: Tells whether both the calling package and the called package are vendor packages .