Back to Patcher class

Method splitLines

protected static array
splitLines
(mixed $data)
Separate CR or CRLF lines
Parameters
  • string $data Input string
Returns
  • array The lines of the inputdestination file
Since
  • 3.0.0
Class: Patcher
Project: Joomla

Method splitLines - Source code

/**
 * Separate CR or CRLF lines
 *
 * @param   string  $data  Input string
 *
 * @return  array  The lines of the inputdestination file
 *
 * @since   3.0.0
 */
protected static function splitLines($data)
{
    return preg_split(self::SPLIT, $data);
}