Code Monkey home page Code Monkey logo

22digital / laravel-cashier-fastspring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bgultekin/cashier-fastspring

10.0 10.0 8.0 262 KB

๐Ÿ’ณ Laravel Cashier Fastspring is a cashier-like Laravel package which provides an interface to the Fastspring subscription and payment services.

Home Page: https://fastspring.22digital.co.za

License: MIT License

PHP 100.00%
fastspring laravel laravel-5 laravel-5-package laravel-6 laravel-6-package laravel-application laravel-cashier laravel-fastspring laravel-framework laravel-package laravel-payment laravel-payment-gateway laravel-payments

laravel-cashier-fastspring's Introduction

22digital

laravel-cashier-fastspring's People

Contributors

bgultekin avatar justinhartman avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

laravel-cashier-fastspring's Issues

\ApiClient($username, $password) is incompatible with the declared type ``array`` of property ``$instance``

IssueId: 41885617
Message: It seems like new TwentyTwoDigital\CashierFastspring\Fastspring\ApiClient($username, $password) of type TwentyTwoDigital\CashierFastspring\Fastspring\ApiClient is incompatible with the declared type array of property $instance.
Filename: src/Fastspring/Fastspring.php
LineNumber: 35
Link: https://scrutinizer-ci.com/g/22digital/cashier-fastspring/issues/master/files/src/Fastspring/Fastspring.php?selectedLabels%5B0%5D=7&orderField=path&order=asc&honorSelectedPaths=0&issueId=41885617

The expression ``return implode(' ', $parted)`` returns the type ``string`` which is incompatible with the documented return type ``object``

IssueId: 41885598
Message: The expression return implode(' ', $parted) returns the type string which is incompatible with the documented return type object.
Filename: src/Billable.php
LineNumber: 292
Link: https://scrutinizer-ci.com/g/22digital/cashier-fastspring/issues/master/files/src/Billable.php?selectedLabels%5B0%5D=18&orderField=path&order=asc&honorSelectedPaths=0&issueId=41885598

Call to undefined function TwentyTwoDigital\CashierFastspring\Tests\studly()

Describe the bug

vendor/bin/phpunit
PHPUnit 7.5.17 by Sebastian Bergmann and contributors.

Warning:       opcache.save_comments=0 set; annotations will not work

................................................................. 65 / 70 ( 92%)
....E                                                             70 / 70 (100%)

Time: 778 ms, Memory: 18.00 MB

There was 1 error:

1) TwentyTwoDigital\CashierFastspring\Tests\WebhookControllerTest::testWebhooksEvents
Error: Call to undefined function TwentyTwoDigital\CashierFastspring\Tests\studly()

/tests/WebhookControllerTest.php:185

StyleCI failing

Describe the bug
StyleCI is failing on some of the tests in the repo.
See details over here

Diff file contains the following:

diff --git a/tests/CashierFastspringTest.php b/tests/CashierFastspringTest.php
index 2811f170b284b67abbbc963c1e5fde4630ec2387..486871791d5b082f0de7ec914a0c2988dda83695 100644
--- a/tests/CashierFastspringTest.php
+++ b/tests/CashierFastspringTest.php
@@ -128,8 +128,8 @@ class CashierFastspringTest extends TestCase
                 ],
             ])),
             new Response(200, [], json_encode(['accounts' => [
-                    ['id' => 'fastspring_id'],
-                ],
+                ['id' => 'fastspring_id'],
+            ],
             ])),
             new Response(200, [], json_encode(['hello' => 'world'])),
         ]);
diff --git a/tests/SubscriptionTest.php b/tests/SubscriptionTest.php
index 99d70505c39d8765e036729f2672af04877ab05b..1d5dd6410ce93f0a9f0b8814c4bb77bd12f83af8 100644
--- a/tests/SubscriptionTest.php
+++ b/tests/SubscriptionTest.php
@@ -81,7 +81,7 @@ class SubscriptionTest extends TestCase
             'subscription_id' => 'fastspring_id',
             'start_date' => $today,
             'end_date' => $today,
-            'type' => 'local'
+            'type' => 'local',
         ]);
 
         $this->assertNotNull($activePeriod);

Multiple parameters are not used and could be removed

IssueId: 41885594

Message: The parameter $options is not used and could be removed.
Filename: src/Billable.php
LineNumber: 20
Link: https://scrutinizer-ci.com/g/22digital/cashier-fastspring/issues/master/files/src/Billable.php?selectedLabels%5B0%5D=2&orderField=path&order=asc&honorSelectedPaths=0&issueId=41885594

IssueId: 41885595

Message: The parameter $amount is not used and could be removed.
Filename: src/Billable.php
LineNumber: 20
Link:
https://scrutinizer-ci.com/g/22digital/cashier-fastspring/issues/master/files/src/Billable.php?selectedLabels%5B0%5D=2&orderField=path&order=asc&honorSelectedPaths=0&issueId=41885595

IssueId: 41885600

Message: The parameter $charge is not used and could be removed.
Filename: src/Billable.php
LineNumber: 34
Link: https://scrutinizer-ci.com/g/22digital/cashier-fastspring/issues/master/files/src/Billable.php?selectedLabels%5B0%5D=2&orderField=path&order=asc&honorSelectedPaths=0&issueId=41885600

IssueId: 41885601

Message: The parameter $options is not used and could be removed.
Filename: src/Billable.php
LineNumber: 34
Link: https://scrutinizer-ci.com/g/22digital/cashier-fastspring/issues/master/files/src/Billable.php?selectedLabels%5B0%5D=2&orderField=path&order=asc&honorSelectedPaths=0&issueId=41885601

studly_case() has been deprecated: Str::studly() should be used

IssueId: 41885607

Message: The function studly_case() has been deprecated: Str::studly() should be used directly instead. Will be removed in Laravel 6.0.
Filename: src/Http/Controllers/WebhookController.php
LineNumber: 56
Link: Click here

IssueId: 41885609

Message: The function studly_case() has been deprecated: Str::studly() should be used directly instead. Will be removed in Laravel 6.0.
Filename: src/Http/Controllers/WebhookController.php
LineNumber: 60
Link: Click here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.