Completed
Push — master ( 15f476...52f8b5 )
by Alex
07:26
created

StringRouterType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
1
<?php
2
namespace Mezon\Router\Types;
3
4
/**
5
 * Default string type for router
6
 *
7
 * @author gdever
8
 */
9
class StringRouterType
10
{
11
12
    /**
13
     * Method handles string type
14
     *
15
     * @param string $value
16
     *            value to be parsed
17
     * @return bool was the value parsed
18
     */
19
    public static function handle(string &$value): bool
20
    {
21
        $value = htmlspecialchars($value, ENT_QUOTES);
22
23
        return true;
24
    }
25
}
26