private function getProjectConfig()
    {
        $composerJsonPath = $this->projectDir.'/composer.json';
        if (!is_writable($composerJsonPath)) {
            return [];
        }

        return json_decode(file_get_contents($composerJsonPath), true);
    }
private function getProjectConfig()
    {
        $composerJsonPath = $this->projectDir.'/composer.json';
        if (!is_writable($composerJsonPath)) {
            return [];
        }

        return json_decode(file_get_contents($composerJsonPath), true);
    }
private function getProjectConfig ( ) { $ composerJsonPath = $ this -> projectDir . '/composer.json' ; if ( ! is_writable ( $ composerJsonPath ) ) { return [ ] ; } return json_decode ( file_get_contents ( $ composerJsonPath ) , true ) ; }
It returns the project's Composer config as a PHP array.

@return array
It returns the project s Composer config as a PHP array .