<commit_before><?php
/**
 * Created by PhpStorm.
 * User: rafael
 * Date: 03/10/17
 * Time: 11:59
 */

namespace GuiaDoSoftwareSdk\Http\Resources;


use GuiaDoSoftwareSdk\Http\Requester;
use GuiaDoSoftwareSdk\Domains\Media as MediaDomain;

class Media extends Requester
{
    public function add(MediaDomain $media, $item_id)
    {
        return $this->request('POST', '/item/' . $item_id . '/media', (array)$media);
    }

    public function remove($item_id, $media_id)
    {
        return $this->request('DELETE', '/item/' . $item_id . '/media/' . $media_id, []);
    }<commit_msg>change media argument type<commit_after><?php
/**
 * Created by PhpStorm.
 * User: rafael
 * Date: 03/10/17
 * Time: 11:59
 */

namespace GuiaDoSoftwareSdk\Http\Resources;


use GuiaDoSoftwareSdk\Http\Requester;
use GuiaDoSoftwareSdk\Domains\Media as MediaDomain;

class Media extends Requester
{
	public function add(array $media, $item_id)
	{
		return $this->request('POST', '/item/' . $item_id . '/media', $media);
	}

	public function remove($item_id, $media_id)
	{
		return $this->request('DELETE', '/item/' . $item_id . '/media/' . $media_id, []);
	}
{'fraction_non_alphanumeric': 0.16112084063047286, 'fraction_numerical': 0.017513134851138354, 'mean_word_length': 3.7231404958677685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '2947538', 'n_tokens_mistral': 427, 'n_tokens_neox': 405, 'n_words': 89}