Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit fadb771

Browse files
committed
Updated to version 1.0.9
1 parent 9a32fda commit fadb771

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2911
-4148
lines changed

.gitattributes

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
/resources export-ignore
21
/src/public/js/vue export-ignore
32
/src/public/js/eliasis-complement.js export-ignore
43
/src/public/sass export-ignore
54
/src/public/images export-ignore
65
/tests export-ignore
7-
/lib export-ignore
6+
/docs export-ignore
7+
/src/bootstrap.php export-ignore
8+
/vendor export-ignore
9+
/resources export-ignore
810
.gitattributes export-ignore
911
.gitignore export-ignore
12+
_config.yml export-ignore
13+
.travis.yml export-ignore
1014
CHANGELOG.md export-ignore
15+
phpunit.xml.dist export-ignore
1116
CONDUCT.md export-ignore
1217
contributors.txt export-ignore
1318
README.md export-ignore
1419
README-ES.md export-ignore
1520
.editorconfig export-ignore
16-
composer.lock export-ignore
21+
composer.lock export-ignore
22+
package.json export-ignore
23+
index.js export-ignore

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ composer.lock
44
composer-test.lock
55
build/artifacts/
66
artifacts/
7+
tests/sample-app/components/.components-states.jsond
8+
tests/sample-app/modules/.modules-states.jsond
9+
tests/sample-app/plugins/.plugins-states.jsond
10+
tests/sample-app/templates/.templates-states.jsond
711
docs/_build
812
docs/*.pyc
13+
package-lock.json
914
.git*/
15+
node_modules/
16+
_docpress/
17+
vendor/
1018
.idea
11-
.DS_STORE
19+
.DS_STORE

.php_cs.dist

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<?php
2+
return \PhpCsFixer\Config::create()
3+
->setRiskyAllowed(true)
4+
->setRules(array(
5+
'@PSR2' => true,
6+
'array_syntax' => ['syntax' => 'short'],
7+
'binary_operator_spaces' => ['align_equals' => false, 'align_double_arrow' => false],
8+
'blank_line_after_opening_tag' => true,
9+
'blank_line_after_namespace' => false,
10+
'blank_line_before_return' => true,
11+
'cast_spaces' => true,
12+
// 'class_keyword_remove' => true,
13+
'combine_consecutive_unsets' => true,
14+
'concat_space' => ['spacing' => 'one'],
15+
'declare_equal_normalize' => true,
16+
'declare_strict_types' => false,
17+
'dir_constant' => true,
18+
'ereg_to_preg' => true,
19+
'function_typehint_space' => true,
20+
// 'general_phpdoc_annotation_remove' => ['author', 'category', 'package', 'copyright', 'version'],
21+
'hash_to_slash_comment' => true,
22+
'heredoc_to_nowdoc' => true,
23+
'include' => true,
24+
'indentation_type' => true,
25+
// 'is_null' => ['use_yoda_style' => false],
26+
'linebreak_after_opening_tag' => true,
27+
'lowercase_cast' => true,
28+
// 'mb_str_functions' => true,
29+
'method_separation' => true,
30+
'modernize_types_casting' => true,
31+
'native_function_casing' => true,
32+
// 'native_function_invocation' => true,
33+
'new_with_braces' => false, //
34+
'no_alias_functions' => true,
35+
'no_blank_lines_after_class_opening' => true,
36+
'no_blank_lines_after_phpdoc' => true,
37+
'no_blank_lines_before_namespace' => true,
38+
'no_empty_comment' => true,
39+
'no_empty_phpdoc' => true,
40+
'no_empty_statement' => true,
41+
'no_extra_consecutive_blank_lines' => ['break', 'continue', 'curly_brace_block', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'throw', 'use', 'useTrait'],
42+
'no_leading_import_slash' => true,
43+
'no_leading_namespace_whitespace' => true,
44+
'no_mixed_echo_print' => ['use' => 'echo'],
45+
'no_multiline_whitespace_around_double_arrow' => true,
46+
'no_multiline_whitespace_before_semicolons' => true,
47+
'no_php4_constructor' => true,
48+
'no_short_bool_cast' => true,
49+
'no_short_echo_tag' => false,
50+
'no_singleline_whitespace_before_semicolons' => true,
51+
'no_spaces_around_offset' => true,
52+
'no_trailing_comma_in_list_call' => true,
53+
'no_trailing_comma_in_singleline_array' => true,
54+
'no_trailing_whitespace' => true,
55+
'no_trailing_whitespace_in_comment' => true,
56+
'no_unneeded_control_parentheses' => true,
57+
'no_unreachable_default_argument_value' => true,
58+
'no_unused_imports' => true,
59+
'no_useless_else' => true,
60+
'no_useless_return' => true,
61+
'no_whitespace_before_comma_in_array' => true,
62+
'no_whitespace_in_blank_line' => true,
63+
'normalize_index_brace' => true,
64+
'not_operator_with_space' => false,
65+
'not_operator_with_successor_space' => true,
66+
'object_operator_without_whitespace' => true,
67+
'ordered_class_elements' => true,
68+
'ordered_imports' => true,
69+
'php_unit_construct' => true,
70+
'php_unit_dedicate_assert' => true,
71+
'php_unit_fqcn_annotation' => true,
72+
'php_unit_strict' => true,
73+
// 'phpdoc_add_missing_param_annotation' => true,
74+
'phpdoc_align' => true,
75+
'phpdoc_annotation_without_dot' => true,
76+
'phpdoc_indent' => true,
77+
'phpdoc_inline_tag' => true,
78+
'phpdoc_no_access' => true,
79+
'phpdoc_no_alias_tag' => ['property-read' => 'property', 'property-write' => 'property', 'type' => 'var'],
80+
'phpdoc_no_empty_return' => true,
81+
'phpdoc_no_package' => true,
82+
// 'phpdoc_no_useless_inheritdoc' => true,
83+
'phpdoc_order' => true,
84+
'phpdoc_return_self_reference' => true,
85+
'phpdoc_scalar' => true,
86+
'phpdoc_separation' => false,
87+
'phpdoc_single_line_var_spacing' => true,
88+
// 'phpdoc_summary' => true,
89+
'phpdoc_to_comment' => true,
90+
'phpdoc_trim' => true,
91+
'phpdoc_types' => true,
92+
'phpdoc_var_without_name' => true,
93+
'pow_to_exponentiation' => true,
94+
// 'pre_increment' => true,
95+
'protected_to_private' => true,
96+
'psr0' => true,
97+
'psr4' => true,
98+
'random_api_migration' => true,
99+
'return_type_declaration' => ['space_before' => 'one'],
100+
'self_accessor' => true,
101+
'short_scalar_cast' => true,
102+
// 'silenced_deprecation_error' => true,
103+
// 'simplified_null_return' => true,
104+
'single_blank_line_before_namespace' => false,
105+
'single_quote' => true,
106+
'space_after_semicolon' => true,
107+
'standardize_not_equals' => true,
108+
// 'strict_comparison' => true,
109+
'ternary_operator_spaces' => true,
110+
'strict_param' => true,
111+
'ternary_to_null_coalescing' => false,
112+
// 'trailing_comma_in_multiline_array' => true,
113+
'trim_array_spaces' => true,
114+
'unary_operator_spaces' => true,
115+
'whitespace_after_comma_in_array' => true
116+
))
117+
->setFinder(
118+
PhpCsFixer\Finder::create()
119+
->in(__DIR__)
120+
)->setLineEnding("\n");

.travis.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
language: php
2+
3+
sudo: false
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
9+
dist: trusty
10+
11+
branches:
12+
only:
13+
- master
14+
15+
notifications:
16+
email:
17+
on_success: never
18+
on_failure: change
19+
20+
git:
21+
depth: 5
22+
23+
php:
24+
- 5.6
25+
- 7.0
26+
- 7.1
27+
- 7.2
28+
- hhvm
29+
- nightly
30+
31+
env:
32+
- WP_PROJECT_TYPE=plugin WP_VERSION=latest WP_MULTISITE=0 WP_TEST_URL=http://localhost:12000 WP_TEST_USER=test WP_TEST_USER_PASS=test
33+
34+
matrix:
35+
include:
36+
- php: 7.2
37+
env: WP_VERSION=latest
38+
allow_failures:
39+
- php: nightly
40+
41+
before_script:
42+
- export PATH="./vendor/bin:$PATH"
43+
- travis_retry composer self-update
44+
- travis_retry composer install --no-interaction --prefer-source --dev
45+
- |
46+
if [[ ! -z "$WP_VERSION" ]] ; then
47+
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
48+
fi
49+
50+
script:
51+
- phpunit
52+
- |
53+
if [[ "$WP_VERSION" ]] ; then
54+
phpunit --coverage-clover=coverage.xml
55+
phpcs --standard=phpcs.xml $(find . -name '*.php')
56+
phpmd src,tests text ./phpmd.xml
57+
fi
58+
59+
after_success:
60+
- bash <(curl -s https://codecov.io/bash)

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# CHANGELOG
22

3+
## 1.1.0 - 2018-01-17
4+
5+
* Unit tests supported by `PHPUnit` were added.
6+
7+
* The repository was synchronized with Travis CI to implement continuous integration.
8+
9+
* Implemented `PHP Mess Detector` to detect inconsistencies in code styles.
10+
11+
* Implemented `PHP Code Beautifier and Fixer` to fixing errors automatically.
12+
13+
* Implemented `PHP Coding Standards Fixer` to organize PHP code automatically according to PSR standards.
14+
15+
* Implemented `PSR2 code standard` from all library PHP files.
16+
17+
* Implemented `Codacy` to automates code reviews and monitors code quality over time.
18+
19+
* Implemented `Codecov` to coverage reports.
20+
21+
* Added `Eliasis\Complement\Complement::getCurrentID()` method.
22+
23+
* Added `Eliasis\Complement\Complement::setCurrentID()` method.
24+
25+
* Deprecated `Eliasis\Complement\Traits\ComplementHandler::get()` method.
26+
27+
* Added `Eliasis\Complement\Traits\ComplementHandler::getOption()` method.
28+
29+
* Deprecated `Eliasis\Complement\Traits\ComplementHandler::set()` method.
30+
31+
* Added `Eliasis\Complement\Traits\ComplementHandler::setOption()` method.
32+
33+
* Deprecated `Eliasis\Complement\Complement\Traits\ComplementHandler::instance()` method.
34+
35+
* Added `Eliasis\Complement\Complement\Traits\ComplementHandler::getControllerInstance()` method.
36+
337
## 1.0.9 - 2017-09-07
438

539
* Renamed class `Eliasis\Module\Module` to `Eliasis\Complement\Complement`.

CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ This code of conduct applies both within project spaces and in public spaces whe
1919

2020
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
2121

22-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
22+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
theme: jekyll-theme-cayman

0 commit comments

Comments
 (0)