dmitry-kulikov/yii2-braintree

View on GitHub

Showing 265 of 271 total issues

Property \tuyakhov\braintree\BraintreeForm->lastError has undeclared type \Braintree\Result\Error (Did you mean class \Error)
Open

    public $lastError;
Severity: Minor
Found in src/BraintreeForm.php by phan

Reference to static property app from undeclared class \Yii
Open

        return Yii::$app->get('braintree');
Severity: Critical
Found in src/BraintreeForm.php by phan

Possibly zero references to public method \tuyakhov\braintree\BraintreeForm::sale()
Open

    public function sale()
Severity: Minor
Found in src/BraintreeForm.php by phan

Possibly zero references to public method \tuyakhov\braintree\BraintreeForm::saleFromVault()
Open

    public function saleFromVault()
Severity: Minor
Found in src/BraintreeForm.php by phan

Return type of parseWebhookNotification() is undeclared type \Braintree\WebhookNotification
Open

    public function parseWebhookNotification(string $signature, $payload): WebhookNotification
Severity: Minor
Found in src/BraintreeForm.php by phan

Parameter $result has undeclared type \Braintree\Result\Error (Did you mean class \Error)
Open

    public function addErrorFromResponse(Error $result)
Severity: Minor
Found in src/BraintreeForm.php by phan

Call to undeclared method \tuyakhov\braintree\BraintreeForm::addError
Open

            $this->addError('creditCard_number', $result->message);
Severity: Critical
Found in src/BraintreeForm.php by phan

Reference to static property app from undeclared class \Yii
Open

            $braintree = Yii::$app->get('braintree');
Severity: Critical
Found in src/UrlManager.php by phan

Return type of findCustomer() is undeclared type \Braintree\Customer
Open

    public function findCustomer(string $customerId): Customer
Severity: Minor
Found in src/Braintree.php by phan

Return type of updateSubscription() is undeclared type \Braintree\Result\Error (Did you mean class \Error)
Open

    public function updateSubscription(string $subscriptionId, array $params)
Severity: Minor
Found in src/Braintree.php by phan

Possibly zero references to public property \tuyakhov\braintree\BraintreeForm->billing_firstName
Open

    public $billing_firstName;
Severity: Minor
Found in src/BraintreeForm.php by phan

Possibly zero references to public property \tuyakhov\braintree\BraintreeForm->billing_lastName
Open

    public $billing_lastName;
Severity: Minor
Found in src/BraintreeForm.php by phan

Possibly zero references to public property \tuyakhov\braintree\BraintreeForm->shipping_company
Open

    public $shipping_company;
Severity: Minor
Found in src/BraintreeForm.php by phan

Possibly zero read references to public property \tuyakhov\braintree\BraintreeForm->lastError
Open

    public $lastError;
Severity: Minor
Found in src/BraintreeForm.php by phan

Possibly zero references to public method \tuyakhov\braintree\BraintreeForm::saleWithPaymentNonce()
Open

    public function saleWithPaymentNonce($amount, $paymentMethodNonce)
Severity: Minor
Found in src/BraintreeForm.php by phan

Possibly zero references to public method \tuyakhov\braintree\BraintreeForm::findCustomer()
Open

    public function findCustomer(string $customerId): Customer
Severity: Minor
Found in src/BraintreeForm.php by phan

Possibly zero references to public method \tuyakhov\braintree\BraintreeForm::cancelSubscription()
Open

    public function cancelSubscription(string $subscriptionId): array
Severity: Minor
Found in src/BraintreeForm.php by phan

Reference to instance property success from undeclared class \Braintree\Result\Error
Open

        return ['status' => $result->success, 'result' => $result];
Severity: Minor
Found in src/BraintreeForm.php by phan

Possibly zero references to use statement for classlike/namespace ValidationErrorCollection (\Braintree\Error\ValidationErrorCollection)
Open

use Braintree\Error\ValidationErrorCollection;
Severity: Minor
Found in src/BraintreeForm.php by phan

Call to undeclared method \tuyakhov\braintree\BraintreeForm::hasErrors
Open

        if (!$this->hasErrors()) {
Severity: Critical
Found in src/BraintreeForm.php by phan
Severity
Category
Status
Source
Language