Skip to content

Commit cd62414

Browse files
Merge pull request #90 from oliverklee/cleanup/autoformat
[CLEANUP] Autoformat the non-PHP files according to the `.editorconfig`
2 parents 5c60481 + dbb5612 commit cd62414

File tree

4 files changed

+87
-83
lines changed

4 files changed

+87
-83
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These are supported funding model platforms
22

3-
github: [sascha-egerer]
3+
github: [ sascha-egerer ]
44
#patreon: # Replace with a single Patreon username
55
#open_collective: # Replace with a single Open Collective username
66
#ko_fi: # Replace with a single Ko-fi username

build.xml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,62 +10,62 @@
1010

1111
<target name="composer">
1212
<exec
13-
executable="composer"
14-
logoutput="true"
15-
passthru="true"
16-
checkreturn="true"
13+
executable="composer"
14+
logoutput="true"
15+
passthru="true"
16+
checkreturn="true"
1717
>
1818
<arg value="install"/>
1919
</exec>
2020
</target>
2121

2222
<target name="lint">
2323
<exec
24-
executable="vendor/bin/parallel-lint"
25-
logoutput="true"
26-
passthru="true"
27-
checkreturn="true"
24+
executable="vendor/bin/parallel-lint"
25+
logoutput="true"
26+
passthru="true"
27+
checkreturn="true"
2828
>
29-
<arg path="src" />
29+
<arg path="src"/>
3030
</exec>
3131
</target>
3232

3333
<target name="cs">
3434
<exec
35-
executable="vendor/bin/phpcs"
36-
logoutput="true"
37-
passthru="true"
38-
checkreturn="true"
35+
executable="vendor/bin/phpcs"
36+
logoutput="true"
37+
passthru="true"
38+
checkreturn="true"
3939
>
4040
</exec>
4141
</target>
4242

4343
<target name="cs-fix">
4444
<exec
45-
executable="vendor/bin/phpcbf"
46-
logoutput="true"
47-
passthru="true"
48-
checkreturn="true"
45+
executable="vendor/bin/phpcbf"
46+
logoutput="true"
47+
passthru="true"
48+
checkreturn="true"
4949
>
5050
</exec>
5151
</target>
5252

5353
<target name="phpstan">
5454
<exec
55-
executable="vendor/bin/phpstan"
56-
logoutput="true"
57-
passthru="true"
58-
checkreturn="true"
55+
executable="vendor/bin/phpstan"
56+
logoutput="true"
57+
passthru="true"
58+
checkreturn="true"
5959
>
6060
</exec>
6161
</target>
6262

6363
<target name="phpunit">
6464
<exec
65-
executable="vendor/bin/phpunit"
66-
logoutput="true"
67-
passthru="true"
68-
checkreturn="true"
65+
executable="vendor/bin/phpunit"
66+
logoutput="true"
67+
passthru="true"
68+
checkreturn="true"
6969
>
7070
<arg value="tests/"/>
7171
</exec>

composer.json

Lines changed: 56 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,58 @@
11
{
2-
"name": "saschaegerer/phpstan-typo3",
3-
"description": "TYPO3 CMS class reflection extension for PHPStan",
4-
"license": ["MIT"],
5-
"type": "phpstan-extension",
6-
"minimum-stability": "dev",
7-
"prefer-stable": true,
8-
"require": {
9-
"php": "^7.2 || ^8.0",
10-
"phpstan/phpstan": "^1.8.9",
11-
"nikic/php-parser": "^4.15.1",
12-
"typo3/cms-core": "^10.4 || ^11.5 || ^12.0",
13-
"typo3/cms-extbase": "^10.4 || ^11.5 || ^12.0",
14-
"bnf/phpstan-psr-container": "^1.0"
15-
},
16-
"require-dev": {
17-
"consistence-community/coding-standard": "^3.10.1",
18-
"slevomat/coding-standard": "^6.4.1",
19-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
20-
"php-parallel-lint/php-parallel-lint": "^1.3.2",
21-
"phing/phing": "^2.17.4",
22-
"phpstan/phpstan-strict-rules": "^1.4.4",
23-
"phpunit/phpunit": "^8.5.30",
24-
"symfony/polyfill-php80": "^1.26.0"
25-
},
26-
"autoload": {
27-
"psr-4": {
28-
"SaschaEgerer\\PhpstanTypo3\\": "src/"
29-
}
30-
},
31-
"autoload-dev": {
32-
"psr-4": {
33-
"SaschaEgerer\\PhpstanTypo3\\Tests\\": "tests/"
34-
},
35-
"files": [
36-
"tests/Unit/Type/data/repository-stub-files.php"
37-
]
38-
},
39-
"extra": {
40-
"branch-alias": {
41-
"dev-master": "1.1-dev"
42-
},
43-
"phpstan": {
44-
"includes": ["extension.neon"]
45-
}
46-
},
47-
"config": {
48-
"allow-plugins": {
49-
"dealerdirect/phpcodesniffer-composer-installer": true,
50-
"typo3/class-alias-loader": true,
51-
"typo3/cms-composer-installers": true
52-
}
53-
}
2+
"name": "saschaegerer/phpstan-typo3",
3+
"description": "TYPO3 CMS class reflection extension for PHPStan",
4+
"license": [
5+
"MIT"
6+
],
7+
"type": "phpstan-extension",
8+
"minimum-stability": "dev",
9+
"prefer-stable": true,
10+
"require": {
11+
"php": "^7.2 || ^8.0",
12+
"phpstan/phpstan": "^1.8.9",
13+
"nikic/php-parser": "^4.15.1",
14+
"typo3/cms-core": "^10.4 || ^11.5 || ^12.0",
15+
"typo3/cms-extbase": "^10.4 || ^11.5 || ^12.0",
16+
"bnf/phpstan-psr-container": "^1.0"
17+
},
18+
"require-dev": {
19+
"consistence-community/coding-standard": "^3.10.1",
20+
"slevomat/coding-standard": "^6.4.1",
21+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
22+
"php-parallel-lint/php-parallel-lint": "^1.3.2",
23+
"phing/phing": "^2.17.4",
24+
"phpstan/phpstan-strict-rules": "^1.4.4",
25+
"phpunit/phpunit": "^8.5.30",
26+
"symfony/polyfill-php80": "^1.26.0"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"SaschaEgerer\\PhpstanTypo3\\": "src/"
31+
}
32+
},
33+
"autoload-dev": {
34+
"psr-4": {
35+
"SaschaEgerer\\PhpstanTypo3\\Tests\\": "tests/"
36+
},
37+
"files": [
38+
"tests/Unit/Type/data/repository-stub-files.php"
39+
]
40+
},
41+
"extra": {
42+
"branch-alias": {
43+
"dev-master": "1.1-dev"
44+
},
45+
"phpstan": {
46+
"includes": [
47+
"extension.neon"
48+
]
49+
}
50+
},
51+
"config": {
52+
"allow-plugins": {
53+
"dealerdirect/phpcodesniffer-composer-installer": true,
54+
"typo3/class-alias-loader": true,
55+
"typo3/cms-composer-installers": true
56+
}
57+
}
5458
}

phpcs.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
</properties>
4848
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
4949
</rule>
50-
<rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure.UnusedInheritedVariable" />
51-
<rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly.ReferencedGeneralException" />
52-
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable" />
50+
<rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure.UnusedInheritedVariable"/>
51+
<rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly.ReferencedGeneralException"/>
52+
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable"/>
5353
<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
5454
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/>
5555
<rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit">
@@ -73,9 +73,9 @@
7373
<rule ref="SlevomatCodingStandard.PHP.UselessParentheses"/>
7474
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
7575
<properties>
76-
<property name="spacing" value="1" />
76+
<property name="spacing" value="1"/>
7777
<property name="spacingBeforeFirst" value="1"/>
7878
<property name="spacingAfterLast" value="1"/>
7979
</properties>
8080
</rule>
81-
</ruleset>
81+
</ruleset>

0 commit comments

Comments
 (0)