Skip to content
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

Reformat the repo with prettier #49

Merged
merged 3 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ jobs:
run: ./vendor/bin/phpunit -c ./phpunit.xml.dist
- name: Static Analysis
run: ./vendor/bin/psalm
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: "NPM Install"
run: npm ci
- name: Check Prettier
run: npm run prettier:check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea/
composer.lock
.phpunit.result.cache
node_modules
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# vendor files
node_modules
vendor
*.lock
package-lock.json

# IDE Config
.vscode
.idea

# Test output
.phpunit.result.cache

7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 120,
"tabWidth": 4,
"semi": true,
"trailingComma": "all",
"phpVersion": "7.4"
}
5 changes: 5 additions & 0 deletions .run/psalm.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="psalm" type="PhpLocalRunConfigurationType" factoryName="PHP Console" path="$PROJECT_DIR$/vendor/bin/psalm" scriptParameters="--output-format=phpstorm --no-cache">
<method v="2" />
</configuration>
</component>
66 changes: 39 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,121 +1,133 @@
# Change Log

## [v2.0.1](https://github.com/vanilla/garden-container/tree/v2.0.1) (2017-05-05)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.5.1...v2.0.1)

## [v1.5.1](https://github.com/vanilla/garden-container/tree/v1.5.1) (2017-05-05)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v2.0...v1.5.1)

**Merged pull requests:**

- Make sure our tests fail on unexpected notices [\#25](https://github.com/vanilla/garden-container/pull/25) ([tburry](https://github.com/tburry))
- Make sure our tests fail on unexpected notices [\#25](https://github.com/vanilla/garden-container/pull/25) ([tburry](https://github.com/tburry))

## [v2.0](https://github.com/vanilla/garden-container/tree/v2.0) (2017-05-03)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.5...v2.0)

**Merged pull requests:**

- Implement psr/container [\#24](https://github.com/vanilla/garden-container/pull/24) ([tburry](https://github.com/tburry))
- Implement psr/container [\#24](https://github.com/vanilla/garden-container/pull/24) ([tburry](https://github.com/tburry))

## [v1.5](https://github.com/vanilla/garden-container/tree/v1.5) (2017-05-03)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.4...v1.5)

**Implemented enhancements:**

- Add constructor args to references [\#16](https://github.com/vanilla/garden-container/issues/16)
- Adds support for dumping instances from the container. [\#23](https://github.com/vanilla/garden-container/pull/23) ([kaecyra](https://github.com/kaecyra))
- Add constructor args to references [\#16](https://github.com/vanilla/garden-container/issues/16)
- Adds support for dumping instances from the container. [\#23](https://github.com/vanilla/garden-container/pull/23) ([kaecyra](https://github.com/kaecyra))

**Fixed bugs:**

- Fix ordinal references in constructor args [\#22](https://github.com/vanilla/garden-container/pull/22) ([tburry](https://github.com/tburry))
- Fix ordinal references in constructor args [\#22](https://github.com/vanilla/garden-container/pull/22) ([tburry](https://github.com/tburry))

## [v1.4](https://github.com/vanilla/garden-container/tree/v1.4) (2017-04-02)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.3.4...v1.4)

**Implemented enhancements:**

- Add variadics [\#15](https://github.com/vanilla/garden-container/issues/15)
- Allow multiple aliases in addAlias\(\) [\#21](https://github.com/vanilla/garden-container/pull/21) ([tburry](https://github.com/tburry))
- Add constructor args to references [\#20](https://github.com/vanilla/garden-container/pull/20) ([tburry](https://github.com/tburry))
- Add better error messages for required parameters [\#18](https://github.com/vanilla/garden-container/pull/18) ([tburry](https://github.com/tburry))
- Deep copy rules when cloning [\#17](https://github.com/vanilla/garden-container/pull/17) ([tburry](https://github.com/tburry))
- Add variadics [\#15](https://github.com/vanilla/garden-container/issues/15)
- Allow multiple aliases in addAlias\(\) [\#21](https://github.com/vanilla/garden-container/pull/21) ([tburry](https://github.com/tburry))
- Add constructor args to references [\#20](https://github.com/vanilla/garden-container/pull/20) ([tburry](https://github.com/tburry))
- Add better error messages for required parameters [\#18](https://github.com/vanilla/garden-container/pull/18) ([tburry](https://github.com/tburry))
- Deep copy rules when cloning [\#17](https://github.com/vanilla/garden-container/pull/17) ([tburry](https://github.com/tburry))

**Fixed bugs:**

- Constructor incorrectly injects null to required parameter [\#14](https://github.com/vanilla/garden-container/issues/14)
- Allow reference arguments to be resolved by ordinal [\#19](https://github.com/vanilla/garden-container/pull/19) ([tburry](https://github.com/tburry))
- Constructor incorrectly injects null to required parameter [\#14](https://github.com/vanilla/garden-container/issues/14)
- Allow reference arguments to be resolved by ordinal [\#19](https://github.com/vanilla/garden-container/pull/19) ([tburry](https://github.com/tburry))

**Merged pull requests:**

- Upgrade PHPUnit support to 5.6 [\#13](https://github.com/vanilla/garden-container/pull/13) ([tburry](https://github.com/tburry))
- Remove support for PHP versions older than 5.6 [\#12](https://github.com/vanilla/garden-container/pull/12) ([tburry](https://github.com/tburry))
- Upgrade PHPUnit support to 5.6 [\#13](https://github.com/vanilla/garden-container/pull/13) ([tburry](https://github.com/tburry))
- Remove support for PHP versions older than 5.6 [\#12](https://github.com/vanilla/garden-container/pull/12) ([tburry](https://github.com/tburry))

## [v1.3.4](https://github.com/vanilla/garden-container/tree/v1.3.4) (2017-02-05)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.3.3...v1.3.4)

**Fixed bugs:**

- Fix issue with cyclic shared dependencies [\#11](https://github.com/vanilla/garden-container/pull/11) ([tburry](https://github.com/tburry))
- Fix issue with cyclic shared dependencies [\#11](https://github.com/vanilla/garden-container/pull/11) ([tburry](https://github.com/tburry))

## [v1.3.3](https://github.com/vanilla/garden-container/tree/v1.3.3) (2017-02-03)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.3.2...v1.3.3)

**Fixed bugs:**

- Fix interface type-hint issue [\#10](https://github.com/vanilla/garden-container/pull/10) ([tburry](https://github.com/tburry))
- Fix interface type-hint issue [\#10](https://github.com/vanilla/garden-container/pull/10) ([tburry](https://github.com/tburry))

## [v1.3.2](https://github.com/vanilla/garden-container/tree/v1.3.2) (2016-12-22)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.3.1...v1.3.2)

**Implemented enhancements:**

- Support shared interfaces [\#9](https://github.com/vanilla/garden-container/pull/9) ([tburry](https://github.com/tburry))
- Support shared interfaces [\#9](https://github.com/vanilla/garden-container/pull/9) ([tburry](https://github.com/tburry))

## [v1.3.1](https://github.com/vanilla/garden-container/tree/v1.3.1) (2016-12-20)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.3.0...v1.3.1)

**Fixed bugs:**

- Fix bug where the container reports that it has an empty rule [\#7](https://github.com/vanilla/garden-container/pull/7) ([tburry](https://github.com/tburry))
- Fix bug where the container reports that it has an empty rule [\#7](https://github.com/vanilla/garden-container/pull/7) ([tburry](https://github.com/tburry))

**Merged pull requests:**

- Version 1.3.1 [\#8](https://github.com/vanilla/garden-container/pull/8) ([tburry](https://github.com/tburry))
- Version 1.3.1 [\#8](https://github.com/vanilla/garden-container/pull/8) ([tburry](https://github.com/tburry))

## [v1.3.0](https://github.com/vanilla/garden-container/tree/v1.3.0) (2016-12-20)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.2.0...v1.3.0)

**Merged pull requests:**

- Version 1.3 [\#6](https://github.com/vanilla/garden-container/pull/6) ([tburry](https://github.com/tburry))
- Version 1.3 [\#6](https://github.com/vanilla/garden-container/pull/6) ([tburry](https://github.com/tburry))

## [v1.2.0](https://github.com/vanilla/garden-container/tree/v1.2.0) (2016-12-15)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.1.0...v1.2.0)

**Implemented enhancements:**

- Add the Container-\>hasRule\(\) method [\#5](https://github.com/vanilla/garden-container/pull/5) ([tburry](https://github.com/tburry))
- Add the Container-\>hasRule\(\) method [\#5](https://github.com/vanilla/garden-container/pull/5) ([tburry](https://github.com/tburry))

## [v1.1.0](https://github.com/vanilla/garden-container/tree/v1.1.0) (2016-12-14)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v1.0.0...v1.1.0)

**Implemented enhancements:**

- Add rule getters [\#4](https://github.com/vanilla/garden-container/pull/4) ([tburry](https://github.com/tburry))
- Make sure explicit constructor args can override automatic dependency injections [\#3](https://github.com/vanilla/garden-container/pull/3) ([tburry](https://github.com/tburry))
- Add rule getters [\#4](https://github.com/vanilla/garden-container/pull/4) ([tburry](https://github.com/tburry))
- Make sure explicit constructor args can override automatic dependency injections [\#3](https://github.com/vanilla/garden-container/pull/3) ([tburry](https://github.com/tburry))

## [v1.0.0](https://github.com/vanilla/garden-container/tree/v1.0.0) (2016-12-14)

[Full Changelog](https://github.com/vanilla/garden-container/compare/v0.1.0...v1.0.0)

**Implemented enhancements:**

- Add rule factory support [\#2](https://github.com/vanilla/garden-container/pull/2) ([tburry](https://github.com/tburry))
- Add rule factory support [\#2](https://github.com/vanilla/garden-container/pull/2) ([tburry](https://github.com/tburry))

**Merged pull requests:**

- Scrutinizer Auto-Fixes [\#1](https://github.com/vanilla/garden-container/pull/1) ([scrutinizer-auto-fixer](https://github.com/scrutinizer-auto-fixer))
- Scrutinizer Auto-Fixes [\#1](https://github.com/vanilla/garden-container/pull/1) ([scrutinizer-auto-fixer](https://github.com/scrutinizer-auto-fixer))

## [v0.1.0](https://github.com/vanilla/garden-container/tree/v0.1.0) (2016-11-11)


\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_
5 changes: 2 additions & 3 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
The MIT License
===============
# The MIT License

Copyright (c) 2014-2016 Vanilla Forums Inc.

Expand All @@ -19,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
Loading
Loading