original_string: protected function prepareFiles(array $ids, array $libraries)
      {
          $prepared = array();
  
          foreach ($ids as $id) {
              if (!empty($libraries[$id]['files'])) {
                  $prepared = array_merge($prepared, $libraries[$id]['files']);
              }
          }
  
          return $prepared;
      }
code: protected function prepareFiles(array $ids, array $libraries)
      {
          $prepared = array();
  
          foreach ($ids as $id) {
              if (!empty($libraries[$id]['files'])) {
                  $prepared = array_merge($prepared, $libraries[$id]['files']);
              }
          }
  
          return $prepared;
      }
code_tokens: protected function prepareFiles ( array $ ids , array $ libraries ) { $ prepared = array ( ) ; foreach ( $ ids as $ id ) { if ( ! empty ( $ libraries [ $ id ] [ 'files' ] ) ) { $ prepared = array_merge ( $ prepared , $ libraries [ $ id ] [ 'files' ] ) ; } } return $ prepared ; }
docstring: Prepares files of the given libraries
  @param array $ids
  @param array $libraries
  @return array
docstring_tokens: Prepares files of the given libraries