psliwa / image-optimizer

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
MIT License
906 stars 141 forks source link

Make compatible with PSR-12 formatting standard #82

Open Flynsarmy opened 2 years ago

Flynsarmy commented 2 years ago

This PR makes your package compatible with PSR-12 coding standards. It also adds a composer phpcs script for ease of use.

I had to add 3 rule exceptions in .phpcs.xml for stuff you have in your tests. I'd recommend these also be fixed and the exceptions removed.

i'd also suggest adding composer phpcs to .travis.yml so it's enforced on all future PRs.