<commit_before><?php

namespace TheTwelve\Foursquare;

class PhotosGateway extends EndpointGateway
{
	/**
     * Check a user to a photo, and maybe to a event too.
     * @param string $venueId
     * @return object https://developer.foursquare.com/docs/responses/photo
     * @see https://developer.foursquare.com/docs/photos/photos
     */
    public function getPhoto($photoId)
    {
        $resource = '/photos/' . $venueId;

        $response = $this->makeApiRequest($resource);

        return $response->photo;
    }

	/**
     * Check a user to a venue, and maybe to a event too.
     * @param string $venueId
     * @return object https://developer.foursquare.com/docs/responses/photo
     * @see https://developer.foursquare.com/docs/photos/add
     */
    public function addPhoto($options)
    {
        $resource = '/photos/add';

        $response = $this->makeApiRequest($resource, $options, 'POST');

        return $response->photo;
    }
}<commit_msg>fix variable name bug in PhotosGateway<commit_after><?php

namespace TheTwelve\Foursquare;

class PhotosGateway extends EndpointGateway
{

	/**
     * Check a user to a photo, and maybe to a event too.
     * @param string $venueId
     * @return object https://developer.foursquare.com/docs/responses/photo
     * @see https://developer.foursquare.com/docs/photos/photos
     */
    public function getPhoto($photoId)
    {

        $resource = '/photos/' . $photoId;
        $response = $this->makeApiRequest($resource);
        return $response->photo;

    }

	/**
     * Check a user to a venue, and maybe to a event too.
     * @param string $venueId
     * @return object https://developer.foursquare.com/docs/responses/photo
     * @see https://developer.foursquare.com/docs/photos/add
     */
    public function addPhoto($options)
    {

        $resource = '/photos/add';
        $response = $this->makeApiRequest($resource, $options, 'POST');
        return $response->photo;

    }

}
{'fraction_non_alphanumeric': 0.13014743263853584, 'fraction_numerical': 0.0, 'mean_word_length': 2.657992565055762, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3301711', 'n_tokens_mistral': 610, 'n_tokens_neox': 583, 'n_words': 141}