src/Commands/RenameCommand.php
private function getComposer(): string
    {
        $filePath = $this->app->basePath('composer.json');

        if (! File::exists($filePath)) {
            $this->app->abort(400, 'The file composer.json not found');
        }

        return File::get($filePath);
    }
private function getComposer(): string
    {
        $filePath = $this->app->basePath('composer.json');

        if (! File::exists($filePath)) {
            $this->app->abort(400, 'The file composer.json not found');
        }

        return File::get($filePath);
    }
private function getComposer ( ) : string { $ filePath = $ this -> app -> basePath ( 'composer.json' ) ; if ( ! File :: exists ( $ filePath ) ) { $ this -> app -> abort ( 400 , 'The file composer.json not found' ) ; } return File :: get ( $ filePath ) ; }
Returns the composer.json file contents.
Returns the composer . json file contents .