@@ -12,7 +12,7 @@ |
||
12 | 12 | const OPTIONAL_HEADER = 'optional'; |
13 | 13 | const ATTRIBUTE_REQUIRED = 'wsdl:required'; |
14 | 14 | /** |
15 | - * @return TagInput|null |
|
15 | + * @return \WsdlToPhp\PackageGenerator\DomHandler\AbstractNodeHandler|null |
|
16 | 16 | */ |
17 | 17 | public function getParentInput() |
18 | 18 | { |
@@ -188,7 +188,7 @@ |
||
188 | 188 | */ |
189 | 189 | private function formatArrayForConsole($array) |
190 | 190 | { |
191 | - array_walk($array, function (&$value, $index) { |
|
191 | + array_walk($array, function(&$value, $index) { |
|
192 | 192 | $value = sprintf("%s: %s", $index, !is_array($value) ? $value : implode(', ', $value)); |
193 | 193 | }); |
194 | 194 | return $array; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | if (!is_numeric($maxOccurs)) { |
116 | 116 | return AbstractAttributeHandler::DEFAULT_OCCURENCE_VALUE; |
117 | 117 | } |
118 | - return (int) $maxOccurs; |
|
118 | + return (int)$maxOccurs; |
|
119 | 119 | } |
120 | 120 | /** |
121 | 121 | * Info at {@link https://www.w3.org/TR/xmlschema-0/#OccurrenceConstraints} |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | if (!is_numeric($minOccurs)) { |
128 | 128 | return AbstractAttributeHandler::DEFAULT_OCCURENCE_VALUE; |
129 | 129 | } |
130 | - return (int) $minOccurs; |
|
130 | + return (int)$minOccurs; |
|
131 | 131 | } |
132 | 132 | /** |
133 | 133 | * Info at {@link https://www.w3.org/TR/xmlschema-0/#OccurrenceConstraints} |
@@ -644,7 +644,7 @@ |
||
644 | 644 | } |
645 | 645 | /** |
646 | 646 | * @param PhpMethod $method |
647 | - * @return Struct |
|
647 | + * @return PhpAnnotationBlock |
|
648 | 648 | */ |
649 | 649 | protected function getStructMethodsAddToAnnotationBlock(PhpMethod $method) |
650 | 650 | { |
@@ -127,7 +127,7 @@ |
||
127 | 127 | * @param MethodContainer $methods |
128 | 128 | * @param string $name |
129 | 129 | * @param string $body |
130 | - * @param string[]|PhpFunctionParameter[] $methodParameters |
|
130 | + * @param string[] $methodParameters |
|
131 | 131 | * @return StructArray |
132 | 132 | */ |
133 | 133 | protected function addArrayMethodGenericMethod(MethodContainer $methods, $name, $body, array $methodParameters = array()) |
@@ -107,7 +107,7 @@ |
||
107 | 107 | * If this attribute contains elements then it's an array |
108 | 108 | * only if its parent, the Struct, is not itself an array, |
109 | 109 | * if the parent is an array, then it is certainly not an array too |
110 | - * @return bool |
|
110 | + * @return string |
|
111 | 111 | */ |
112 | 112 | public function isArray() |
113 | 113 | { |
@@ -462,7 +462,7 @@ |
||
462 | 462 | protected function getStructAttributeTypeGetAnnotation(StructAttributeModel $attribute = null, $returnArrayType = true) |
463 | 463 | { |
464 | 464 | $attribute = $this->getStructAttribute($attribute); |
465 | - return sprintf('%s%s%s', $this->getStructAttributeType($attribute, true), $this->useBrackets($attribute, $returnArrayType) ? '[]' : '', $attribute->isRequired() ? '': '|null'); |
|
465 | + return sprintf('%s%s%s', $this->getStructAttributeType($attribute, true), $this->useBrackets($attribute, $returnArrayType) ? '[]' : '', $attribute->isRequired() ? '' : '|null'); |
|
466 | 466 | } |
467 | 467 | /** |
468 | 468 | * @param StructAttributeModel $attribute |