Skip to content

Conversation

@engahmeds3ed
Copy link

Sometimes we need to use our own checks if path is found or not so we don't need to run the following code over it

https://github.com/engahmeds3ed/minify/blob/4eeda08af72a1012202e0dc7d99436f06714b086/src/Minify.php#L471

for example we have our own filesystem the is being replaced while running tests to use virtual filesystem so on this case is_file and is_readable won't work properly.

also another example, if I have file path and I need to do some changes on the content itself then send it to be minified ( assume also this file has some imports that need to be replaced ) so I need to pass the path along with the modified contents.

I hope u can do code review and validate quickly, thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant