Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
26 | trait Mailcode_Traits_Commands_Validation_URLEncode |
||
27 | { |
||
28 | /** |
||
29 | * @var Mailcode_Parser_Statement_Tokenizer_Token_Keyword|NULL |
||
30 | */ |
||
31 | protected $urlencodeToken; |
||
32 | |||
33 | protected function validateSyntax_urlencode() : void |
||
34 | { |
||
35 | $keywords = $this->params->getInfo()->getKeywords(); |
||
36 | |||
37 | foreach($keywords as $keyword) |
||
38 | { |
||
39 | if($keyword->isURLEncoded()) |
||
40 | { |
||
41 | $this->urlencodeToken = $keyword; |
||
42 | |||
43 | $this->setURLEncoding(true); |
||
|
|||
44 | |||
45 | break; |
||
46 | } |
||
47 | } |
||
48 | } |
||
49 | |||
50 | public function getURLEncodeToken() : ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword |
||
53 | } |
||
54 | } |
||
55 |