@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * @param string $routeName |
70 | - * @param \PowerRoute\Common\TransactionData $transactionData |
|
70 | + * @param TransactionData $transactionData |
|
71 | 71 | */ |
72 | 72 | public function execute($routeName, TransactionData $transactionData) |
73 | 73 | { |
@@ -83,6 +83,9 @@ discard block |
||
83 | 83 | } |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param ServerRequestInterface $request |
|
88 | + */ |
|
86 | 89 | private function evaluateCondition($route, $request) |
87 | 90 | { |
88 | 91 | if ($route[static::CONFIG_NODE_CONDITION]) { |
@@ -101,6 +104,9 @@ discard block |
||
101 | 104 | return true; |
102 | 105 | } |
103 | 106 | |
107 | + /** |
|
108 | + * @param boolean $matched |
|
109 | + */ |
|
104 | 110 | private function getActionsToRun($route, $matched) |
105 | 111 | { |
106 | 112 | if ($matched) { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | return preg_replace_callback( |
22 | 22 | '/\{\{\s*(var|uri|get|post|header|cookie|method)(?:\.([a-z0-9-_]+))?\s*\}\}/i', |
23 | - function ($matches) use ($transactiondata) { |
|
23 | + function($matches) use ($transactiondata) { |
|
24 | 24 | return $this->getValueFromPlaceholder( |
25 | 25 | $matches[1], |
26 | 26 | isset($matches[2]) ? $matches[2] : null, |
@@ -9,6 +9,6 @@ |
||
9 | 9 | public function getValue(ServerRequestInterface $request) |
10 | 10 | { |
11 | 11 | $array = $request->getCookieParams(); |
12 | - return isset($array[$this->argument])? $array[$this->argument] : null; |
|
12 | + return isset($array[$this->argument]) ? $array[$this->argument] : null; |
|
13 | 13 | } |
14 | 14 | } |
@@ -9,6 +9,6 @@ |
||
9 | 9 | public function getValue(ServerRequestInterface $request) |
10 | 10 | { |
11 | 11 | $array = $request->getQueryParams(); |
12 | - return isset($array[$this->argument])? $array[$this->argument] : null; |
|
12 | + return isset($array[$this->argument]) ? $array[$this->argument] : null; |
|
13 | 13 | } |
14 | 14 | } |