Skip to content

Commit edcedc8

Browse files
committed
[*]: Release version 1.0.5
1 parent 6fa2860 commit edcedc8

10 files changed

+393
-338
lines changed

Diff for: .gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*.bat text
1616
*.sql text
1717
*.yml text
18+
*.neon text
1819

1920

2021
# Ensure those won't be messed up with
@@ -31,6 +32,7 @@
3132
/phpunit.xml export-ignore
3233
/phpcs.xml export-ignore
3334
/phpmd.xml export-ignore
35+
/phpstan.neon export-ignore
3436
/.travis.yml export-ignore
3537
/.scrutinizer.yml export-ignore
3638

Diff for: CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
DotArray Change Log
22
=====================
33

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+
414
1.0.4 December 30, 2018
515
-----------------------------
616

Diff for: README.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,16 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
261261
'a' => [
262262
'b' => 'value',
263263
],
264-
264+
265265
'b' => [
266266
1,
267267
2,
268268
3,
269+
'array' => [
270+
1,
271+
2,
272+
3,
273+
]
269274
],
270275
]
271276
);
@@ -274,12 +279,14 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
274279

275280
/*
276281
The output will be an array:
277-
278282
[
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,
283290
],
284291
*/
285292
```

Diff for: composer.json

+11-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"require-dev": {
3333
"squizlabs/php_codesniffer": "3.*",
3434
"phpunit/phpunit": "~7.0",
35-
"phpmd/phpmd": "*"
35+
"phpmd/phpmd": "*",
36+
"phpstan/phpstan": "*"
3637
},
3738

3839
"suggest": {
@@ -69,12 +70,14 @@
6970
"scripts": {
7071
"check": [
7172
"@cs-check",
73+
"@phpstan",
7274
"@tests"
7375
],
7476

7577
"generate-reports": [
7678
"@create-folders",
7779
"@cs-report",
80+
"@phpstan-report",
7881
"@phpmd-report",
7982
"@tests-report-html",
8083
"@tests-report-xml",
@@ -87,14 +90,16 @@
8790

8891
"cs-check": "phpcs",
8992
"cs-fix": "phpcbf",
93+
"phpstan": "phpstan analyze src --no-progress",
9094
"phpmd": "phpmd src text phpmd.xml.dist",
9195
"tests": "phpunit",
9296

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;"
98103
},
99104

100105
"scripts-descriptions": {

Diff for: phpcs.xml.dist

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<ruleset name="Base Coding Standards">
2+
<ruleset name="Base Coding Standard">
33

4-
<description>Base Coding Standards</description>
4+
<description>Base Coding Standard</description>
55

66
<!-- README: http://edorian.github.io/php-coding-standard-generator/#phpcs -->
77

Diff for: phpstan.neon.dist

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
includes:
2+
- vendor/phpstan/phpstan/conf/config.levelmax.neon

0 commit comments

Comments
 (0)