@@ -3,13 +3,11 @@ |
||
3 | 3 | |
4 | 4 | require __DIR__ . '/../vendor/autoload.php'; |
5 | 5 | |
6 | -use PhpParser\BuilderFactory; |
|
7 | 6 | use PhpParser\Comment; |
8 | 7 | use PhpParser\Node; |
9 | -use PhpParser\Node\Expr; |
|
10 | -use PhpParser\Node\Stmt; |
|
11 | 8 | use PhpParser\NodeTraverser; |
12 | 9 | use PhpParser\NodeVisitor\NameResolver; |
10 | +use PhpParser\Node\Stmt; |
|
13 | 11 | use PhpParser\ParserFactory; |
14 | 12 | use PhpParser\PrettyPrinter; |
15 | 13 |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | /** |
13 | 13 | * constructor |
14 | 14 | * |
15 | - * @param ParserInterface $expressionParser parser for unserialize expression |
|
15 | + * @param xKerman_Restricted_ParserInterface $expressionParser parser for unserialize expression |
|
16 | 16 | */ |
17 | 17 | public function __construct(xKerman_Restricted_ParserInterface $expressionParser) |
18 | 18 | { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * parse given `$source` as PHP serialized array |
23 | 23 | * |
24 | - * @param Source $source parser input |
|
24 | + * @param xKerman_Restricted_Source $source parser input |
|
25 | 25 | * @param string $args array length |
26 | 26 | * @return array |
27 | 27 | * @throws UnserializeFailedException |
@@ -8,7 +8,7 @@ |
||
8 | 8 | /** |
9 | 9 | * parse given `$source` as PHP serialized boolean |
10 | 10 | * |
11 | - * @param Source $source parser input |
|
11 | + * @param xKerman_Restricted_Source $source parser input |
|
12 | 12 | * @param string $args boolean information |
13 | 13 | * @return array |
14 | 14 | * @throws UnserializeFailedException |
@@ -15,6 +15,6 @@ |
||
15 | 15 | */ |
16 | 16 | public function handle(xKerman_Restricted_Source $source, $args) |
17 | 17 | { |
18 | - return array((bool) $args, $source); |
|
18 | + return array((bool)$args, $source); |
|
19 | 19 | } |
20 | 20 | } |
21 | 21 | \ No newline at end of file |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * parse given `$source` as escaped string |
12 | 12 | * |
13 | - * @param Source $source parser input |
|
13 | + * @param xKerman_Restricted_Source $source parser input |
|
14 | 14 | * @param string $args string length |
15 | 15 | * @return array |
16 | 16 | * @throws UnserializeFailedException |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * parse given `$source` as PHP serialized value |
19 | 19 | * |
20 | - * @param Source $source parser input |
|
20 | + * @param xKerman_Restricted_Source $source parser input |
|
21 | 21 | * @return array |
22 | 22 | * @throws UnserializeFailedException |
23 | 23 | */ |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * parse given `$source` as PHP serialized float number |
19 | 19 | * |
20 | - * @param Source $source parser input |
|
20 | + * @param xKerman_Restricted_Source $source parser input |
|
21 | 21 | * @param string $args float value |
22 | 22 | * @return array |
23 | 23 | * @throws UnserializeFailedException |
@@ -8,7 +8,7 @@ |
||
8 | 8 | /** |
9 | 9 | * parse given `$source` |
10 | 10 | * |
11 | - * @param Source $source parser input |
|
11 | + * @param xKerman_Restricted_Source $source parser input |
|
12 | 12 | * @param string|null $args information for parsing |
13 | 13 | * @return array parse result |
14 | 14 | * @throws UnserializeFailedException |
@@ -8,7 +8,7 @@ |
||
8 | 8 | /** |
9 | 9 | * parse given `$source` as PHP serialized integer |
10 | 10 | * |
11 | - * @param Source $source parser input |
|
11 | + * @param xKerman_Restricted_Source $source parser input |
|
12 | 12 | * @param string $args integer value |
13 | 13 | * @return array |
14 | 14 | * @throws UnserializeFailedException |
@@ -8,7 +8,7 @@ |
||
8 | 8 | /** |
9 | 9 | * parse given `$source` as PHP serialized null value |
10 | 10 | * |
11 | - * @param Source $source parser input |
|
11 | + * @param xKerman_Restricted_Source $source parser input |
|
12 | 12 | * @param null $args null |
13 | 13 | * @return array parse result |
14 | 14 | * @throws UnserializeFailedException |