billogram / billogram-v2-api-php-lib

PHP library for the Billogram REST API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BillogramClass.php unused parameter.

peshi opened this issue · comments

$method is never used in this function.

    /**
     * Creates and sells a billogram.
     *
     * @param $data
     * @param $method
     * @return \Billogram\Api\Objects\BillogramObject
     */
    public function createAndSell($data, $method)
    {
        $data['_event'] = 'sell';
        $billogram = $this->create($data);

        return $billogram;
    }

I cannot remove this parameter at this time, it would possibly break backward compitability with exiting users, hopefully it doesnt hurt anyone.

Alright :) closing