src/Generator.php
protected function scanFilesForDocumentation()
    {
        if ($this->isOpenApi()) {
            $this->swagger = \OpenApi\scan(
                $this->appDir,
                ['exclude' => $this->excludedDirs]
            );
        }

        if (! $this->isOpenApi()) {
            $this->swagger = \Swagger\scan(
                $this->appDir,
                ['exclude' => $this->excludedDirs]
            );
        }

        return $this;
    }
protected function scanFilesForDocumentation()
    {
        if ($this->isOpenApi()) {
            $this->swagger = \OpenApi\scan(
                $this->appDir,
                ['exclude' => $this->excludedDirs]
            );
        }

        if (! $this->isOpenApi()) {
            $this->swagger = \Swagger\scan(
                $this->appDir,
                ['exclude' => $this->excludedDirs]
            );
        }

        return $this;
    }
protected function scanFilesForDocumentation ( ) { if ( $ this -> isOpenApi ( ) ) { $ this -> swagger = \ OpenApi \ scan ( $ this -> appDir , [ 'exclude' => $ this -> excludedDirs ] ) ; } if ( ! $ this -> isOpenApi ( ) ) { $ this -> swagger = \ Swagger \ scan ( $ this -> appDir , [ 'exclude' => $ this -> excludedDirs ] ) ; } return $ this ; }
Scan directory and create Swagger.

@return Generator
Scan directory and create Swagger .