File tree 10 files changed +393
-338
lines changed
10 files changed +393
-338
lines changed Original file line number Diff line number Diff line change 15
15
* .bat text
16
16
* .sql text
17
17
* .yml text
18
+ * .neon text
18
19
19
20
20
21
# Ensure those won't be messed up with
31
32
/phpunit.xml export-ignore
32
33
/phpcs.xml export-ignore
33
34
/phpmd.xml export-ignore
35
+ /phpstan.neon export-ignore
34
36
/.travis.yml export-ignore
35
37
/.scrutinizer.yml export-ignore
36
38
Original file line number Diff line number Diff line change 1
1
DotArray Change Log
2
2
=====================
3
3
4
+ 1.0.5 December 30, 2018
5
+ -----------------------------
6
+
7
+ - Refactoring DotArray:
8
+ - Using a Trait (DotFilteringTrait) to split code in more organized units.
9
+ - Refactoring DotPathTrait::flatten
10
+ - using PHPStan.
11
+ - Updating composer.json scripts to use PHPStan.
12
+ - More Tests.
13
+
4
14
1.0.4 December 30, 2018
5
15
-----------------------------
6
16
Original file line number Diff line number Diff line change @@ -261,11 +261,16 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
261
261
' a' => [
262
262
' b' => ' value' ,
263
263
],
264
-
264
+
265
265
' b' => [
266
266
1,
267
267
2,
268
268
3,
269
+ ' array' => [
270
+ 1,
271
+ 2,
272
+ 3,
273
+ ]
269
274
],
270
275
]
271
276
);
@@ -274,12 +279,14 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
274
279
275
280
/*
276
281
The output will be an array:
277
-
278
282
[
279
- ' {{a}}.{{b}}' => ' value' ,
280
- ' {{b}}.{{0}}' => 1,
281
- ' {{b}}.{{1}}' => 2,
282
- ' {{b}}.{{2}}' => 3,
283
+ ' {a}.{b}' => ' value' ,
284
+ ' {b}.{0}' => 1,
285
+ ' {b}.{1}' => 2,
286
+ ' {b}.{2}' => 3,
287
+ ' {b}.{array}.{0}' => 1,
288
+ ' {b}.{array}.{1}' => 2,
289
+ ' {b}.{array}.{2}' => 3,
283
290
],
284
291
* /
285
292
` ` `
Original file line number Diff line number Diff line change 32
32
"require-dev" : {
33
33
"squizlabs/php_codesniffer" : " 3.*" ,
34
34
"phpunit/phpunit" : " ~7.0" ,
35
- "phpmd/phpmd" : " *"
35
+ "phpmd/phpmd" : " *" ,
36
+ "phpstan/phpstan" : " *"
36
37
},
37
38
38
39
"suggest" : {
69
70
"scripts" : {
70
71
"check" : [
71
72
" @cs-check" ,
73
+ " @phpstan" ,
72
74
" @tests"
73
75
],
74
76
75
77
"generate-reports" : [
76
78
" @create-folders" ,
77
79
" @cs-report" ,
80
+ " @phpstan-report" ,
78
81
" @phpmd-report" ,
79
82
" @tests-report-html" ,
80
83
" @tests-report-xml" ,
87
90
88
91
"cs-check" : " phpcs" ,
89
92
"cs-fix" : " phpcbf" ,
93
+ "phpstan" : " phpstan analyze src --no-progress" ,
90
94
"phpmd" : " phpmd src text phpmd.xml.dist" ,
91
95
"tests" : " phpunit" ,
92
96
93
- "cs-report" : " phpcs --report=json --report-file=build/phpcs-report.json || exit 0;" ,
94
- "phpmd-report" : " phpmd src xml phpmd.xml.dist --reportfile build/phpmd-report.xml || exit 0;" ,
95
- "tests-report-html" : " phpunit --coverage-html build/phpunit/coverage/html || exit 0;" ,
96
- "tests-report-xml" : " phpunit --coverage-xml build/phpunit/coverage/xml || exit 0;" ,
97
- "tests-report-clover" : " phpunit --coverage-clover build/phpunit/coverage/clover/index.xml || exit 0;"
97
+ "cs-report" : " phpcs --report=json --report-file=build/phpcs-report.json || exit 0;" ,
98
+ "phpstan-report" : " phpstan analyze src --error-format=checkstyle > build/phpstan-check-style.xml --no-progress || exit 0;" ,
99
+ "phpmd-report" : " phpmd src xml phpmd.xml.dist --reportfile build/phpmd-report.xml || exit 0;" ,
100
+ "tests-report-html" : " phpunit --coverage-html build/phpunit/coverage/html || exit 0;" ,
101
+ "tests-report-xml" : " phpunit --coverage-xml build/phpunit/coverage/xml || exit 0;" ,
102
+ "tests-report-clover" : " phpunit --coverage-clover build/phpunit/coverage/clover/index.xml || exit 0;"
98
103
},
99
104
100
105
"scripts-descriptions" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <ruleset name =" Base Coding Standards " >
2
+ <ruleset name =" Base Coding Standard " >
3
3
4
- <description >Base Coding Standards </description >
4
+ <description >Base Coding Standard </description >
5
5
6
6
<!-- README: http://edorian.github.io/php-coding-standard-generator/#phpcs -->
7
7
Original file line number Diff line number Diff line change
1
+ includes:
2
+ - vendor/phpstan/phpstan/conf/config.levelmax.neon
You can’t perform that action at this time.
0 commit comments