Skip to content

Commit b97c57c

Browse files
authored
Merge pull request #345 from lloc/refactoring-2-9
Diagrams added
2 parents 6e02402 + a0a598a commit b97c57c

File tree

4 files changed

+10
-991
lines changed

4 files changed

+10
-991
lines changed

.distignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/.github
44
/bin
55
/build
6+
/diagrams
67
/docs
78
/githooks
89
/legacy-tests
@@ -14,6 +15,7 @@
1415
.gitignore
1516
.scrutinizer.yml
1617
Changelog.md
18+
Diagrams.md
1719
README.md
1820
composer.json
1921
composer.lock
@@ -25,5 +27,4 @@ phpdoc.xml
2527
phpstan.neon
2628
phpunit.xml
2729
playwright.config.ts
28-
setup.sh
29-
plantuml_gist.puml
30+
setup.sh

Diagrams.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
Infrastructural overview about the plugin's PHP classes:
44

5-
![PlantUML class diagram](https://www.plantuml.com/plantuml/proxy?src=https://raw.githubusercontent.com/lloc/multisite-language-switcher/master/plantuml_gist.puml)
5+
![PlantUML class diagram](https://www.plantuml.com/plantuml/proxy?src=https://raw.githubusercontent.com/lloc/multisite-language-switcher/master/diagrams/msls-class.puml)
6+
7+
Package diagram:
8+
9+
![PlantUML class diagram](https://www.plantuml.com/plantuml/proxy?src=https://raw.githubusercontent.com/lloc/multisite-language-switcher/master/diagrams/msls-package.puml)

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"prepare": "wget -O build/translations.json http://api.wordpress.org/translations/core/1.0/",
4343
"flags-png": "php bin/flags-png.php > flags/flags.php",
4444
"flags-svg": "php bin/flags-svg.php > css/flags.php",
45-
"diagram": "vendor/bin/php-class-diagram --php7 includes > plantuml_gist.puml",
45+
"diagram:class": "vendor/bin/php-class-diagram --php7 includes > diagrams/mslsl-class.puml",
46+
"diagram:package": "vendor/bin/php-class-diagram --package-diagram --php7 includes > diagrams/msls-package.puml",
4647
"githooks": [
4748
"if [ -e ./githooks/pre-commit ]; then cp ./githooks/pre-commit ./.git/hooks/; fi",
4849
"if [ -e ./.git/hooks/pre-commit ]; then chmod 0755 ./.git/hooks/pre-commit; fi"

0 commit comments

Comments
 (0)