original_string: protected function prepareListFile(array &$list)
      {
          foreach ($list as &$item) {
  
              $path = strval(str_replace("\0", "", $item['path']));
              $item['url'] = '';
  
              if ($path && file_exists(GC_DIR_FILE . '/' . $path)) {
                  $item['url'] = $this->url->file($item['path']);
              }
          }
      }
code: protected function prepareListFile(array &$list)
      {
          foreach ($list as &$item) {
  
              $path = strval(str_replace("\0", "", $item['path']));
              $item['url'] = '';
  
              if ($path && file_exists(GC_DIR_FILE . '/' . $path)) {
                  $item['url'] = $this->url->file($item['path']);
              }
          }
      }
code_tokens: protected function prepareListFile ( array & $ list ) { foreach ( $ list as & $ item ) { $ path = strval ( str_replace ( "\0" , "" , $ item [ 'path' ] ) ) ; $ item [ 'url' ] = '' ; if ( $ path && file_exists ( GC_DIR_FILE . '/' . $ path ) ) { $ item [ 'url' ] = $ this -> url -> file ( $ item [ 'path' ] ) ; } } }
docstring: Prepare an array of files
  @param array $list
docstring_tokens: Prepare an array of files