diff --git a/.editorconfig b/.editorconfig index 033f8a6..402bd2f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,6 +2,7 @@ root = true [*] charset = utf-8 +end_of_line = lf indent_size = 4 indent_style = space insert_final_newline = true diff --git a/.gitattributes b/.gitattributes index f6d2f6e..8138457 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,9 +1,9 @@ -/.gitattributes export-ignore /.editorconfig export-ignore +/.gitattributes export-ignore /.gitignore export-ignore /README.md export-ignore /finder.php export-ignore /generate.sh export-ignore /release-latest-versions.sh export-ignore /get_version.php export-ignore -/source export-ignore \ No newline at end of file +/source/ export-ignore diff --git a/.gitignore b/.gitignore index 9d80880..180d90f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ .DS_Store -/vendor/ /composer.lock -/source/* -!/source/.gitkeep \ No newline at end of file +/vendor/ diff --git a/README.md b/README.md index 3e4df09..1d93b46 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ core functions, classes and interfaces. These stubs can help plugin and theme developers leverage static analysis tools like [PHPStan](https://github.com/phpstan/phpstan). -The stubs are generated from source code manually placed in `source/facetwp` +The stubs are generated from source code manually placed in `source/facetwp` using [php-stubs/generator](https://github.com/php-stubs/generator). FacetWP's changelog can be found here [https://facetwp.com/help-center/changelog/](https://facetwp.com/help-center/changelog/). diff --git a/get_version.php b/get_version.php index a82652d..b8752f6 100644 --- a/get_version.php +++ b/get_version.php @@ -7,6 +7,6 @@ function plugin_basename() {} function add_action() {} function add_filter() {} -include_once('source/facetwp/index.php'); +require_once __DIR__.'/source/facetwp/index.php'; -echo FACETWP_VERSION; \ No newline at end of file +echo FACETWP_VERSION; diff --git a/source/.gitignore b/source/.gitignore new file mode 100644 index 0000000..120f485 --- /dev/null +++ b/source/.gitignore @@ -0,0 +1,2 @@ +* +!/.gitignore diff --git a/source/.gitkeep b/source/.gitkeep deleted file mode 100644 index e69de29..0000000