src/Jackiedo/LogReader/LogReader.php
protected function getLogFileList($forceName = null)
    {
        $path = $this->getLogPath();

        if (is_dir($path)) {

            /*
             * Matches files in the log directory with the special name'
             */
            $logPath = sprintf('%s%s%s', $path, DIRECTORY_SEPARATOR, $this->getLogFilename());

            /*
             * Force matches all files in the log directory'
             */
            if (!is_null($forceName)) {
                $logPath = sprintf('%s%s%s', $path, DIRECTORY_SEPARATOR, $forceName);
            }

            return glob($logPath, GLOB_BRACE);
        }

        return false;
    }
protected function getLogFileList($forceName = null)
    {
        $path = $this->getLogPath();

        if (is_dir($path)) {

            /*
             * Matches files in the log directory with the special name'
             */
            $logPath = sprintf('%s%s%s', $path, DIRECTORY_SEPARATOR, $this->getLogFilename());

            /*
             * Force matches all files in the log directory'
             */
            if (!is_null($forceName)) {
                $logPath = sprintf('%s%s%s', $path, DIRECTORY_SEPARATOR, $forceName);
            }

            return glob($logPath, GLOB_BRACE);
        }

        return false;
    }
protected function getLogFileList ( $ forceName = null ) { $ path = $ this -> getLogPath ( ) ; if ( is_dir ( $ path ) ) { /*
             * Matches files in the log directory with the special name'
             */ $ logPath = sprintf ( '%s%s%s' , $ path , DIRECTORY_SEPARATOR , $ this -> getLogFilename ( ) ) ; /*
             * Force matches all files in the log directory'
             */ if ( ! is_null ( $ forceName ) ) { $ logPath = sprintf ( '%s%s%s' , $ path , DIRECTORY_SEPARATOR , $ forceName ) ; } return glob ( $ logPath , GLOB_BRACE ) ; } return false ; }
Returns an array of log file paths.

@param  null|string  $forceName

@return bool|array
Returns an array of log file paths .