This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
611e8e7
commit 0a3f730
Showing
53 changed files
with
364 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ vendor/ | |
report/* | ||
Resources/doc/_build/ | ||
composer.lock | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->in(array(__DIR__)) | ||
; | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | ||
->fixers(array( | ||
'-unalign_double_arrow', | ||
'-unalign_equals', | ||
'align_double_arrow', | ||
'newline_after_open_tag', | ||
'ordered_use', | ||
'long_array_syntax', | ||
)) | ||
->setUsingCache(true) | ||
->finder($finder) | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Sonata respects the symfony’s conventions about contributing to the code. So before going further please review the [contributing documentation of Symfony](http://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request). | ||
|
||
## Reporting bugs | ||
|
||
If you happen to find a bug, we kindly request you to report it. However, before submitting it, please: | ||
|
||
* Check the [project documentation available online](https://sonata-project.org/bundles/) | ||
|
||
Then, if it appears that it’s a real bug, you may report it using Github by following these 3 points: | ||
|
||
* Check if the bug is not already reported! | ||
* A clear title to resume the issue | ||
* A description of the workflow needed to reproduce the bug, | ||
|
||
> _NOTE:_ Don’t hesitate giving as much information as you can (OS, PHP version extensions …) | ||
## Pull requests | ||
|
||
### Matching coding standards | ||
|
||
Before each commit, be sure to match sonata coding standards by running the following command for fix: | ||
|
||
```bash | ||
make cs | ||
``` | ||
|
||
And then, add fixed file to your commit before push. | ||
|
||
Be sure to add only **your modified files**. If another files are fixed by cs tools, just revert it before commit. | ||
|
||
### Sending a Pull Request | ||
|
||
When you send a PR, just make sure that: | ||
|
||
* You add valid test cases. | ||
* Tests are green. | ||
* The related documentation is up-to-date. | ||
* You make the PR on the same branch you based your changes on. If you see commits | ||
that you did not make in your PR, you're doing it wrong. | ||
* Also don't forget to add a comment when you update a PR with a ping to the maintainer (``@username``), so he/she will get a notification. | ||
|
||
## Contributing to the documentation | ||
|
||
You need to install the python tool to check and validate the sphinx syntax: | ||
|
||
pip install -r Resources/doc/requirements.txt | ||
|
||
and you can check the documentation with the command: | ||
|
||
cd Resources/doc/ | ||
rm -rf _build && sphinx-build -W -b html -d _build/doctrees . _build/html | ||
|
||
The html will be available in the ``_build/html`` folder. |
Oops, something went wrong.