Skip to content

Commit c537642

Browse files
committed
Up PHP CS fixer config
1 parent 4216d92 commit c537642

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v1
23+
uses: actions/checkout@v2
2424

2525
- name: Cache dependencies
26-
uses: actions/cache@v1
26+
uses: actions/cache@v2
2727
with:
2828
path: ~/.composer/cache/files
2929
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

.php-cs-fixer.dist.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
return (new Config())
2121
->setRules([
22-
'@PSR2' => true,
22+
'@PSR12' => true,
2323
'array_syntax' => ['syntax' => 'short'],
2424
'ordered_imports' => ['sort_algorithm' => 'alpha'],
2525
'no_unused_imports' => true,
@@ -33,6 +33,11 @@
3333
],
3434
'phpdoc_single_line_var_spacing' => true,
3535
'phpdoc_var_without_name' => true,
36+
'class_attributes_separation' => [
37+
'elements' => [
38+
'method' => 'one',
39+
],
40+
],
3641
'method_argument_space' => [
3742
'on_multiline' => 'ensure_fully_multiline',
3843
'keep_multiple_spaces_after_comma' => true,

src/CmsmsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class CmsmsClient
1313
{
14-
const GATEWAY_URL = 'https://sgw01.cm.nl/gateway.ashx';
14+
public const GATEWAY_URL = 'https://sgw01.cm.nl/gateway.ashx';
1515

1616
public function __construct(
1717
protected GuzzleClient $client,

0 commit comments

Comments
 (0)