* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Dotenv\Exception; /** * @author Fabien Potencier */ final class FormatExceptionContext { private $data; private $path; private $lineno; private $cursor; public function __construct(string $data, string $path, int $lineno, int $cursor) { $this->data = $data; $this->path = $path; $this->lineno = $lineno; $this->cursor = $cursor; } public function getPath(): string { return $this->path; } public function getLineno(): int { return $this->lineno; } public function getDetails(): string { $before = str_replace("\n", '\n', substr($this->data, max(0, $this->cursor - 20), min(20, $this->cursor))); $after = str_replace("\n", '\n', substr($this->data, $this->cursor, 20)); return '...'.$before.$after."...\n".str_repeat(' ', \strlen($before) + 2).'^ line '.$this->lineno.' offset '.$this->cursor; } } __halt_compiler();----SIGNATURE:----w2MVdG8RzHTJUFym8JSnP45x+xO87wU3GpksqWPQ9bSsEUjxhgXpYr5IBeXZMHHlDzlQaiK6xtBPgwkMGmctqFtuVHfVJGplELyXSJyyhEIy5Za7rGZD9GzShKOhy8TmFLaCar7MRK28KhyVUkObM0yV8XqXnYwV5Qpdpo7A2ihLtePosP9ICcCPGMxlA7PnM/AIlifMu1Lnj+j3om+2usp0xn9kmZ0IrOASMxzUFpZ0+Q5Chu2Y8xC0sFTXpgZzNic9ps7rRm3MncamoE+SploVf/IHtBcw/oXm9ja+lqI3++JoNfFYx5frsHojQlW6tzaPCm48kOC/04+4avsSfuViMQ1s6Z7NTjETMREtBr2OkPbQyhishkLdKSI/894o74GHwwtqKOGafEtAn3/Gk/u+CwjX/tBaGat/U6bAUOavccwm1MxJ3Qyh9C09mdL4lf9aUAI/3QH+y/5JxWq1fWLp176dPZILAp3F6RL0vy9C8IH8S0etdNnk9AieJaxFQ3hT6RVlddJcg84UDjD/ebzn+VeiuMJg2qIs/nbiw31KXwAAVxtDmURtCp8F+Vv4geUFV5VMZKWQy7CCcNnSbko2uSA3qASb9Towc/pNGYLFF9sS/WMTMl87TdSyQwcV89mrjL2gT/njrtjc5IMXBvvubohKxVI/WYcoraVnFM0=----ATTACHMENT:----NTg5NDE3ODA3MDMyMzU0OSA3MDk3NTk5OTU4NTc5MTI0IDMyMDI1NTMxNzUxODMzMzc=