Code Duplication    Length = 5-5 lines in 2 locations

src/services/DocumentorService.php 2 locations

@@ 502-506 (lines=5) @@
499
                            ];
500
                        }
501
                    }
502
                    if (array_key_exists('query', $endpoint)) {
503
                        foreach ($endpoint['query'] as $query) {
504
                            $paths[$url][$method]['parameters'][] = $query;
505
                        }
506
                    }
507
                    if (array_key_exists('headers', $endpoint)) {
508
                        foreach ($endpoint['headers'] as $query) {
509
                            $paths[$url][$method]['parameters'][] = $query;
@@ 507-511 (lines=5) @@
504
                            $paths[$url][$method]['parameters'][] = $query;
505
                        }
506
                    }
507
                    if (array_key_exists('headers', $endpoint)) {
508
                        foreach ($endpoint['headers'] as $query) {
509
                            $paths[$url][$method]['parameters'][] = $query;
510
                        }
511
                    }
512
                    $isReturn = true;
513
                    foreach ($endpoint['objects'] as $name => $object) {
514
                        DocumentorHelper::parseObjects($paths, $dtos, $name, $endpoint, $object, $url, $method, $isReturn);