@@ 5-24 (lines=20) @@ | ||
2 | ||
3 | namespace ArjanSchouten\HtmlMinifier\Repositories; |
|
4 | ||
5 | class HtmlBooleanAttributeRepository extends AbstractRepository |
|
6 | { |
|
7 | protected static $attributes; |
|
8 | ||
9 | /** |
|
10 | * Get the html boolean attributes. |
|
11 | * |
|
12 | * @throws \ArjanSchouten\HtmlMinifier\Exception\FileNotFoundException |
|
13 | * |
|
14 | * @return \Illuminate\Support\Collection |
|
15 | */ |
|
16 | public function getAttributes() |
|
17 | { |
|
18 | if (self::$attributes === null) { |
|
19 | self::$attributes = $this->loadJson($this->resource('HtmlBooleanAttributes.json'))->attributes; |
|
20 | } |
|
21 | ||
22 | return self::$attributes; |
|
23 | } |
|
24 | } |
|
25 |
@@ 5-24 (lines=20) @@ | ||
2 | ||
3 | namespace ArjanSchouten\HtmlMinifier\Repositories; |
|
4 | ||
5 | class OptionalElementsRepository extends AbstractRepository |
|
6 | { |
|
7 | protected static $elements; |
|
8 | ||
9 | /** |
|
10 | * Get the optional html elments. |
|
11 | * |
|
12 | * @throws \ArjanSchouten\HtmlMinifier\Exception\FileNotFoundException |
|
13 | * |
|
14 | * @return mixed |
|
15 | */ |
|
16 | public function getElements() |
|
17 | { |
|
18 | if (self::$elements === null) { |
|
19 | self::$elements = $this->loadJson($this->resource('OptionalElements.json'))->elements; |
|
20 | } |
|
21 | ||
22 | return self::$elements; |
|
23 | } |
|
24 | } |
|
25 |