├── .github └── workflows │ └── phpunit.yml ├── .gitignore ├── LICENSE ├── README.md ├── Taskfile.yml ├── compose.yml ├── composer.json ├── composer.lock ├── docker ├── php80 │ └── Dockerfile ├── php81 │ └── Dockerfile └── php82 │ └── Dockerfile ├── docs ├── blade.md └── css_and_alt_css.md ├── php-del ├── php-del.json ├── phpunit.xml ├── src ├── Application.php ├── Comment │ ├── Comment.php │ ├── CommentPatternProvider.php │ ├── DeleteComment.php │ ├── IgnoreComment.php │ ├── LineComment.php │ ├── Pattern │ │ ├── AltCssPattern.php │ │ ├── BladePhpPattern.php │ │ ├── CommentPattern.php │ │ ├── CssPattern.php │ │ └── RawPhpPattern.php │ └── SandWitchComment.php ├── Config.php ├── Deleter.php ├── Exception │ ├── SandWitchCommentException.php │ └── UndefinedExtensionException.php ├── Factory │ └── ConfigFactory.php ├── File │ ├── AllFileList.php │ ├── FileList.php │ └── TargetFileList.php ├── Finder.php ├── Flag │ ├── Flag.php │ ├── FlagList.php │ └── FlagManager.php └── Rewriter.php └── tests ├── Unit ├── DeleterTest.php ├── FinderTest.php └── RewriterTest.php ├── actual ├── delete_flag │ ├── DeleteFlag.php │ ├── delete_flag.blade.php │ ├── delete_flag.css │ └── delete_flag.scss ├── error_flag │ ├── ErrorFlag.php │ ├── error-flag.blade.php │ ├── error-flag.css │ └── error-flag.scss ├── flag_a │ ├── FlagA.php │ ├── flag-a.blade.php │ ├── flag-a.css │ └── flag-a.scss └── flag_b │ └── FlagB.php └── expect └── flag_a ├── FlagA.php ├── flag-a.blade.php ├── flag-a.css └── flag-a.scss /.github/workflows/phpunit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/.github/workflows/phpunit.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | vendor 3 | .phpunit.result.cache 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/README.md -------------------------------------------------------------------------------- /Taskfile.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/Taskfile.yml -------------------------------------------------------------------------------- /compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/compose.yml -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/composer.lock -------------------------------------------------------------------------------- /docker/php80/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/docker/php80/Dockerfile -------------------------------------------------------------------------------- /docker/php81/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/docker/php81/Dockerfile -------------------------------------------------------------------------------- /docker/php82/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/docker/php82/Dockerfile -------------------------------------------------------------------------------- /docs/blade.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/docs/blade.md -------------------------------------------------------------------------------- /docs/css_and_alt_css.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/docs/css_and_alt_css.md -------------------------------------------------------------------------------- /php-del: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/php-del -------------------------------------------------------------------------------- /php-del.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/php-del.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Application.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Application.php -------------------------------------------------------------------------------- /src/Comment/Comment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/Comment.php -------------------------------------------------------------------------------- /src/Comment/CommentPatternProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/CommentPatternProvider.php -------------------------------------------------------------------------------- /src/Comment/DeleteComment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/DeleteComment.php -------------------------------------------------------------------------------- /src/Comment/IgnoreComment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/IgnoreComment.php -------------------------------------------------------------------------------- /src/Comment/LineComment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/LineComment.php -------------------------------------------------------------------------------- /src/Comment/Pattern/AltCssPattern.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/Pattern/AltCssPattern.php -------------------------------------------------------------------------------- /src/Comment/Pattern/BladePhpPattern.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/Pattern/BladePhpPattern.php -------------------------------------------------------------------------------- /src/Comment/Pattern/CommentPattern.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/Pattern/CommentPattern.php -------------------------------------------------------------------------------- /src/Comment/Pattern/CssPattern.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/Pattern/CssPattern.php -------------------------------------------------------------------------------- /src/Comment/Pattern/RawPhpPattern.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/Pattern/RawPhpPattern.php -------------------------------------------------------------------------------- /src/Comment/SandWitchComment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Comment/SandWitchComment.php -------------------------------------------------------------------------------- /src/Config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Config.php -------------------------------------------------------------------------------- /src/Deleter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Deleter.php -------------------------------------------------------------------------------- /src/Exception/SandWitchCommentException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Exception/SandWitchCommentException.php -------------------------------------------------------------------------------- /src/Exception/UndefinedExtensionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Exception/UndefinedExtensionException.php -------------------------------------------------------------------------------- /src/Factory/ConfigFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Factory/ConfigFactory.php -------------------------------------------------------------------------------- /src/File/AllFileList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/File/AllFileList.php -------------------------------------------------------------------------------- /src/File/FileList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/File/FileList.php -------------------------------------------------------------------------------- /src/File/TargetFileList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/File/TargetFileList.php -------------------------------------------------------------------------------- /src/Finder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Finder.php -------------------------------------------------------------------------------- /src/Flag/Flag.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Flag/Flag.php -------------------------------------------------------------------------------- /src/Flag/FlagList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Flag/FlagList.php -------------------------------------------------------------------------------- /src/Flag/FlagManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Flag/FlagManager.php -------------------------------------------------------------------------------- /src/Rewriter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/src/Rewriter.php -------------------------------------------------------------------------------- /tests/Unit/DeleterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/Unit/DeleterTest.php -------------------------------------------------------------------------------- /tests/Unit/FinderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/Unit/FinderTest.php -------------------------------------------------------------------------------- /tests/Unit/RewriterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/Unit/RewriterTest.php -------------------------------------------------------------------------------- /tests/actual/delete_flag/DeleteFlag.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/delete_flag/DeleteFlag.php -------------------------------------------------------------------------------- /tests/actual/delete_flag/delete_flag.blade.php: -------------------------------------------------------------------------------- 1 | {{-- php-del file delete_flag --}} 2 | -------------------------------------------------------------------------------- /tests/actual/delete_flag/delete_flag.css: -------------------------------------------------------------------------------- 1 | /* php-del file delete_flag */ 2 | -------------------------------------------------------------------------------- /tests/actual/delete_flag/delete_flag.scss: -------------------------------------------------------------------------------- 1 | // php-del file delete_flag 2 | -------------------------------------------------------------------------------- /tests/actual/error_flag/ErrorFlag.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/error_flag/ErrorFlag.php -------------------------------------------------------------------------------- /tests/actual/error_flag/error-flag.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/error_flag/error-flag.blade.php -------------------------------------------------------------------------------- /tests/actual/error_flag/error-flag.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/error_flag/error-flag.css -------------------------------------------------------------------------------- /tests/actual/error_flag/error-flag.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/error_flag/error-flag.scss -------------------------------------------------------------------------------- /tests/actual/flag_a/FlagA.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/flag_a/FlagA.php -------------------------------------------------------------------------------- /tests/actual/flag_a/flag-a.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/flag_a/flag-a.blade.php -------------------------------------------------------------------------------- /tests/actual/flag_a/flag-a.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/flag_a/flag-a.css -------------------------------------------------------------------------------- /tests/actual/flag_a/flag-a.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/flag_a/flag-a.scss -------------------------------------------------------------------------------- /tests/actual/flag_b/FlagB.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/actual/flag_b/FlagB.php -------------------------------------------------------------------------------- /tests/expect/flag_a/FlagA.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/expect/flag_a/FlagA.php -------------------------------------------------------------------------------- /tests/expect/flag_a/flag-a.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/expect/flag_a/flag-a.blade.php -------------------------------------------------------------------------------- /tests/expect/flag_a/flag-a.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/expect/flag_a/flag-a.css -------------------------------------------------------------------------------- /tests/expect/flag_a/flag-a.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubotak-is/php-del/HEAD/tests/expect/flag_a/flag-a.scss --------------------------------------------------------------------------------