Completed
Push — feature/issue-41 ( b8ea5e...34f0ec )
by Mikaël
23:16
created
src/File/Struct.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -644,7 +644,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/File/StructArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
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())
Please login to merge, or discard this patch.
src/Model/StructAttribute.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/File/AbstractModelFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -462,7 +462,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.