e107inc/e107

View on GitHub
e107_handlers/e_marketplace.php

Summary

Maintainability
A
0 mins
Test Coverage
F
5%

Saw possibly unextractable annotation for a fragment of comment '* @param e_marketplace_adapter_abstract': after e_marketplace_adapter_abstract, did not see an element name (will guess based on comment order)
Open

     * @param e_marketplace_adapter_abstract
Severity: Info
Found in e107_handlers/e_marketplace.php by phan

Call to deprecated function \e_marketplace_adapter_abstract::setAuthKey() defined at /code/e107_handlers/e_marketplace.php:438
Open

        $this->adapter->setAuthKey($authkey);    
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 2 (newvalue) is 0 but \ini_set() takes string
Open

        ini_set('soap.wsdl_cache_ttl', 0);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Reference to undeclared property \SoapFault->faultstring
Open

            $result['exception']['message'] = "SoapFault Exception [call::{$method}]: (#".$e->faultcode.") ".$e->faultstring;
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 1 (ch) is \CurlHandle|false but \curl_setopt() takes resource
Open

        curl_setopt($cp, CURLOPT_FILE, $fp);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Reference to deprecated property \e_marketplace_adapter_abstract->authKey defined at /code/e107_handlers/e_marketplace.php:395
Open

        return $this->authKey !== null;
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Call to deprecated function \e_marketplace_adapter_abstract::getAuthKey() defined at /code/e107_handlers/e_marketplace.php:455
Open

        $remotefile = $this->downloadUrl."?auth=".$this->getAuthKey()."&".$qry;
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 1 (ch) is \CurlHandle|false but \curl_exec() takes resource
Open

        $buffer = curl_exec($cp);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 2 (newvalue) is 0 but \ini_set() takes string
Open

        ini_set('soap.wsdl_cache_enabled', 0);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Reference to undeclared property \SoapFault->faultcode
Open

            $result['exception']['code']     = 'SOAP_'.$e->faultcode;
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Assigning string to property but \e_marketplace_adapter_xmlrpc->serviceUrl is \xmlClass
Open

    protected $serviceUrl = 'https://e107.org/xservice';
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 2 (prefix) is false but \http_build_query() takes ?string
Open

        $signatureBaseString = $this->requestMethod.'&'.rawurlencode($this->serviceUrl).'&'.http_build_query($signatureData, false, '&');
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 5 (day) is string but \gmmktime() takes int
Open

            $ret = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Call to method __construct from undeclared class \SimpleXmlIterator
Open

            $xml = new SimpleXMLIterator($xmlString);
Severity: Critical
Found in e107_handlers/e_marketplace.php by phan

Argument #1 of this call to \str_replace is typically a literal or constant but isn't, but argument #3 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

            $mes->addError( TPVLAN_83." ".str_replace($srch, $repl, TPVLAN_84));
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Call to method attributes from undeclared class \SimpleXmlIterator
Open

            $attr = (array) $xml->attributes();
Severity: Critical
Found in e107_handlers/e_marketplace.php by phan

Call to method attributes from undeclared class \SimpleXmlIterator
Open

        $attr = (array) $xml->attributes();
Severity: Critical
Found in e107_handlers/e_marketplace.php by phan

Argument 4 (mon) is string but \gmmktime() takes int
Open

            $ret = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 3 (sec) is string but \gmmktime() takes int
Open

            $ret = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Call to deprecated function \e_marketplace::makeAuthKey() defined at /code/e107_handlers/e_marketplace.php:87
Open

        $this->setAuthKey($this->makeAuthKey($username, $password, true));    
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 6 (year) is string but \gmmktime() takes int
Open

            $ret = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Reference to deprecated property \e_marketplace_adapter_abstract->authKey defined at /code/e107_handlers/e_marketplace.php:395
Open

        $this->authKey = $authkey;
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 2 (prefix) is false but \http_build_query() takes ?string
Open

            $d = http_build_query($srcData,false,'&');
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Assigning null to property but \e_marketplace_adapter_wsdl->client is \SoapClient
Open

        $this->client = null;
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Call to deprecated function \e_marketplace_adapter_wsdl::getAuthKey() defined at /code/e107_handlers/e_marketplace.php:455
Open

        $auth->authKey = $this->getAuthKey();
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Call to deprecated function \e_marketplace_adapter_abstract::hasAuthKey() defined at /code/e107_handlers/e_marketplace.php:447
Open

        return $this->adapter->hasAuthKey();
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Parameter $xml has undeclared type \SimpleXmlIterator
Open

    public function parse($xml, $parentName = null)
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 2 (min) is string but \gmmktime() takes int
Open

            $ret = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 1 (ch) is \CurlHandle|false but \curl_close() takes resource
Open

        curl_close($cp);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Reference to undeclared property \SoapFault->faultcode
Open

            $result['exception']['message'] = "SoapFault Exception [call::{$method}]: (#".$e->faultcode.") ".$e->faultstring;
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Call to method count from undeclared class \SimpleXmlIterator
Open

        $count = $xml->count();
Severity: Critical
Found in e107_handlers/e_marketplace.php by phan

Reference to undeclared property \eAuth->serviceUrl
Open

        $signatureBaseString = $this->requestMethod.'&'.rawurlencode($this->serviceUrl).'&'.http_build_query($signatureData, false, '&');
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Call to deprecated function \e_marketplace::setAuthKey() defined at /code/e107_handlers/e_marketplace.php:69
Open

        $this->setAuthKey($this->makeAuthKey($username, $password, true));    
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Assigning null to property but \e_marketplace->adapter is \e_marketplace_adapter_abstract|object
Open

        $this->adapter = null;
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Reference to deprecated property \e_marketplace_adapter_abstract->authKey defined at /code/e107_handlers/e_marketplace.php:395
Open

        return $this->authKey;    
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 1 (hour) is string but \gmmktime() takes int
Open

            $ret = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]);
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Argument 2 (prefix) is false but \http_build_query() takes ?string
Open

            $d = http_build_query($srcData,false,'&');
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

Reference to undeclared property \SoapFault->headerfault
Open

                $result['exception']['message'] .= ". Header fault: ".($e->headerfault ? $e->headerfault : 'n/a');
Severity: Minor
Found in e107_handlers/e_marketplace.php by phan

There are no issues that match your filters.

Category
Status