original_string: public function checkPackagesCanBeInstalled($packages_names_list)
      {
          foreach ($packages_names_list as $package_name) {
              $this->checkNoOtherPackageNeedsThisDependencyInALowerVersion($package_name,
                  $this->getLatestVersionOfPackage($package_name), $packages_names_list);
          }
      }
code: public function checkPackagesCanBeInstalled($packages_names_list)
      {
          foreach ($packages_names_list as $package_name) {
              $this->checkNoOtherPackageNeedsThisDependencyInALowerVersion($package_name,
                  $this->getLatestVersionOfPackage($package_name), $packages_names_list);
          }
      }
code_tokens: public function checkPackagesCanBeInstalled ( $ packages_names_list ) { foreach ( $ packages_names_list as $ package_name ) { $ this -> checkNoOtherPackageNeedsThisDependencyInALowerVersion ( $ package_name , $ this -> getLatestVersionOfPackage ( $ package_name ) , $ packages_names_list ) ; } }
docstring: Check the passed packages list can be updated
  
  @param array $packages_names_list
  
  @throws \Exception
docstring_tokens: Check the passed packages list can be updated