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

Enforce PSR12 standards. #879

Merged
merged 1 commit into from
Jul 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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