Implementing Coding Standards in Zend Studio for Eclipse (PHP)

Hi all,


Anyone uses Zend Studio as a PHP development tool?



How do I import MySource Matrix Coding Standards to it? If there's no such feature, then am I able to customize it?



When I press Ctrl + Shift + F in Zend Studio, it produces a different formatting compare to the MySource Matrix Coding Standards documentation.



Thank you!



Kevin

Oh, I think I've found something.


The Formatter Preferences option is under "Windows" -> "Preferences" -> "PHP" -> "Formatter"



I am going to try importing the coding standards using an XML file…

<_<


Zend Studio Formatter Preferences only allows the settings on Indentation, Braces, White Space, Blank Lines, New lines and Line Wrapping.



There are many more rules on comments, arrays, assignments etc. that are in the MySource Matrix Coding Standards document, which cannot be applied to Zend. :frowning:



If MySource Matrix is serious about the strict rules of Coding Standards, then I would need to use the PHP CodeSniffer to do the validations. :ph34r: