Skip to content

Commit

Permalink
Reorganize the folder structure and apply new CS standard (#405)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ste93cry committed Jan 5, 2021
1 parent 40ff42b commit 7f82f1c
Show file tree
Hide file tree
Showing 126 changed files with 294 additions and 2,141 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
examples/ export-ignore
test/ export-ignore
tests/ export-ignore
var/ export-ignore
.* export-ignore
Makefile export-ignore
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ package.xml
/vendor
.idea
.php_cs.cache
.phpunit.result.cache
docs/_build
var
tests/clover.xml
79 changes: 0 additions & 79 deletions .php_cs

This file was deleted.

36 changes: 36 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'ordered_imports' => [
'imports_order' => ['class', 'function', 'const'],
],
'declare_strict_types' => true,
'psr0' => true,
'psr4' => true,
'random_api_migration' => true,
'yoda_style' => true,
'self_accessor' => false,
'phpdoc_no_useless_inheritdoc' => false,
'phpdoc_to_comment' => false,
'phpdoc_align' => [
'tags' => ['param', 'return', 'throws', 'type', 'var'],
],
'phpdoc_line_span' => [
'const' => 'multi',
'method' => 'multi',
'property' => 'multi',
],
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['var'])
)
;
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
- Support the XML format for the bundle configuration (#401)
- PHP 8 support (#399, thanks to @Yozhef)
- Retrieve the request from the `RequestStack` when using the `RequestIntegration` integration (#361)

- Reorganize the folder structure and change CS standard (#405)

## 3.5.3 (2020-10-13)

- Refactors and fixes class aliases for more robustness (#315 #359, thanks to @guilliamxavier)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"autoload-dev": {
"psr-4": {
"Sentry\\SentryBundle\\Test\\": "test"
"Sentry\\SentryBundle\\Tests\\": "tests/"
}
},
"scripts": {
Expand Down
16 changes: 0 additions & 16 deletions examples/symfony-3/.gitignore

This file was deleted.

19 changes: 0 additions & 19 deletions examples/symfony-3/LICENSE

This file was deleted.

7 changes: 0 additions & 7 deletions examples/symfony-3/Makefile

This file was deleted.

6 changes: 0 additions & 6 deletions examples/symfony-3/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions examples/symfony-3/app/.htaccess

This file was deleted.

7 changes: 0 additions & 7 deletions examples/symfony-3/app/AppCache.php

This file was deleted.

51 changes: 0 additions & 51 deletions examples/symfony-3/app/AppKernel.php

This file was deleted.

13 changes: 0 additions & 13 deletions examples/symfony-3/app/Resources/views/base.html.twig

This file was deleted.

76 changes: 0 additions & 76 deletions examples/symfony-3/app/Resources/views/default/index.html.twig

This file was deleted.

13 changes: 0 additions & 13 deletions examples/symfony-3/app/autoload.php

This file was deleted.

0 comments on commit 7f82f1c

Please sign in to comment.