Skip to content

Commit 832ed0b

Browse files
committed
Fix code style
1 parent 366f001 commit 832ed0b

22 files changed

+27
-4
lines changed

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ jobs:
1919
ref: ${{ github.head_ref }}
2020

2121
- name: Fix PHP code style issues
22-
uses: aglipanci/[email protected]
22+
uses: aglipanci/laravel-pint-action@latest
23+
with:
24+
preset: laravel
25+
verboseMode: true
2326

2427
- name: Commit changes
2528
uses: stefanzweifel/git-auto-commit-action@v5

pint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"preset": "laravel"
3+
}

src/Enums/ClientLanguageEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/ClientSendOptionsEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/Concerns/ConvertsToEntityTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/CountryEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/DocumentEventEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/EntityTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/EstimateStatusEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/EstimateTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/GuideStatusEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/GuideTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/InvoiceStatusEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/InvoiceTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/ItemUnitEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/PaymentMechanismEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/TaxCodeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/TaxExemptionCodeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

src/Enums/TaxRegionEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2023. - open-sourced software licensed under the MIT license.
45
* Squarebit, Lda - Portugal - www.square-bit.com

tests/API_REAL/EstimateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
'unit_price' => random_int(10, 200),
7777
// 'quantity' => random_int(1, 5),
7878
'unit' => collect(ItemUnitEnum::values())->random(),
79-
//'discount' => collect([5, 10, 15, 20, 50])->random(),
79+
// 'discount' => collect([5, 10, 15, 20, 50])->random(),
8080
'tax' => [
8181
'name' => 'IVA23',
8282
],

tests/API_REAL/GuideTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
'unit_price' => random_int(10, 200),
8787
// 'quantity' => random_int(1, 5),
8888
'unit' => collect(ItemUnitEnum::values())->random(),
89-
//'discount' => collect([5, 10, 15, 20, 50])->random(),
89+
// 'discount' => collect([5, 10, 15, 20, 50])->random(),
9090
'tax' => [
9191
'name' => 'IVA23',
9292
],

tests/Feature/IxSequenceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
})->with([
115115
'persist locally' => [true],
116116
"don't persist locally" => [false],
117-
]); //->depends('it can create a Sequence');
117+
]); // ->depends('it can create a Sequence');
118118

119119
it('can refresh a Sequence from API', function (bool $persistLocally) {
120120

0 commit comments

Comments
 (0)