Skip to content

Commit 34540b4

Browse files
committed
Setting config file per PHP CS fixer
1 parent fa1c261 commit 34540b4

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

.php-cs-fixer.dist.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
$finder = (new PhpCsFixer\Finder())
4+
->in(__DIR__ . "/src")
5+
;
6+
7+
return (new PhpCsFixer\Config())
8+
->setRules([
9+
'@PER-CS2.0' => true,
10+
'@PHP83Migration' => true,
11+
//'strict_param' => true,
12+
'array_syntax' => ['syntax' => 'short'],
13+
])
14+
->setFinder($finder)
15+
;

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 0.0.7 - WIP
44

5+
- Full test coverage for Assets
6+
57
## 0.0.6 - 2025-02-07
68

79
- Adding helper methods to UserData

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
},
2828
"scripts": {
2929
"static-code": "vendor/bin/phpstan analyse",
30-
"style-fix-code": "export PHP_CS_FIXER_IGNORE_ENV=1; vendor/bin/php-cs-fixer fix [email protected] src/",
31-
"style-check-code": "export PHP_CS_FIXER_IGNORE_ENV=1; vendor/bin/php-cs-fixer check [email protected] src/",
30+
"style-fix-code": "export PHP_CS_FIXER_IGNORE_ENV=1; vendor/bin/php-cs-fixer fix",
31+
"style-check-code": "export PHP_CS_FIXER_IGNORE_ENV=1; vendor/bin/php-cs-fixer check",
3232
"test-code": "vendor/bin/pest",
3333
"test-code-ci": "vendor/bin/pest -c . --ci --cache-directory ./tmp",
3434
"refactor-check-code": "vendor/bin/rector --dry-run",

src/Response/SpaceResponse.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public function data(): SpaceData
3131
return new SpaceData($array[$key]);
3232
}
3333

34-
//var_dump($array);
35-
3634
throw new StoryblokFormatException(sprintf("Expected '%s' in the response.", $key));
3735

3836
}

0 commit comments

Comments
 (0)