@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class ObsoleteDTEXT extends Warning |
6 | 6 | { |
7 | - const CODE = 71; |
|
7 | + const CODE = 71; |
|
8 | 8 | |
9 | - public function __construct() |
|
10 | - { |
|
11 | - $this->rfcNumber = 5322; |
|
12 | - $this->message = 'Obsolete DTEXT in domain literal'; |
|
13 | - } |
|
9 | + public function __construct() |
|
10 | + { |
|
11 | + $this->rfcNumber = 5322; |
|
12 | + $this->message = 'Obsolete DTEXT in domain literal'; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,14 +4,14 @@ |
||
4 | 4 | |
5 | 5 | class QuotedPart extends Warning |
6 | 6 | { |
7 | - const CODE = 36; |
|
7 | + const CODE = 36; |
|
8 | 8 | |
9 | - /** |
|
10 | - * @param scalar $prevToken |
|
11 | - * @param scalar $postToken |
|
12 | - */ |
|
13 | - public function __construct($prevToken, $postToken) |
|
14 | - { |
|
15 | - $this->message = "Deprecated Quoted String found between $prevToken and $postToken"; |
|
16 | - } |
|
9 | + /** |
|
10 | + * @param scalar $prevToken |
|
11 | + * @param scalar $postToken |
|
12 | + */ |
|
13 | + public function __construct($prevToken, $postToken) |
|
14 | + { |
|
15 | + $this->message = "Deprecated Quoted String found between $prevToken and $postToken"; |
|
16 | + } |
|
17 | 17 | } |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | class CFWSNearAt extends Warning |
6 | 6 | { |
7 | - const CODE = 49; |
|
7 | + const CODE = 49; |
|
8 | 8 | |
9 | - public function __construct() |
|
10 | - { |
|
11 | - $this->message = "Deprecated folding white space near @"; |
|
12 | - } |
|
9 | + public function __construct() |
|
10 | + { |
|
11 | + $this->message = "Deprecated folding white space near @"; |
|
12 | + } |
|
13 | 13 | } |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | class TLD extends Warning |
6 | 6 | { |
7 | - const CODE = 9; |
|
7 | + const CODE = 9; |
|
8 | 8 | |
9 | - public function __construct() |
|
10 | - { |
|
11 | - $this->message = "RFC5321, TLD"; |
|
12 | - } |
|
9 | + public function __construct() |
|
10 | + { |
|
11 | + $this->message = "RFC5321, TLD"; |
|
12 | + } |
|
13 | 13 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class IPV6MaxGroups extends Warning |
6 | 6 | { |
7 | - const CODE = 75; |
|
7 | + const CODE = 75; |
|
8 | 8 | |
9 | - public function __construct() |
|
10 | - { |
|
11 | - $this->message = 'Reached the maximum number of IPV6 groups allowed'; |
|
12 | - $this->rfcNumber = 5321; |
|
13 | - } |
|
9 | + public function __construct() |
|
10 | + { |
|
11 | + $this->message = 'Reached the maximum number of IPV6 groups allowed'; |
|
12 | + $this->rfcNumber = 5321; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class AddressLiteral extends Warning |
6 | 6 | { |
7 | - const CODE = 12; |
|
7 | + const CODE = 12; |
|
8 | 8 | |
9 | - public function __construct() |
|
10 | - { |
|
11 | - $this->message = 'Address literal in domain part'; |
|
12 | - $this->rfcNumber = 5321; |
|
13 | - } |
|
9 | + public function __construct() |
|
10 | + { |
|
11 | + $this->message = 'Address literal in domain part'; |
|
12 | + $this->rfcNumber = 5321; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class IPV6GroupCount extends Warning |
6 | 6 | { |
7 | - const CODE = 72; |
|
7 | + const CODE = 72; |
|
8 | 8 | |
9 | - public function __construct() |
|
10 | - { |
|
11 | - $this->message = 'Group count is not IPV6 valid'; |
|
12 | - $this->rfcNumber = 5322; |
|
13 | - } |
|
9 | + public function __construct() |
|
10 | + { |
|
11 | + $this->message = 'Group count is not IPV6 valid'; |
|
12 | + $this->rfcNumber = 5322; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class LabelTooLong extends Warning |
6 | 6 | { |
7 | - const CODE = 63; |
|
7 | + const CODE = 63; |
|
8 | 8 | |
9 | - public function __construct() |
|
10 | - { |
|
11 | - $this->message = 'Label too long'; |
|
12 | - $this->rfcNumber = 5322; |
|
13 | - } |
|
9 | + public function __construct() |
|
10 | + { |
|
11 | + $this->message = 'Label too long'; |
|
12 | + $this->rfcNumber = 5322; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,44 +4,44 @@ |
||
4 | 4 | |
5 | 5 | abstract class Warning |
6 | 6 | { |
7 | - const CODE = 0; |
|
8 | - |
|
9 | - /** |
|
10 | - * @var string |
|
11 | - */ |
|
12 | - protected $message = ''; |
|
13 | - |
|
14 | - /** |
|
15 | - * @var int |
|
16 | - */ |
|
17 | - protected $rfcNumber = 0; |
|
18 | - |
|
19 | - /** |
|
20 | - * @return string |
|
21 | - */ |
|
22 | - public function message() |
|
23 | - { |
|
24 | - return $this->message; |
|
25 | - } |
|
26 | - |
|
27 | - /** |
|
28 | - * @return int |
|
29 | - */ |
|
30 | - public function code() |
|
31 | - { |
|
32 | - return static::CODE; |
|
33 | - } |
|
34 | - |
|
35 | - /** |
|
36 | - * @return int |
|
37 | - */ |
|
38 | - public function RFCNumber() |
|
39 | - { |
|
40 | - return $this->rfcNumber; |
|
41 | - } |
|
42 | - |
|
43 | - public function __toString() |
|
44 | - { |
|
45 | - return $this->message() . " rfc: " . $this->rfcNumber . "interal code: " . static::CODE; |
|
46 | - } |
|
7 | + const CODE = 0; |
|
8 | + |
|
9 | + /** |
|
10 | + * @var string |
|
11 | + */ |
|
12 | + protected $message = ''; |
|
13 | + |
|
14 | + /** |
|
15 | + * @var int |
|
16 | + */ |
|
17 | + protected $rfcNumber = 0; |
|
18 | + |
|
19 | + /** |
|
20 | + * @return string |
|
21 | + */ |
|
22 | + public function message() |
|
23 | + { |
|
24 | + return $this->message; |
|
25 | + } |
|
26 | + |
|
27 | + /** |
|
28 | + * @return int |
|
29 | + */ |
|
30 | + public function code() |
|
31 | + { |
|
32 | + return static::CODE; |
|
33 | + } |
|
34 | + |
|
35 | + /** |
|
36 | + * @return int |
|
37 | + */ |
|
38 | + public function RFCNumber() |
|
39 | + { |
|
40 | + return $this->rfcNumber; |
|
41 | + } |
|
42 | + |
|
43 | + public function __toString() |
|
44 | + { |
|
45 | + return $this->message() . " rfc: " . $this->rfcNumber . "interal code: " . static::CODE; |
|
46 | + } |
|
47 | 47 | } |
@@ -42,6 +42,6 @@ |
||
42 | 42 | |
43 | 43 | public function __toString() |
44 | 44 | { |
45 | - return $this->message() . " rfc: " . $this->rfcNumber . "interal code: " . static::CODE; |
|
45 | + return $this->message()." rfc: ".$this->rfcNumber."interal code: ".static::CODE; |
|
46 | 46 | } |
47 | 47 | } |