if (...) is invalid in

/**
 * Adjust the location that a project should be downloaded to.
 */
function hook_drush_pm_adjust_download_destination(&$project, $release) {
  if (...) {
    $project['project_install_location'] = '/path/to/install/to/' . basename($project['full_project_path']);
  }
}

I know that this code is never executed, but an IDE like eclipse will still scan all the files that it recognizes as PHP files, and it reports all syntax errors that it finds.

This is an on-going irritation. Something like if ($some_condition) would work fine.

Comments

moshe weitzman’s picture

Status: Active » Fixed

committed your suggestion.

salvis’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.