@@ -46,7 +46,7 @@ public function __construct(
4646 *
4747 * @throws \ReflectionException
4848 */
49- public function normalize (ServerDoc $ doc )
49+ public function normalize (ServerDoc $ doc ) : array
5050 {
5151 return array_merge (
5252 $ this ->getMethodsExternalSchemaList ($ doc ),
@@ -63,7 +63,7 @@ public function normalize(ServerDoc $doc)
6363 *
6464 * @throws \ReflectionException
6565 */
66- protected function getMethodsExternalSchemaList (ServerDoc $ doc )
66+ protected function getMethodsExternalSchemaList (ServerDoc $ doc ) : array
6767 {
6868 $ list = [];
6969 foreach ($ doc ->getMethodList () as $ method ) {
@@ -81,7 +81,7 @@ protected function getMethodsExternalSchemaList(ServerDoc $doc)
8181 *
8282 * @throws \ReflectionException
8383 */
84- protected function getMethodErrorsExternalSchemaList (ServerDoc $ doc )
84+ protected function getMethodErrorsExternalSchemaList (ServerDoc $ doc ) : array
8585 {
8686 $ list = [];
8787 foreach ($ doc ->getMethodList () as $ method ) {
@@ -105,7 +105,7 @@ protected function getMethodErrorsExternalSchemaList(ServerDoc $doc)
105105 *
106106 * @throws \ReflectionException
107107 */
108- protected function getServerErrorsExtraSchemaList (ServerDoc $ doc )
108+ protected function getServerErrorsExtraSchemaList (ServerDoc $ doc ) : array
109109 {
110110 return array_merge (
111111 $ this ->normalizeErrorList (
@@ -154,9 +154,10 @@ protected function getMethodExternalSchemaList(MethodDoc $method) : array
154154
155155 /**
156156 * @param ServerDoc $doc
157+ *
157158 * @return array
158159 */
159- protected function getDefaultSchemaList (ServerDoc $ doc )
160+ protected function getDefaultSchemaList (ServerDoc $ doc ) : array
160161 {
161162 $ propertyList = [
162163 'code ' => [
@@ -213,7 +214,7 @@ function (ErrorDoc $errorDoc) {
213214 *
214215 * @throws \ReflectionException
215216 */
216- private function normalizeErrorList (array $ errorDocList , $ definitionType )
217+ private function normalizeErrorList (array $ errorDocList , $ definitionType ) : array
217218 {
218219 $ list = [];
219220 foreach ($ errorDocList as $ errorDoc ) {
@@ -234,7 +235,7 @@ private function normalizeErrorList(array $errorDocList, $definitionType)
234235 *
235236 * @throws \ReflectionException
236237 */
237- protected function appendAndNormalizeIfNotNull (string $ key , $ value , array $ list = [])
238+ protected function appendAndNormalizeIfNotNull (string $ key , $ value , array $ list = []) : array
238239 {
239240 if (null !== $ value ) {
240241 $ list [$ key ] = $ this ->typeDocNormalizer ->normalize ($ value );
0 commit comments