[CCA Standards] Was missfällt an PSR-1 und PSR-2 :: class declaration

Tristan Lins tristan.lins at bit3.de
Fr Mai 2 10:26:57 CEST 2014


[PSR-2] 4. Classes, Properties, and Methods

> Lists of implements MAY be split across multiple lines, where each
> subsequent line is indented once. When doing so, the first item in
> the list MUST be on the next line, and there MUST be only one
> interface per line.

Also das gefällt mir gar nicht, lieber extends und implements eine
eigene Zeile verpassen, anstatt jedes Interface in eine eigene Zeile packen.

Also

> class ClassName
>     extends ParentClass
>     implements \ArrayAccess, \Countable, \Serializable
> {

anstatt

> class ClassName extends ParentClass implements
>     \ArrayAccess,
>     \Countable,
>     \Serializable
> {


-- 
Tristan Lins - Inhaber, Softwareentwickler
bit3 UG (haftungsbeschränkt)
Im Coenen Palais · Hofstr. 272 · 56077 Koblenz
info at bit3.de · http://bit3.de · 0261-45093253
Amtsgericht Koblenz, HRB 23386


More information about the Standards mailing list