private function getConfigFileContent(string $configPath) : array
    {
        // if empty just skip it
        if (!filesize($configPath)) {
            return [];
        }

        // read the file handler
        $config = file_get_contents($configPath);

        // check for linebreaks
        if (strpos($config, "\n") === false) {
            $config = [
                $config
            ];
        } else {
            $config = (array) explode("\n", $config);
        }

        return $config;
    }
private function getConfigFileContent(string $configPath) : array
    {
        // if empty just skip it
        if (!filesize($configPath)) {
            return [];
        }

        // read the file handler
        $config = file_get_contents($configPath);

        // check for linebreaks
        if (strpos($config, "\n") === false) {
            $config = [
                $config
            ];
        } else {
            $config = (array) explode("\n", $config);
        }

        return $config;
    }
private function getConfigFileContent ( string $ configPath ) : array { // if empty just skip it if ( ! filesize ( $ configPath ) ) { return [ ] ; } // read the file handler $ config = file_get_contents ( $ configPath ) ; // check for linebreaks if ( strpos ( $ config , "\n" ) === false ) { $ config = [ $ config ] ; } else { $ config = ( array ) explode ( "\n" , $ config ) ; } return $ config ; }
reads the specific config file

@param string $configPath

@return array
reads the specific config file