Skip to content

Commit f4607cc

Browse files
committed
fix pint errors
1 parent 21da37a commit f4607cc

File tree

12 files changed

+118
-101
lines changed

12 files changed

+118
-101
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"require-dev": {
3434
"phpunit/phpunit": "^9.3",
3535
"vimeo/psalm": "4.0.1",
36-
"laravel/pint": "1.2.*"
36+
"laravel/pint": "^1.18"
3737
},
38-
"minimum-stability": "dev",
38+
"minimum-stability": "stable",
3939
"config": {
4040
"allow-plugins": {
4141
"php-http/discovery": false,

composer.lock

Lines changed: 15 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pint.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"preset": "psr12",
3+
"rules": {
4+
"no_superfluous_phpdoc_tags": false,
5+
"no_empty_phpdoc": false,
6+
"phpdoc_trim": false,
7+
"nullable_type_declaration_for_default_null_value": false,
8+
"single_line_comment_spacing": false,
9+
"unary_operator_spaces": false,
10+
"not_operator_with_successor_space": false,
11+
"new_with_parentheses": false,
12+
"php_unit_method_casing": false,
13+
"php_unit_set_up_tear_down_visibility": false,
14+
"single_line_empty_body": false
15+
}
16+
}

src/Storage/Device/AWS.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,57 +9,57 @@ class AWS extends S3
99
/**
1010
* AWS Regions constants
1111
*/
12-
const US_EAST_1 = 'us-east-1';
12+
public const US_EAST_1 = 'us-east-1';
1313

14-
const US_EAST_2 = 'us-east-2';
14+
public const US_EAST_2 = 'us-east-2';
1515

16-
const US_WEST_1 = 'us-west-1';
16+
public const US_WEST_1 = 'us-west-1';
1717

18-
const US_WEST_2 = 'us-west-2';
18+
public const US_WEST_2 = 'us-west-2';
1919

20-
const AF_SOUTH_1 = 'af-south-1';
20+
public const AF_SOUTH_1 = 'af-south-1';
2121

22-
const AP_EAST_1 = 'ap-east-1';
22+
public const AP_EAST_1 = 'ap-east-1';
2323

24-
const AP_SOUTH_1 = 'ap-south-1';
24+
public const AP_SOUTH_1 = 'ap-south-1';
2525

26-
const AP_NORTHEAST_3 = 'ap-northeast-3';
26+
public const AP_NORTHEAST_3 = 'ap-northeast-3';
2727

28-
const AP_NORTHEAST_2 = 'ap-northeast-2';
28+
public const AP_NORTHEAST_2 = 'ap-northeast-2';
2929

30-
const AP_NORTHEAST_1 = 'ap-northeast-1';
30+
public const AP_NORTHEAST_1 = 'ap-northeast-1';
3131

32-
const AP_SOUTHEAST_1 = 'ap-southeast-1';
32+
public const AP_SOUTHEAST_1 = 'ap-southeast-1';
3333

34-
const AP_SOUTHEAST_2 = 'ap-southeast-2';
34+
public const AP_SOUTHEAST_2 = 'ap-southeast-2';
3535

36-
const CA_CENTRAL_1 = 'ca-central-1';
36+
public const CA_CENTRAL_1 = 'ca-central-1';
3737

38-
const EU_CENTRAL_1 = 'eu-central-1';
38+
public const EU_CENTRAL_1 = 'eu-central-1';
3939

40-
const EU_WEST_1 = 'eu-west-1';
40+
public const EU_WEST_1 = 'eu-west-1';
4141

42-
const EU_SOUTH_1 = 'eu-south-1';
42+
public const EU_SOUTH_1 = 'eu-south-1';
4343

44-
const EU_WEST_2 = 'eu-west-2';
44+
public const EU_WEST_2 = 'eu-west-2';
4545

46-
const EU_WEST_3 = 'eu-west-3';
46+
public const EU_WEST_3 = 'eu-west-3';
4747

48-
const EU_NORTH_1 = 'eu-north-1';
48+
public const EU_NORTH_1 = 'eu-north-1';
4949

50-
const SA_EAST_1 = 'eu-north-1';
50+
public const SA_EAST_1 = 'eu-north-1';
5151

52-
const CN_NORTH_1 = 'cn-north-1';
52+
public const CN_NORTH_1 = 'cn-north-1';
5353

54-
const CN_NORTH_4 = 'cn-north-4';
54+
public const CN_NORTH_4 = 'cn-north-4';
5555

56-
const CN_NORTHWEST_1 = 'cn-northwest-1';
56+
public const CN_NORTHWEST_1 = 'cn-northwest-1';
5757

58-
const ME_SOUTH_1 = 'me-south-1';
58+
public const ME_SOUTH_1 = 'me-south-1';
5959

60-
const US_GOV_EAST_1 = 'us-gov-east-1';
60+
public const US_GOV_EAST_1 = 'us-gov-east-1';
6161

62-
const US_GOV_WEST_1 = 'us-gov-west-1';
62+
public const US_GOV_WEST_1 = 'us-gov-west-1';
6363

6464
/**
6565
* S3 Constructor

src/Storage/Device/Backblaze.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ class Backblaze extends S3
1212
* (Technically, these are clusters. There are two Backblaze regions,
1313
* US West and EU Central.)
1414
*/
15-
const US_WEST_000 = 'us-west-000';
15+
public const US_WEST_000 = 'us-west-000';
1616

17-
const US_WEST_001 = 'us-west-001';
17+
public const US_WEST_001 = 'us-west-001';
1818

19-
const US_WEST_002 = 'us-west-002';
19+
public const US_WEST_002 = 'us-west-002';
2020

21-
const US_WEST_004 = 'us-west-004';
21+
public const US_WEST_004 = 'us-west-004';
2222

23-
const EU_CENTRAL_003 = 'eu-central-003';
23+
public const EU_CENTRAL_003 = 'eu-central-003';
2424

2525
/**
2626
* Backblaze Constructor

src/Storage/Device/DOSpaces.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ class DOSpaces extends S3
99
/**
1010
* Regions constants
1111
*/
12-
const SGP1 = 'sgp1';
12+
public const SGP1 = 'sgp1';
1313

14-
const NYC3 = 'nyc3';
14+
public const NYC3 = 'nyc3';
1515

16-
const FRA1 = 'fra1';
16+
public const FRA1 = 'fra1';
1717

18-
const SFO2 = 'sfo2';
18+
public const SFO2 = 'sfo2';
1919

20-
const SFO3 = 'sfo3';
20+
public const SFO3 = 'sfo3';
2121

22-
const AMS3 = 'AMS3';
22+
public const AMS3 = 'AMS3';
2323

2424
/**
2525
* DOSpaces Constructor

src/Storage/Device/Linode.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ class Linode extends S3
99
/**
1010
* Regions constants
1111
*/
12-
const EU_CENTRAL_1 = 'eu-central-1';
12+
public const EU_CENTRAL_1 = 'eu-central-1';
1313

14-
const US_SOUTHEAST_1 = 'us-southeast-1';
14+
public const US_SOUTHEAST_1 = 'us-southeast-1';
1515

16-
const US_EAST_1 = 'us-east-1';
16+
public const US_EAST_1 = 'us-east-1';
1717

18-
const AP_SOUTH_1 = 'ap-south-1';
18+
public const AP_SOUTH_1 = 'ap-south-1';
1919

2020
/**
2121
* Object Storage Constructor

src/Storage/Device/S3.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,42 @@
99

1010
class S3 extends Device
1111
{
12-
const METHOD_GET = 'GET';
12+
public const METHOD_GET = 'GET';
1313

14-
const METHOD_POST = 'POST';
14+
public const METHOD_POST = 'POST';
1515

16-
const METHOD_PUT = 'PUT';
16+
public const METHOD_PUT = 'PUT';
1717

18-
const METHOD_PATCH = 'PATCH';
18+
public const METHOD_PATCH = 'PATCH';
1919

20-
const METHOD_DELETE = 'DELETE';
20+
public const METHOD_DELETE = 'DELETE';
2121

22-
const METHOD_HEAD = 'HEAD';
22+
public const METHOD_HEAD = 'HEAD';
2323

24-
const METHOD_OPTIONS = 'OPTIONS';
24+
public const METHOD_OPTIONS = 'OPTIONS';
2525

26-
const METHOD_CONNECT = 'CONNECT';
26+
public const METHOD_CONNECT = 'CONNECT';
2727

28-
const METHOD_TRACE = 'TRACE';
28+
public const METHOD_TRACE = 'TRACE';
2929

30-
const HTTP_VERSION_1_1 = CURL_HTTP_VERSION_1_1;
30+
public const HTTP_VERSION_1_1 = CURL_HTTP_VERSION_1_1;
3131

32-
const HTTP_VERSION_2_0 = CURL_HTTP_VERSION_2_0;
32+
public const HTTP_VERSION_2_0 = CURL_HTTP_VERSION_2_0;
3333

34-
const HTTP_VERSION_2 = CURL_HTTP_VERSION_2;
34+
public const HTTP_VERSION_2 = CURL_HTTP_VERSION_2;
3535

36-
const HTTP_VERSION_1_0 = CURL_HTTP_VERSION_1_0;
36+
public const HTTP_VERSION_1_0 = CURL_HTTP_VERSION_1_0;
3737

3838
/**
3939
* AWS ACL Flag constants
4040
*/
41-
const ACL_PRIVATE = 'private';
41+
public const ACL_PRIVATE = 'private';
4242

43-
const ACL_PUBLIC_READ = 'public-read';
43+
public const ACL_PUBLIC_READ = 'public-read';
4444

45-
const ACL_PUBLIC_READ_WRITE = 'public-read-write';
45+
public const ACL_PUBLIC_READ_WRITE = 'public-read-write';
4646

47-
const ACL_AUTHENTICATED_READ = 'authenticated-read';
47+
public const ACL_AUTHENTICATED_READ = 'authenticated-read';
4848

4949
protected const MAX_PAGE_SIZE = 1000;
5050

src/Storage/Device/Wasabi.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ class Wasabi extends S3
99
/**
1010
* Regions constants
1111
*/
12-
const US_WEST_1 = 'us-west-1';
12+
public const US_WEST_1 = 'us-west-1';
1313

14-
const AP_NORTHEAST_1 = 'ap-northeast-1';
14+
public const AP_NORTHEAST_1 = 'ap-northeast-1';
1515

16-
const AP_NORTHEAST_2 = 'ap-northeast-2';
16+
public const AP_NORTHEAST_2 = 'ap-northeast-2';
1717

18-
const EU_CENTRAL_1 = 'eu-central-1';
18+
public const EU_CENTRAL_1 = 'eu-central-1';
1919

20-
const EU_CENTRAL_2 = 'eu-central-2';
20+
public const EU_CENTRAL_2 = 'eu-central-2';
2121

22-
const EU_WEST_1 = 'eu-west-1';
22+
public const EU_WEST_1 = 'eu-west-1';
2323

24-
const EU_WEST_2 = 'eu-west-2';
24+
public const EU_WEST_2 = 'eu-west-2';
2525

26-
const US_CENTRAL_1 = 'us-central-1';
26+
public const US_CENTRAL_1 = 'us-central-1';
2727

28-
const US_EAST_1 = 'us-east-1';
28+
public const US_EAST_1 = 'us-east-1';
2929

30-
const US_EAST_2 = 'us-east-2';
30+
public const US_EAST_2 = 'us-east-2';
3131

3232
/**
3333
* Wasabi Constructor

src/Storage/Storage.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ class Storage
99
/**
1010
* Supported devices
1111
*/
12-
const DEVICE_LOCAL = 'local';
12+
public const DEVICE_LOCAL = 'local';
1313

14-
const DEVICE_S3 = 's3';
14+
public const DEVICE_S3 = 's3';
1515

16-
const DEVICE_AWS_S3 = 'awss3';
16+
public const DEVICE_AWS_S3 = 'awss3';
1717

18-
const DEVICE_DO_SPACES = 'dospaces';
18+
public const DEVICE_DO_SPACES = 'dospaces';
1919

20-
const DEVICE_WASABI = 'wasabi';
20+
public const DEVICE_WASABI = 'wasabi';
2121

22-
const DEVICE_BACKBLAZE = 'backblaze';
22+
public const DEVICE_BACKBLAZE = 'backblaze';
2323

24-
const DEVICE_LINODE = 'linode';
24+
public const DEVICE_LINODE = 'linode';
2525

2626
/**
2727
* Devices.

0 commit comments

Comments
 (0)