original_string: private function getBundlesToBlend()
      {
          $toBlend = array();
  
          foreach ($this->config['blend'] as $key => $params) {
              $vendor = isset($params['vendor']) ? $params['vendor'] : null;
              $name = isset($params['name']) ? $params['name'] : null;
              $path = isset($params['path']) ? $params['path'] : null;
  
              if (!$vendor && !$name) {
                  list($vendor, $name) = explode('/', $key, 2);
              }
  
              if (!isset($toBlend[$vendor][$name])) {
                  $toBlend[$vendor][$name] = $path;
              }
          }
  
          return $toBlend;
      }
code: private function getBundlesToBlend()
      {
          $toBlend = array();
  
          foreach ($this->config['blend'] as $key => $params) {
              $vendor = isset($params['vendor']) ? $params['vendor'] : null;
              $name = isset($params['name']) ? $params['name'] : null;
              $path = isset($params['path']) ? $params['path'] : null;
  
              if (!$vendor && !$name) {
                  list($vendor, $name) = explode('/', $key, 2);
              }
  
              if (!isset($toBlend[$vendor][$name])) {
                  $toBlend[$vendor][$name] = $path;
              }
          }
  
          return $toBlend;
      }
code_tokens: private function getBundlesToBlend ( ) { $ toBlend = array ( ) ; foreach ( $ this -> config [ 'blend' ] as $ key => $ params ) { $ vendor = isset ( $ params [ 'vendor' ] ) ? $ params [ 'vendor' ] : null ; $ name = isset ( $ params [ 'name' ] ) ? $ params [ 'name' ] : null ; $ path = isset ( $ params [ 'path' ] ) ? $ params [ 'path' ] : null ; if ( ! $ vendor && ! $ name ) { list ( $ vendor , $ name ) = explode ( '/' , $ key , 2 ) ; } if ( ! isset ( $ toBlend [ $ vendor ] [ $ name ] ) ) { $ toBlend [ $ vendor ] [ $ name ] = $ path ; } } return $ toBlend ; }
docstring: Extract bundles to blend from config
  
  @return array
docstring_tokens: Extract bundles to blend from config