original_string: public function calculateMergedDependenciesOfPackages($packages)
      {
          $dependencies = [];
  
          foreach ($packages as $package) {
              $dependencies = $this->calculateMergedDependenciesOfPackage($package, $dependencies);
          }
  
          return $dependencies;
      }
code: public function calculateMergedDependenciesOfPackages($packages)
      {
          $dependencies = [];
  
          foreach ($packages as $package) {
              $dependencies = $this->calculateMergedDependenciesOfPackage($package, $dependencies);
          }
  
          return $dependencies;
      }
code_tokens: public function calculateMergedDependenciesOfPackages ( $ packages ) { $ dependencies = [ ] ; foreach ( $ packages as $ package ) { $ dependencies = $ this -> calculateMergedDependenciesOfPackage ( $ package , $ dependencies ) ; } return $ dependencies ; }
docstring: Calculates and merges the dependencies of the passed packages
  
  @param array $packages
  
  @return mixed
  @throws \Exception
docstring_tokens: Calculates and merges the dependencies of the passed packages