Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Enforce PSR12 standards. (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot committed Jul 9, 2021
1 parent 884613e commit 3fafd15
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ShopifyApp/ShopifyAppProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ class ShopifyAppProvider extends ServiceProvider
*
* @var string
*/
const CBIND = 'bind';
public const CBIND = 'bind';

/**
* Bind type: singleton.
*/
const CSINGLETON = 'singleton';
public const CSINGLETON = 'singleton';

/**
* Bootstrap the application services.
Expand Down
3 changes: 2 additions & 1 deletion tests/Actions/ActivateUsageChargeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public function testRun(): void
public function testRunWithoutRecurringCharge(): void
{
$this->expectExceptionObject(new ChargeNotRecurringException(
'Can only create usage charges for recurring charge.', 0
'Can only create usage charges for recurring charge.',
0
));

// Create a plan
Expand Down
3 changes: 2 additions & 1 deletion tests/Actions/CancelChargeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public function testCancel(): void
public function testCancelOfNonRecurringNonOnetime(): void
{
$this->expectExceptionObject(new ChargeNotRecurringOrOnetimeException(
'Cancel may only be called for single and recurring charges.', 0
'Cancel may only be called for single and recurring charges.',
0
));

// Create a charge reference
Expand Down
6 changes: 4 additions & 2 deletions tests/Objects/Transfers/ChargeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public function setUp(): void
public function testGetThrowsAnError(): void
{
$this->expectExceptionObject(new Exception(
'Property doesNotExist does not exist on transfer class '.Charge::class, 0
'Property doesNotExist does not exist on transfer class '.Charge::class,
0
));

$_ = $this->charge->doesNotExist;
Expand All @@ -32,7 +33,8 @@ public function testGetThrowsAnError(): void
public function testSetThrowsAnError(): void
{
$this->expectExceptionObject(new Exception(
'Setting property doesNotExist for transfer class '.Charge::class, 0
'Setting property doesNotExist for transfer class '.Charge::class,
0
));

$this->charge->doesNotExist = false;
Expand Down

0 comments on commit 3fafd15

Please sign in to comment.