sources/OneFileGeneratorCommand.php
protected function generate(FileGenerator $generator)
    {
        $fqcn = $this->convertToFullQualifyClassName($this->getNameInput());

        $path = $this->getRelativePath($fqcn).'.php';

        if ($generator->exists($path)) {
            $this->error($this->type.' already exists!');

            return false;
        }

        return $this->generateFile($generator, $path, $fqcn);
    }
protected function generate(FileGenerator $generator)
    {
        $fqcn = $this->convertToFullQualifyClassName($this->getNameInput());

        $path = $this->getRelativePath($fqcn).'.php';

        if ($generator->exists($path)) {
            $this->error($this->type.' already exists!');

            return false;
        }

        return $this->generateFile($generator, $path, $fqcn);
    }
protected function generate ( FileGenerator $ generator ) { $ fqcn = $ this -> convertToFullQualifyClassName ( $ this -> getNameInput ( ) ) ; $ path = $ this -> getRelativePath ( $ fqcn ) . '.php' ; if ( $ generator -> exists ( $ path ) ) { $ this -> error ( $ this -> type . ' already exists!' ) ; return false ; } return $ this -> generateFile ( $ generator , $ path , $ fqcn ) ; }
Generate files.

@return bool
Generate files .