public function init()
    {
        $content = array();
        foreach ($this->request->files as $file) {
            $cacheFile = $this->generateCacheFile($file);

            if (! $fileContent = $this->checkCache($file, $cacheFile)) {
                $this->setupFile($file, $cacheFile);
                $fileContent = $this->getFileContent($file, $cacheFile);
            }

            $content[] = $this->afterGetFileContent($fileContent);
        }

        $this->content = implode("\n", $content);
    }
public function init()
    {
        $content = array();
        foreach ($this->request->files as $file) {
            $cacheFile = $this->generateCacheFile($file);

            if (! $fileContent = $this->checkCache($file, $cacheFile)) {
                $this->setupFile($file, $cacheFile);
                $fileContent = $this->getFileContent($file, $cacheFile);
            }

            $content[] = $this->afterGetFileContent($fileContent);
        }

        $this->content = implode("\n", $content);
    }
public function init ( ) { $ content = array ( ) ; foreach ( $ this -> request -> files as $ file ) { $ cacheFile = $ this -> generateCacheFile ( $ file ) ; if ( ! $ fileContent = $ this -> checkCache ( $ file , $ cacheFile ) ) { $ this -> setupFile ( $ file , $ cacheFile ) ; $ fileContent = $ this -> getFileContent ( $ file , $ cacheFile ) ; } $ content [ ] = $ this -> afterGetFileContent ( $ fileContent ) ; } $ this -> content = implode ( "\n" , $ content ) ; }
Process all files in the request and set the content
Process all files in the request and set the content