@@ -84,10 +84,10 @@ |
||
84 | 84 | $request = $this->getRequest(); |
85 | 85 | $data = $this->params()->fromPost(); |
86 | 86 | $match = false; |
87 | - if (isset($data['method']) && !empty($data['method']) && isset($data['url']) && !empty($data['url'])) { |
|
88 | - $match = $this->routeMatcher->match($data['method'], $data['url']); |
|
87 | + if (isset($data[ 'method' ]) && !empty($data[ 'method' ]) && isset($data[ 'url' ]) && !empty($data[ 'url' ])) { |
|
88 | + $match = $this->routeMatcher->match($data[ 'method' ], $data[ 'url' ]); |
|
89 | 89 | } |
90 | 90 | |
91 | - return new JsonModel(['match' => $match]); |
|
91 | + return new JsonModel([ 'match' => $match ]); |
|
92 | 92 | } |
93 | 93 | } |