for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FluidXml;
trait FluidSaveTrait
{
public function save($file, $strip = false)
$status = \file_put_contents($file, $this->xml($strip));
if (! $status) {
throw new \Exception("The file '$file' is not writable.");
}
return $this;