Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
19 changes: 10 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.php]
ij_php_space_before_short_closure_left_parenthesis = false
ij_php_space_after_type_cast = true
[*.js]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.neon]
indent_size = 4
[*.php]
ij_php_space_before_short_closure_left_parenthesis = false
ij_php_space_after_type_cast = true

[*.yml]
[*.yaml]
indent_size = 2

[*.xml]
[*.yml]
indent_size = 2

[*.xml.dist]
indent_size = 2
[LICENSE*]
indent_style = unset
indent_size = unset
30 changes: 15 additions & 15 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@ respect all community members.

Examples of behavior that contributes to a positive environment for our community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall community
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery, and sexual attention or advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Enforcement Responsibilities

Core team members are responsible for clarifying and enforcing our standards of acceptable behavior and will take
Core team members are responsible for clarifying and enforcing our standards of acceptable behavior and will take
appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Core team members have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits,
issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for
issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for
moderation decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing
the community in public spaces. Examples of representing a project or community include using an official e-mail
the community in public spaces. Examples of representing a project or community include using an official email
address, posting via an official social media account, within project GitHub, official forum or acting as an appointed
representative at an online or offline event.

Expand All @@ -54,7 +54,7 @@ deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in
the community.

**Consequence**: A private, written warning from core team members, providing clarity around the nature of the violation
Expand All @@ -66,7 +66,7 @@ and an explanation of why the behavior was inappropriate. A public apology may b

**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including
unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding
interactions in community spaces as well as external channels like social media. Violating these terms may lead to
interactions in community spaces as well as external channels like social media. Violating these terms may lead to
a temporary or permanent ban.

### 3. Temporary Ban
Expand Down
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# These are supported funding model platforms

---
github: [terabytesoftw]
19 changes: 10 additions & 9 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
### What steps will reproduce the problem?
# Issue Report

### What is the expected result?
## What steps will reproduce the problem?

### What do you get instead?
## What is the expected result?

## What do you get instead?

### Additional info
## Additional info

| Q | A
| ---------------- | ---
| Version | 1.0.?
| PHP version |
| Operating system |
| Q | A |
| ---------------- | ----- |
| Version | 1.0.? |
| PHP version | |
| Operating system | |
14 changes: 8 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
| Q | A
| ------------- | ---
| Is bugfix? | ✔️/❌
| New feature? | ✔️/❌
| Breaks BC? | ✔️/❌
| Fixed issues | <!-- comma-separated list of tickets # fixed by the PR, if any -->
# Pull Request

| Q | A |
| ------------ | ------------------------------------------------------------------ |
| Is bugfix? | ✔️/❌ |
| New feature? | ✔️/❌ |
| Breaks BC? | ✔️/❌ |
| Fixed issues | <!-- comma-separated list of tickets # fixed by the PR, if any --> |
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: 2
updates:
# Maintain dependencies for GitHub Actions
Expand Down
7 changes: 7 additions & 0 deletions .github/linters/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
paths:
.github/workflows/**/*.yml:
ignore:
- '"pull_request" section is alias node but mapping node is expected'
- '"push" section is alias node but mapping node is expected'
- "section is alias node but mapping node is expected"
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: build

permissions:
contents: read

jobs:
phpunit:
uses: php-forge/actions/.github/workflows/phpunit.yml@v2
uses: yii2-framework/actions/.github/workflows/phpunit.yml@v1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
composer-command: |
composer require yiisoft/yii2:22.0.x-dev --prefer-dist --no-progress --no-interaction --no-scripts --ansi
composer-command: require yiisoft/yii2:22.0.x-dev
concurrency-group: phpunit-${{ github.workflow }}-${{ github.ref }}
hook: |

phpunit-compatibility:
uses: php-forge/actions/.github/workflows/phpunit.yml@v2
uses: yii2-framework/actions/.github/workflows/phpunit.yml@v1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
concurrency-group: phpunit-compatibility-${{ github.workflow }}-${{ github.ref }}
concurrency-group: |
phpunit-compatibility-${{ github.workflow }}-${{ github.ref }}
extensions: intl
27 changes: 13 additions & 14 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: Composer require checker

permissions:
contents: read
pull-requests: write

jobs:
composer-require-checker:
uses: php-forge/actions/.github/workflows/composer-require-checker.yml@v2
uses: yii2-framework/actions/.github/workflows/composer-require-checker.yml@v1
27 changes: 13 additions & 14 deletions .github/workflows/ecs.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
push: *ignore-paths

name: ecs

permissions:
contents: read
pull-requests: write

jobs:
easy-coding-standard:
uses: php-forge/actions/.github/workflows/ecs.yml@v2
uses: yii2-framework/actions/.github/workflows/ecs.yml@v1
17 changes: 17 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
on:
- pull_request
- push

name: linter

permissions:
checks: write
contents: read
statuses: write

jobs:
linter:
uses: yii2-framework/actions/.github/workflows/super-linter.yml@v1
secrets:
AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38 changes: 17 additions & 21 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
---
on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
push: *ignore-paths

name: static analysis

permissions:
contents: read
pull-requests: write

jobs:
phpstan:
uses: php-forge/actions/.github/workflows/phpstan.yml@v2
uses: yii2-framework/actions/.github/workflows/phpstan.yml@v1
with:
concurrency-group: phpstan-${{ github.workflow }}-${{ github.ref }}
phpstan-console:
uses: php-forge/actions/.github/workflows/phpstan.yml@v2
uses: yii2-framework/actions/.github/workflows/phpstan.yml@v1
with:
configuration: 'phpstan-console.neon'
concurrency-group: phpstan-console-${{ github.workflow }}-${{ github.ref }}
configuration: "phpstan-console.neon"
concurrency-group: |
phpstan-console-${{ github.workflow }}-${{ github.ref }}
25 changes: 14 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
#code coverage
/code_coverage
code_coverage

# composer vendor dir
/vendor
/composer.lock
# composer
composer.lock

#copilot
copilot

#node_modules
/node_modules
node_modules

# phpstorm project files
.idea

# phpunit
phpunit.phar
.phpunit.result.cache
.phpunit.cache
phpunit.xlm
.phpunit.*
phpunit.*

# vendor directory
vendor

#yii3 config packages
/config/packages
# vscode
.vscode

# windows thumbnail cache
Thumbs.db
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
preset: psr12
risky: true

Expand Down
Loading
Loading