original_string: public function import(array $data, $values = null, array &$imported = array())
      {
          if (false === isset($data['imports'])) {
              return $data;
          }
  
          $imports = $data['imports'];
  
          unset($data['imports']);
  
          foreach ($imports as $resource) {
              $data = array_replace_recursive(
                  $this->get($resource, $values, $imported),
                  $data
              );
          }
  
          return $data;
      }
code: public function import(array $data, $values = null, array &$imported = array())
      {
          if (false === isset($data['imports'])) {
              return $data;
          }
  
          $imports = $data['imports'];
  
          unset($data['imports']);
  
          foreach ($imports as $resource) {
              $data = array_replace_recursive(
                  $this->get($resource, $values, $imported),
                  $data
              );
          }
  
          return $data;
      }
code_tokens: public function import ( array $ data , $ values = null , array & $ imported = array ( ) ) { if ( false === isset ( $ data [ 'imports' ] ) ) { return $ data ; } $ imports = $ data [ 'imports' ] ; unset ( $ data [ 'imports' ] ) ; foreach ( $ imports as $ resource ) { $ data = array_replace_recursive ( $ this -> get ( $ resource , $ values , $ imported ) , $ data ) ; } return $ data ; }
docstring: Manages the "imports" directive in configuration files.
  
  @param array        $data      The current data.
  @param array|object $values    The new replacement values.
  @param array        &$imported The list of imported resources.
  
  @return array The data merged with the imported resources.
  
  @throws LogicException If a circular reference is detected.
docstring_tokens: Manages the imports directive in configuration files .