protected function findGApiOAuthSecretFileValue(InputInterface $input, OutputInterface $output): ?string
    {
        $needToParseConfigFile = false;

        $gApiOAuthSecretFile = $this->getGApiOAuthSecretFileOption($input);
        if ($gApiOAuthSecretFile === null) {
            $needToParseConfigFile = true;
            if ($output->isVerbose()) {
                $output->writeln('The client secret file path is not specified, will try to get the path from a configuration file');
            }
        }


        // If the API file paths are not specified, find and read a configuration file
        if ($needToParseConfigFile) {
            if(!$this->isGApiAuthConfigOptionsFindable($output)){
                return null;
            }

            if ($gApiOAuthSecretFile === null) {

                if ($this->findGApiOAuthSecretFileConfig($output)) {
                    $gApiOAuthSecretFile = $this->findGApiOAuthSecretFileConfig($output);
                } else {
                    $this->writeError($output, 'The client secret file is specified neither in the CLI arguments nor in'
                        . ' the configuration file');
                    return null;
                }
            }

        }

        return $gApiOAuthSecretFile;
    }
protected function findGApiOAuthSecretFileValue(InputInterface $input, OutputInterface $output): ?string
    {
        $needToParseConfigFile = false;

        $gApiOAuthSecretFile = $this->getGApiOAuthSecretFileOption($input);
        if ($gApiOAuthSecretFile === null) {
            $needToParseConfigFile = true;
            if ($output->isVerbose()) {
                $output->writeln('The client secret file path is not specified, will try to get the path from a configuration file');
            }
        }


        // If the API file paths are not specified, find and read a configuration file
        if ($needToParseConfigFile) {
            if(!$this->isGApiAuthConfigOptionsFindable($output)){
                return null;
            }

            if ($gApiOAuthSecretFile === null) {

                if ($this->findGApiOAuthSecretFileConfig($output)) {
                    $gApiOAuthSecretFile = $this->findGApiOAuthSecretFileConfig($output);
                } else {
                    $this->writeError($output, 'The client secret file is specified neither in the CLI arguments nor in'
                        . ' the configuration file');
                    return null;
                }
            }

        }

        return $gApiOAuthSecretFile;
    }
protected function findGApiOAuthSecretFileValue ( InputInterface $ input , OutputInterface $ output ) : ? string { $ needToParseConfigFile = false ; $ gApiOAuthSecretFile = $ this -> getGApiOAuthSecretFileOption ( $ input ) ; if ( $ gApiOAuthSecretFile === null ) { $ needToParseConfigFile = true ; if ( $ output -> isVerbose ( ) ) { $ output -> writeln ( 'The client secret file path is not specified, will try to get the path from a configuration file' ) ; } } // If the API file paths are not specified, find and read a configuration file if ( $ needToParseConfigFile ) { if ( ! $ this -> isGApiAuthConfigOptionsFindable ( $ output ) ) { return null ; } if ( $ gApiOAuthSecretFile === null ) { if ( $ this -> findGApiOAuthSecretFileConfig ( $ output ) ) { $ gApiOAuthSecretFile = $ this -> findGApiOAuthSecretFileConfig ( $ output ) ; } else { $ this -> writeError ( $ output , 'The client secret file is specified neither in the CLI arguments nor in' . ' the configuration file' ) ; return null ; } } } return $ gApiOAuthSecretFile ; }
Attempts to find GApiOAuthSecretFile from option or config.

@param InputInterface $input
@param OutputInterface $output
@return string|null If the input is incorrect, null is returned. Otherwise an string is returned.
Attempts to find GApiOAuthSecretFile from option or config .