From 7b0931fb5bcc5fdf75bd0b8202bd992c388997e7 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Tue, 17 Jun 2014 09:32:43 +0200 Subject: PSR-2 formatting --- src/HTML5.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/HTML5.php') diff --git a/src/HTML5.php b/src/HTML5.php index 959c3d2..16187df 100644 --- a/src/HTML5.php +++ b/src/HTML5.php @@ -26,7 +26,7 @@ class HTML5 */ private $options = array( // If the serializer should encode all entities. - 'encode_entities' => FALSE + 'encode_entities' => false ); private $errors = array(); @@ -158,7 +158,7 @@ class HTML5 public function parse(\Masterminds\HTML5\Parser\InputStream $input) { $this->errors = array(); - $events = new DOMTreeBuilder(FALSE, $this->options); + $events = new DOMTreeBuilder(false, $this->options); $scanner = new Scanner($input); $parser = new Tokenizer($scanner, $events); @@ -181,7 +181,7 @@ class HTML5 */ public function parseFragment(\Masterminds\HTML5\Parser\InputStream $input) { - $events = new DOMTreeBuilder(TRUE, $this->options); + $events = new DOMTreeBuilder(true, $this->options); $scanner = new Scanner($input); $parser = new Tokenizer($scanner, $events); @@ -200,15 +200,15 @@ class HTML5 * @param array $options * Configuration options when serializing the DOM. These include: * - encode_entities: Text written to the output is escaped by default and not all - * entities are encoded. If this is set to TRUE all entities will be encoded. - * Defaults to FALSE. + * entities are encoded. If this is set to true all entities will be encoded. + * Defaults to false. */ public function save($dom, $file, $options = array()) { - $close = TRUE; + $close = true; if (is_resource($file)) { $stream = $file; - $close = FALSE; + $close = false; } else { $stream = fopen($file, 'w'); } @@ -231,8 +231,8 @@ class HTML5 * @param array $options * Configuration options when serializing the DOM. These include: * - encode_entities: Text written to the output is escaped by default and not all - * entities are encoded. If this is set to TRUE all entities will be encoded. - * Defaults to FALSE. + * entities are encoded. If this is set to true all entities will be encoded. + * Defaults to false. * * @return string A HTML5 documented generated from the DOM. */ -- cgit v1.2.3