zendframework / zend-coding-standard

Zend Framework Coding Standard
BSD 3-Clause "New" or "Revised" License
35 stars 8 forks source link

Added more simple sniffs to the Zend Coding Standard #8

Closed michalbundyra closed 5 years ago

michalbundyra commented 5 years ago

I've started testing the library with webimpress/coding-standard to release version 1.0.0 of my library. I've added several simple sniffs here which I have implemented and override some with my version, as these are more reliable or fixes more cases (please see tests).

There is one problem with spaces around namespace operators. I wanted to include that sniff, but looks like one sniff from Slevomat library wrongly recognised references and do a fix file with invalid use import: use ; (it is only in first fix loop, then somehow it is removed, but it conflicts with other sniffs).

geerteltink commented 5 years ago

Thanx @webimpress