original_string: public function getFiles($ids)
      {
          settype($ids, 'array');
  
          $libraries = $this->getList();
          $sorted = $this->graph->sort($ids, $libraries);
  
          if (empty($sorted)) {
              return array();
          }
  
          return $this->prepareFiles($sorted, $libraries);
      }
code: public function getFiles($ids)
      {
          settype($ids, 'array');
  
          $libraries = $this->getList();
          $sorted = $this->graph->sort($ids, $libraries);
  
          if (empty($sorted)) {
              return array();
          }
  
          return $this->prepareFiles($sorted, $libraries);
      }
code_tokens: public function getFiles ( $ ids ) { settype ( $ ids , 'array' ) ; $ libraries = $ this -> getList ( ) ; $ sorted = $ this -> graph -> sort ( $ ids , $ libraries ) ; if ( empty ( $ sorted ) ) { return array ( ) ; } return $ this -> prepareFiles ( $ sorted , $ libraries ) ; }
docstring: Returns an array of sorted files for the given library IDs
  according to their dependencies
  @param string|array $ids
  @return array
docstring_tokens: Returns an array of sorted files for the given library IDs according to their dependencies