Skip to content

Reorganize the folder structure and apply new CS standard #405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading