Invisnik\LaravelSteamAuth\SteamAuth::parseResults PHP Метод

parseResults() публичный Метод

Parse openID reponse to fluent object
public parseResults ( string $results ) : Illuminate\Support\Fluent
$results string openid reponse body
Результат Illuminate\Support\Fluent
    public function parseResults($results)
    {
        $parsed = [];
        $lines = explode("\n", $results);
        foreach ($lines as $line) {
            if (empty($line)) {
                continue;
            }
            $line = explode(':', $line, 2);
            $parsed[$line[0]] = $line[1];
        }
        return new Fluent($parsed);
    }