1 | <?php |
||
19 | class More extends TagAbstract |
||
20 | { |
||
21 | /** |
||
22 | * options of the more tag |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | |||
27 | protected $_optionArray = |
||
28 | [ |
||
29 | 'className' => |
||
30 | [ |
||
31 | 'more' => 'rs-link-more' |
||
32 | ], |
||
33 | 'search' => |
||
34 | [ |
||
35 | '<rs-more>' |
||
36 | ] |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * process the class |
||
41 | * |
||
42 | * @since 3.0.0 |
||
43 | * |
||
44 | * @param string $content content to be parsed |
||
45 | * @param string $route route of the content |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | |||
50 | public function process(string $content = null, string $route = null) : string |
||
78 | } |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: