ashleygwinnell / Game-Jolt-PHP-Game-API

Game Jolt Game API library for PHP.
http://gamejolt.com/
7 stars 4 forks source link

"<LF> added to all trophy fields #2

Open Tricky1975 opened 6 years ago

Tricky1975 commented 6 years ago

This is a portion of the output I got which demonstrates this issue well.


$tr = Array
(
    [0] => Trophy Object
        (
            [properties:Trophy:private] => Array
                (
                    [id] => 5438"
                    [title] => Licensed to kill"
                    [difficulty] => Bronze"
                    [description] => Kill 7 creatures during one playthrough"
                    [image_url] => https://m.gjcdn.net/trophy-thumbnail/100/5438-amuc2dvr-v3.jpg"
                    [achieved] => 4 years ago"
                )

        )

    [1] => Trophy Object
        (
            [properties:Trophy:private] => Array
                (
                    [id] => 5461"
                    [title] => Are you not entertained?"
                    [difficulty] => Bronze"
                    [description] => 250 kills in one playthrough"
                    [image_url] => https://m.gjcdn.net/trophy-thumbnail/100/5461-buq3zesj-v3.jpg"
                    [achieved] => 4 years ago"
                )

        )
)
ashleygwinnell commented 6 years ago

Can't test currently as haven't the set up for it any more, but might be an easy fix on this line. https://github.com/ashleygwinnell/Game-Jolt-PHP-Game-API/blob/047c468f9babd3544723b9524e439bb0ae37cb3a/GameJoltGameAPI.class.php#L118

Tricky1975 commented 6 years ago

I was considering to try to set up a pull request when I got more time in order to take care of this. I've been studying your code and it doesn't look that complicated :)