rospdf / pdf-php

Official R&OS PHP Pdf repository
http://pdf-php.sourceforge.net/
Other
136 stars 64 forks source link

Follow PSR2 coding standards #5

Open lsolesen opened 8 years ago

lsolesen commented 8 years ago

I think the library should follow PSR2 coding standards. I've added tests to reflect the current coding standards based of PSR2 standards - and added automatic tests in TravisCI to see whether we adhere to them.

The coding standards are defined in phpcs.xml and right now there is a little work to do. I will happily do it. However, I think we should merge in experimental into master first, if you think it is pretty much ready.

lsolesen commented 8 years ago

We need to discuss whether we are going fully PSR2 compliant for the repository. I think we should. We have the following rules turned off at the moment (https://github.com/ole1986/pdf-php/blob/experimental/phpcs.xml):

After thinking more about it, these are important to be addressed before merging experimental into master