src/Console/Command/ConfigureCommand.php
protected function guessBinDir(): string
    {
        $defaultBinDir = $this->config->getBinDir();
        if (!$this->composer()->hasConfiguration()) {
            return $defaultBinDir;
        }

        $config = $this->composer()->getConfiguration();
        if (!$config->has('bin-dir')) {
            return $defaultBinDir;
        }

        return $config->get('bin-dir', Config::RELATIVE_PATHS);
    }
protected function guessBinDir(): string
    {
        $defaultBinDir = $this->config->getBinDir();
        if (!$this->composer()->hasConfiguration()) {
            return $defaultBinDir;
        }

        $config = $this->composer()->getConfiguration();
        if (!$config->has('bin-dir')) {
            return $defaultBinDir;
        }

        return $config->get('bin-dir', Config::RELATIVE_PATHS);
    }
protected function guessBinDir ( ) : string { $ defaultBinDir = $ this -> config -> getBinDir ( ) ; if ( ! $ this -> composer ( ) -> hasConfiguration ( ) ) { return $ defaultBinDir ; } $ config = $ this -> composer ( ) -> getConfiguration ( ) ; if ( ! $ config -> has ( 'bin-dir' ) ) { return $ defaultBinDir ; } return $ config -> get ( 'bin-dir' , Config :: RELATIVE_PATHS ) ; }
Make a guess to the bin dir.
Make a guess to the bin dir .