<commit_before><?php

namespace Sparkling\AdyenBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;

class NotificationController extends Controller
{
    public function serverAction()
    {
	    ini_set("soap.wsdl_cache_enabled", "0");

        $server = new \SoapServer(__DIR__.'/../Resources/wsdl/test/Notification.wsdl');
        $server->setObject($this->get('adyen.notification'));

        $response = new Response();
        $response->headers->set('Content-Type', 'text/xml; charset=ISO-8859-1');

        ob_start();
        $server->handle();
        $response->setContent(ob_get_clean());

        return $response;
    }
}<commit_msg>Removed error with ob_get_clean() in NotificationController<commit_after><?php

namespace Sparkling\AdyenBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;

class NotificationController extends Controller
{
	public function serverAction()
	{
		ini_set("soap.wsdl_cache_enabled", "0");
	    
		$server = new \SoapServer(__DIR__.'/../Resources/wsdl/test/Notification.wsdl');
		$server->setObject($this->get('adyen.notification'));
	    
		$response = new Response();
	    
		ob_start();
		$server->handle();
		$content = @ob_get_clean();
	    
		if($content)
		{
			$response->headers->set('Content-Type', 'text/xml; charset=ISO-8859-1');
			$response->setContent($content);
		}
		else $response->setContent("Adyen SOAP Notification server");
	    
		return $response;
	}
}
{'fraction_non_alphanumeric': 0.14824281150159743, 'fraction_numerical': 0.0076677316293929714, 'mean_word_length': 4.117647058823529, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6422300', 'n_tokens_mistral': 513, 'n_tokens_neox': 466, 'n_words': 75}