-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from ans-group/psr-12-compliance
Bring to PSR12 compliance
- Loading branch information
Showing
38 changed files
with
501 additions
and
427 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
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 |
---|---|---|
@@ -1,24 +1,20 @@ | ||
CONTRIBUTING | ||
============ | ||
# CONTRIBUTING | ||
|
||
|
||
Contributions are welcome and we look forward to seeing what you can bring to the project. | ||
|
||
We do reserve the right to reject changes that we feel will not benefit users or take the project in a direction we do not wish to take. | ||
We recommend discussing any large changes with us prior to making your changes, you can do this via an issue or email if you prefer. | ||
|
||
|
||
Issues | ||
------ | ||
## Issues | ||
|
||
Issues should include a title and clear description with as much relevant information as possible. | ||
|
||
If you'd like to discuss a potential change, you can open an issue or reach out to our open-source team via **[email protected]** who will get back to you as soon as possible. | ||
|
||
If you think you have identified a security vulnerability, please contact our team via **[email protected]** instead of using the issue tracker. | ||
|
||
|
||
Submitting Changes | ||
------------------ | ||
## Submitting Changes | ||
|
||
Before submitting your [pull request](https://help.github.com/en/articles/about-pull-requests), | ||
please make sure that the coding standards are respected and that all tests are passing. | ||
|
@@ -30,14 +26,25 @@ but larger changes should follow [The Seven Rules](https://chris.beams.io/posts/ | |
|
||
We don't mind squashing small changes to tidy things up but please don't squash an entire branch as this can hinder code reviews. | ||
|
||
## Coding Standards | ||
|
||
### All Standards | ||
|
||
All coding standards can be checked by running `composer standards:check` and any issues which can be automatically | ||
resolved can be fixed by running `composer standards:fix`. | ||
|
||
Coding Standards | ||
--------------- | ||
### PSR12 | ||
|
||
This project adheres to the [PSR-12 Coding Standard](https://www.php-fig.org/psr/psr-12/). | ||
|
||
#### PHP CodeSniffer && PHP Code Beautifier | ||
|
||
This can be checked with `composer phpcs` and issues which can be fixed automatically can be fixed by running `composer phpcs:fix`. | ||
|
||
|
||
## Testing | ||
|
||
Testing | ||
------- | ||
|
||
Please ensure all new functionality is matched with appropriate tests, we will advise if we feel more is needed. | ||
|
||
Tests can be run with `composer test`. |
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
class AppHealth | ||
{ | ||
|
||
public function __construct( | ||
/** | ||
* @var Collection<int, class-string> | ||
|
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 |
---|---|---|
|
@@ -35,4 +35,4 @@ public function status(): Status | |
|
||
return $this->okay(); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.