-
Notifications
You must be signed in to change notification settings - Fork 7
/
consts.php
64 lines (57 loc) · 858 Bytes
/
consts.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
namespace Consts;
/**
* XML version string
* @var string
*/
const VERSION = '1.0';
/**
* XML encoding / charset
* @var string
*/
const ENCODING = 'UTF-8';
/**
* `xmlns` attribute
* @var string
*/
const XMLNS = 'http://www.w3.org/2000/svg';
/**
* Exit status if all tests passed
* @var integer
*/
const VALID = 0;
/**
* Exit status if any tests failed
* @var integer
*/
const INVALID = 1;
/**
* Attributes that are invalid
* @var Array
*/
const INVALID_ATTRS = [
'style',
['http://www.inkscape.org/namespaces/inkscape', 'version'],
];
/**
* Attributes that are required on `<svg>` elements
* @var Array
*/
const REQUIRED_ATTRS = [
'viewBox',
'xmlns',
];
/**
* Invalid `<svg>` child node tagnames
* @var Array
*/
const INVALID_TAGS = [
'image',
];
/**
* Extensions to lint
* @var Array
*/
const EXTS = [
'svg',
];