protected function getTheCodeFromTheFile(string $file, int $lineNumber, int $currentLine = 0): array
    {
        $handle = fopen($file, "r");

        $linesOfCode = [];

        while (!feof($handle)) {
            $currentLine++;

            $line = fgets($handle);

            if ($line === false) {
                break;
            }

            if (($currentLine - $lineNumber) > -static::NUMBER_OF_LINES_TO_DISPLAY && ($currentLine - $lineNumber) < static::NUMBER_OF_LINES_TO_DISPLAY) {
                $linesOfCode[$currentLine] = $line;
            }
        }

        fclose($handle);

        return $linesOfCode;
    }