Envoyé par
PSR2
Code MUST use 4 spaces for indenting, not tabs.
Beurk ! Tellement plus rapide et pratique d'utiliser les tabulations !
Envoyé par
PSR2
Opening braces for classes MUST go on the next line, and closing braces MUST go on the next line after the body.
Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body.
Ça par contre, c'est bien ; on trouve plus facilement les accolades ouvrantes et fermantes, surtout quand le code est bien indenté avec des tabulations !
Envoyé par
PSR2
Opening braces for control structures MUST go on the same line, and closing braces MUST go on the next line after the body.
Ben non ! Pourquoi deux méthodes différentes dans la même spécification ? Pas cohérent leur truc !
Envoyé par
PSR2
The closing ?> tag MUST be omitted from files containing only PHP.
J'ai toujours trouvé ça bizarre ! Une balise qui a été ouverte doit se fermer à un moment donné !
1 |
0 |