Completed
Push — master ( 4fd734...3bd73d )
by Fabio
10:02
created
framework/Web/UI/WebControls/TSafeHtml.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Prado\Web\UI\WebControls;
13 13
 use Prado\IO\TTextWriter;
14 14
 use Prado\Prado;
15
-use Prado\TPropertyValue;
16 15
 
17 16
 /**
18 17
  * TSafeHtml class
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	 */
49 49
 	public function getConfig()
50 50
 	{
51
-		$config = $this->getViewState('Config', null);
52
-		return ($config === null) ? \HTMLPurifier_Config::createDefault() : $config;
51
+		$config=$this->getViewState('Config', null);
52
+		return ($config===null) ? \HTMLPurifier_Config::createDefault() : $config;
53 53
 	}
54 54
 
55 55
 	/**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 */
60 60
 	public function render($writer)
61 61
 	{
62
-		$htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
62
+		$htmlWriter=Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
63 63
 		parent::render($htmlWriter);
64 64
 		$writer->write($this->parseSafeHtml($htmlWriter->flush()));
65 65
 	}
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 */
72 72
 	protected function parseSafeHtml($text)
73 73
 	{
74
-		$purifier = new \HTMLPurifier($this->getConfig());
74
+		$purifier=new \HTMLPurifier($this->getConfig());
75 75
 		return $purifier->purify($text);
76 76
 	}
77 77
 }
Please login to merge, or discard this patch.