@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * @param \stdClass $definition |
| 24 | 24 | * @param string $path |
| 25 | 25 | * @param string $method |
| 26 | - * @param array $pathParameters |
|
| 26 | + * @param Parameter[] $pathParameters |
|
| 27 | 27 | */ |
| 28 | 28 | public function __construct(\stdClass $definition, string $path, string $method, array $pathParameters = []) |
| 29 | 29 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | public function apply(callable $f) |
| 51 | 51 | { |
| 52 | - $recurse = function (&$item, $parent = null, $parentAttribute = null) use ($f, &$recurse) { |
|
| 52 | + $recurse = function(&$item, $parent = null, $parentAttribute = null) use ($f, &$recurse) { |
|
| 53 | 53 | |
| 54 | 54 | foreach ($item as $attribute => &$value) { |
| 55 | 55 | if (false === $f($value, $attribute, $parent, $parentAttribute)) { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | $document = clone $document; |
| 30 | 30 | |
| 31 | - $document->apply(function ($definition, $attributeName, $parent, $parentAttributeName) { |
|
| 31 | + $document->apply(function($definition, $attributeName, $parent, $parentAttributeName) { |
|
| 32 | 32 | if (substr((string)$attributeName, 0, 1) === '/') { |
| 33 | 33 | $pathName = "{$parentAttributeName}{$attributeName}"; |
| 34 | 34 | $this->paths[$pathName] = new RamlPath($pathName, $definition); |