Skip to content

Commit 7f82f1c

Browse files
authored
Reorganize the folder structure and apply new CS standard (#405)
* Reorganize the folder structure and apply new CS standard * Change XSD schema to use the lowest version available * Fix broken build due to route name being converted to number
1 parent 40ff42b commit 7f82f1c

File tree

126 files changed

+294
-2141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+294
-2141
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
examples/ export-ignore
2-
test/ export-ignore
1+
tests/ export-ignore
32
var/ export-ignore
43
.* export-ignore
54
Makefile export-ignore

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ package.xml
33
/vendor
44
.idea
55
.php_cs.cache
6+
.phpunit.result.cache
67
docs/_build
78
var
9+
tests/clover.xml

.php_cs

Lines changed: 0 additions & 79 deletions
This file was deleted.

.php_cs.dist

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
return PhpCsFixer\Config::create()
4+
->setRules([
5+
'@PSR2' => true,
6+
'@Symfony' => true,
7+
'@Symfony:risky' => true,
8+
'array_syntax' => ['syntax' => 'short'],
9+
'concat_space' => ['spacing' => 'one'],
10+
'ordered_imports' => [
11+
'imports_order' => ['class', 'function', 'const'],
12+
],
13+
'declare_strict_types' => true,
14+
'psr0' => true,
15+
'psr4' => true,
16+
'random_api_migration' => true,
17+
'yoda_style' => true,
18+
'self_accessor' => false,
19+
'phpdoc_no_useless_inheritdoc' => false,
20+
'phpdoc_to_comment' => false,
21+
'phpdoc_align' => [
22+
'tags' => ['param', 'return', 'throws', 'type', 'var'],
23+
],
24+
'phpdoc_line_span' => [
25+
'const' => 'multi',
26+
'method' => 'multi',
27+
'property' => 'multi',
28+
],
29+
])
30+
->setRiskyAllowed(true)
31+
->setFinder(
32+
PhpCsFixer\Finder::create()
33+
->in(__DIR__)
34+
->exclude(['var'])
35+
)
36+
;

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
- Support the XML format for the bundle configuration (#401)
1313
- PHP 8 support (#399, thanks to @Yozhef)
1414
- Retrieve the request from the `RequestStack` when using the `RequestIntegration` integration (#361)
15-
15+
- Reorganize the folder structure and change CS standard (#405)
16+
1617
## 3.5.3 (2020-10-13)
1718

1819
- Refactors and fixes class aliases for more robustness (#315 #359, thanks to @guilliamxavier)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
"autoload-dev": {
6363
"psr-4": {
64-
"Sentry\\SentryBundle\\Test\\": "test"
64+
"Sentry\\SentryBundle\\Tests\\": "tests/"
6565
}
6666
},
6767
"scripts": {

examples/symfony-3/.gitignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

examples/symfony-3/LICENSE

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/symfony-3/Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/symfony-3/README.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)