1; } /** * Get all pairs of adjacent characters within the line. * * @param string $line * * @return bool */ private static function getCharPairs($line) { $chars = str_split($line); return array_map(null, $chars, array_slice($chars, 1)); } /** * Determine if the line in the file is a comment, e.g. begins with a #. * * @param string $line * * @return bool */ private static function isComment($line) { $line = ltrim($line); return isset($line[0]) && $line[0] === '#'; } /** * Determine if the given line looks like it's setting a variable. * * @param string $line * * @return bool */ private static function isSetter($line) { return strpos($line, '=') !== false; } }