protected function readLinesFromFile($filePath)
    {
        // Read file into an array of lines with auto-detected line endings
        $autodetect = ini_get('auto_detect_line_endings');
        ini_set('auto_detect_line_endings', '1');
        $lines = file($filePath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
        ini_set('auto_detect_line_endings', $autodetect);
        return $lines;
    }
protected function readLinesFromFile($filePath)
    {
        // Read file into an array of lines with auto-detected line endings
        $autodetect = ini_get('auto_detect_line_endings');
        ini_set('auto_detect_line_endings', '1');
        $lines = file($filePath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
        ini_set('auto_detect_line_endings', $autodetect);
        return $lines;
    }
protected function readLinesFromFile ( $ filePath ) { // Read file into an array of lines with auto-detected line endings $ autodetect = ini_get ( 'auto_detect_line_endings' ) ; ini_set ( 'auto_detect_line_endings' , '1' ) ; $ lines = file ( $ filePath , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ) ; ini_set ( 'auto_detect_line_endings' , $ autodetect ) ; return $ lines ; }
Read lines from the file, auto detecting line endings.

@param string $filePath

@return array
Read lines from the file auto detecting line endings .