Skip to content

Commit 0079066

Browse files
committed
1 parent 4179206 commit 0079066

Some content is hidden

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

45 files changed

+5957
-8
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/phpunit.xml.dist export-ignore
8+
/.scrutinizer.yml export-ignore
9+
/tests export-ignore

.gitignore

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,41 @@
1-
assets/*
2-
!assets/.gitignore
3-
protected/runtime/*
4-
!protected/runtime/.gitignore
5-
protected/data/*.db
6-
themes/classic/views/
1+
# phpstorm project files
2+
.idea
3+
4+
# netbeans project files
5+
nbproject
6+
7+
# zend studio for eclipse project files
8+
.buildpath
9+
.project
10+
.settings
11+
12+
# windows thumbnail cache
13+
Thumbs.db
14+
15+
# composer vendor dir
16+
/vendor
17+
18+
# composer itself is not needed
19+
composer.phar
20+
21+
# Mac DS_Store Files
22+
.DS_Store
23+
24+
# phpunit itself is not needed
25+
phpunit.phar
26+
27+
# local phpunit config
28+
/phpunit.xml
29+
30+
# local phpunit config
31+
/.phpunit.result.cache
32+
33+
# local tests configuration
34+
/tests/data/config.local.php
35+
36+
# runtime cache
37+
/tests/runtime
38+
39+
# PHP CS Fixer
40+
.php_cs.cache
41+
.php-cs-fixer.cache

.scrutinizer.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# language: php
2+
checks:
3+
php:
4+
verify_property_names: true
5+
simplify_boolean_return: true
6+
return_doc_comments: true
7+
return_doc_comment_if_not_inferrable: true
8+
remove_extra_empty_lines: true
9+
properties_in_camelcaps: true
10+
phpunit_assertions: true
11+
parameters_in_camelcaps: true
12+
parameter_doc_comments: true
13+
param_doc_comment_if_not_inferrable: true
14+
overriding_parameter: true
15+
no_short_variable_names:
16+
minimum: '3'
17+
no_short_method_names:
18+
minimum: '3'
19+
no_long_variable_names:
20+
maximum: '20'
21+
no_goto: true
22+
naming_conventions:
23+
local_variable: '^[a-z][a-zA-Z0-9]*$'
24+
abstract_class_name: ^Abstract|Factory$
25+
utility_class_name: 'Utils?$'
26+
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
27+
property_name: '^[a-z][a-zA-Z0-9]*$'
28+
method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$'
29+
parameter_name: '^[a-z][a-zA-Z0-9]*$'
30+
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
31+
type_name: '^[A-Z][a-zA-Z0-9]*$'
32+
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
33+
isser_method_name: '^(?:is|has|should|may|supports)'
34+
more_specific_types_in_doc_comments: true
35+
fix_use_statements:
36+
remove_unused: true
37+
preserve_multiple: false
38+
preserve_blanklines: false
39+
order_alphabetically: false
40+
fix_line_ending: true
41+
check_method_contracts:
42+
verify_interface_like_constraints: true
43+
verify_documented_constraints: true
44+
verify_parent_constraints: true
45+
build:
46+
image: default-bionic
47+
nodes:
48+
tests: true
49+
analysis:
50+
tests:
51+
override:
52+
- php-scrutinizer-run

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: psr2

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: php
2+
3+
php:
4+
- 7.4
5+
- 8.0
6+
- 8.1
7+
8+
install:
9+
# - composer global require "fxp/composer-asset-plugin:~1.4.4"
10+
- export PATH="$HOME/.composer/vendor/bin:$PATH"
11+
- composer install --prefer-dist --no-interaction
12+
13+
#script:
14+
# - phpunit

0 commit comments

Comments
 (0)