for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Remove multiple empty lines
*
* @author Tim Lochmüller
*/
namespace FRUIT\Ink\Postprocessing;
class RemoveMultipleEmptyLines implements PostprocessingInterface
{
* Run the cleanup of the empty lines
* @param string $content
* @return string
public function process($content)
return preg_replace('/\n{4,}/', "\n\n\n", $content);
}