src/Util/FileSystem.php
public function filePutContents($filePath, $data)
    {
        $bytesWritten = @file_put_contents($filePath, $data);
        if ($bytesWritten === false) {
            throw new FileSystemException('File '.$filePath.' could not be written');
        }
        return true;
    }
public function filePutContents($filePath, $data)
    {
        $bytesWritten = @file_put_contents($filePath, $data);
        if ($bytesWritten === false) {
            throw new FileSystemException('File '.$filePath.' could not be written');
        }
        return true;
    }
public function filePutContents ( $ filePath , $ data ) { $ bytesWritten = @ file_put_contents ( $ filePath , $ data ) ; if ( $ bytesWritten === false ) { throw new FileSystemException ( 'File ' . $ filePath . ' could not be written' ) ; } return true ; }
write to a file

@param string $filePath The path of the file
@param string $data     The contents of the file

@return string The contents of the file
write to a file