-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More meta files added. Automatic code style fixer added.
- Loading branch information
1 parent
6314c2d
commit c3e7ddc
Showing
9 changed files
with
245 additions
and
73 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/vendor | ||
composer.phar | ||
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,64 @@ | ||
<?php | ||
|
||
$finder = Symfony\Component\Finder\Finder::create() | ||
->notPath('bootstrap/cache') | ||
->notPath('storage') | ||
->notPath('vendor') | ||
->in(__DIR__) | ||
->name('*.php') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true); | ||
|
||
$fixers = [ | ||
'-psr0', | ||
'-php_closing_tag', | ||
'blankline_after_open_tag', | ||
'-concat_without_spaces', | ||
'double_arrow_multiline_whitespaces', | ||
'duplicate_semicolon', | ||
'empty_return', | ||
'extra_empty_lines', | ||
'include', | ||
'join_function', | ||
'list_commas', | ||
'multiline_array_trailing_comma', | ||
'namespace_no_leading_whitespace', | ||
'newline_after_open_tag', | ||
'no_blank_lines_after_class_opening', | ||
'no_empty_lines_after_phpdocs', | ||
'object_operator', | ||
'operators_spaces', | ||
'phpdoc_indent', | ||
'phpdoc_no_access', | ||
'-phpdoc_no_package', | ||
'phpdoc_scalar', | ||
'phpdoc_short_description', | ||
'phpdoc_to_comment', | ||
'phpdoc_trim', | ||
'phpdoc_type_to_var', | ||
'-phpdoc_var_without_name', | ||
'remove_leading_slash_use', | ||
'remove_lines_between_uses', | ||
'return', | ||
'self_accessor', | ||
'single_array_no_trailing_comma', | ||
'single_blank_line_before_namespace', | ||
'single_quote', | ||
'spaces_before_semicolon', | ||
'spaces_cast', | ||
'standardize_not_equal', | ||
'ternary_spaces', | ||
'trim_array_spaces', | ||
'unalign_equals', | ||
'unary_operators_spaces', | ||
'whitespacy_lines', | ||
'multiline_spaces_before_semicolon', | ||
'short_array_syntax', | ||
'-short_echo_tag', | ||
]; | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
->fixers($fixers) | ||
->finder($finder) | ||
->setUsingCache(true); |
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,74 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, gender identity and expression, level of experience, | ||
nationality, personal appearance, race, religion, or sexual identity and | ||
orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers 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, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ |
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,38 @@ | ||
# Contributing to Yii2 Google Analytics Tracking | ||
|
||
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. | ||
|
||
## Workflow | ||
|
||
- Fork the project. | ||
- Make your bug fix or feature addition. | ||
- Add tests for it. This is important so we don't break it in a future version unintentionally. | ||
- Send a pull request. Bonus points for topic branches. | ||
|
||
Please make sure that you have [set up your user name and email address](http://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) for use with Git. | ||
|
||
Pull requests for bug fixes must be based on the current stable branch. | ||
|
||
We are trying to keep backwards compatibility breaks in Yii2 Google Analytics Widget to an absolute minimum. Please take this into account when proposing changes. | ||
|
||
Due to time constraints, we are not always able to respond as quickly as we would like. Please do not take delays personal and feel free to remind us if you feel that we forgot to respond. | ||
|
||
## Coding Guidelines | ||
|
||
This project comes with a configuration file for php-cs-fixer (.php_cs) that you can use to (re)format your sourcecode for compliance with this project's coding guidelines: | ||
|
||
```sh | ||
vendor/bin/php-cs-fixer fix | ||
``` | ||
|
||
## PHPUnit tests | ||
|
||
The phpunit script can be used to invoke the PHPUnit test runner: | ||
|
||
```sh | ||
phpunit | ||
``` | ||
|
||
## Reporting issues | ||
|
||
- [General problems](https://github.com/cybercog/yii2-google-analytics/issues) |
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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
{ | ||
"name": "cybercog/yii2-google-analytics", | ||
"description": "Google Analytics extension for the Yii2 framework", | ||
"keywords": [ | ||
"yii2", | ||
"google", | ||
"analytics" | ||
], | ||
"type": "yii2-extension", | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Anton Komarev", | ||
"email": "[email protected]" | ||
"name": "cybercog/yii2-google-analytics", | ||
"description": "Google Analytics Widget for the Yii2 framework", | ||
"keywords": [ | ||
"yii2", | ||
"google", | ||
"analytics" | ||
], | ||
"type": "yii2-extension", | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Anton Komarev", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"yiisoft/yii2": "*" | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "^1.11" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"cybercog\\yii\\googleanalytics\\": "src" | ||
} | ||
} | ||
], | ||
"require": { | ||
"yiisoft/yii2": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"cybercog\\yii\\googleanalytics\\": "src" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.