PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / library / HTMLPurifier / HTMLModule / Tidy / Strict.php
blob803c44fabd5ac4e33759de89eed50a5c069d5b44
1 <?php
3 class HTMLPurifier_HTMLModule_Tidy_Strict extends HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4
5 /**
6 * @type string
7 */
8 public $name = 'Tidy_Strict';
10 /**
11 * @type string
13 public $defaultLevel = 'light';
15 /**
16 * @return array
18 public function makeFixes()
20 $r = parent::makeFixes();
21 $r['blockquote#content_model_type'] = 'strictblockquote';
22 return $r;
25 /**
26 * @type bool
28 public $defines_child_def = true;
30 /**
31 * @param HTMLPurifier_ElementDef $def
32 * @return HTMLPurifier_ChildDef_StrictBlockquote
34 public function getChildDef($def)
36 if ($def->content_model_type != 'strictblockquote') {
37 return parent::getChildDef($def);
39 return new HTMLPurifier_ChildDef_StrictBlockquote($def->content_model);
43 // vim: et sw=4 sts=4