Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cake17 committed Jan 26, 2016
1 parent 30d4449 commit 0f7ab3d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions fr/contributing/cakephp-coding-conventions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,30 @@ Ou::
}
}

Dans les cas où vous utilisez un appel de fonction multi-lignes, utilisez les
instructions suivantes:

* Les parenthèses ouvrantes d'un appel de fonction multi-lignes doivent être
le dernier contenu de la ligne.
* Seul un argument est permis par ligne dans un appel de fonction multi-lignes.
* Les parenthèses fermantes d'un appel de fonction multi-lignes doivent être
elles-même sur une ligne.

Par exemple, plutôt qu'utiliser le format suivant::

$matches = array_intersect_key($this->_listeners,
array_flip(preg_grep($matchPattern,
array_keys($this->_listeners), 0)));

Utilisez ceci à la place::

$matches = array_intersect_key(
$this->_listeners,
array_flip(
preg_grep($matchPattern, array_keys($this->_listeners), 0)
)
);

Longueur des lignes
===================

Expand Down

0 comments on commit 0f7ab3d

Please sign in to comment.