* * 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:----iAJBu4x5bchSsrOBoGnrn4ptKI6pilMLgRarOWildrfayd0wb/4nGRMyQXo0IwuH4UZ2IvV8R5z9TKOrccdxLs9CBshgaT9RV6rCNL4maFLzBfdKaej/lvZbJLKeM+J4AsfB3p7dCU6cu4EDNgSMOIly5tnqfs9uVzIdj9w6Fz0nDXF1jU6PmQb62R6ztyQoJTtef5RsB0xGLArqSD1BD6dUzRn4vEuG7Ib0fYX4OR7tXc27TT/oKUfEq25AvxySPazJLRTv0swbSgOfyEPxfi33d6dCxBWCchChjx1taXjNgORRX2Xp5Xa0qCvKH+SJ4uYWQQABpvtRm1+VrFFwY4jEN7M+T7GJ8RE7iBuY69fF6Tdrf4EDsgnk1iUOB55LMszovRB2DB6D8076tZFKKUD9H42ZO/aTMUXrOiGGy4G+zhFurUbUn5CGAKeSPGNDp4Qgsuuao+5mc1l9QPrFgfZg3OYUqmNUJv6NmMko0/zKyEroIW6YZyLk+S2dPUJSu3YYs23n7ylogcZmOLaUFj/oFZWf4X8MVe1/f7qrOtBW6OeGIWYvjpXrNUldm1a0a3gVi9qwLpNSk5WYQ7JhwlHfl/Zy7OUG5CJ7rRsaYC2rF8KjbNNzyIhzqVBJiq/HeXTZEwUtDq9EyRB44xvQ1xOsztQ8ud3VcShqcb5Wwnk=----ATTACHMENT:----Mzc4MjQ5NDQwNTcxODc2NSA1MDQwNjI0NDM4NDg4MjY1IDU3NjUzNDUyNTg0NDY4Mzc=