Example #1
0
 /**
  * @param ComposerSymLog $log
  * @param ComposerSym    $composerSym
  * @param string         $package
  *
  * @return bool
  */
 private static function shouldSkip(ComposerSymLog $log, ComposerSym $composerSym, $package)
 {
     // Don't try and link this project.
     if ($package === "garoevans/composer-sym") {
         return true;
     }
     // Make sure the package actually exists in the vendor directory.
     if (!file_exists(self::getPackageLocation($composerSym, $package))) {
         return true;
     }
     // If it's already linked, skip it.
     if ($log->isPackageLinked($package)) {
         return true;
     }
     return false;
 }