@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | if (strlen($intro)) { |
| 84 | 84 | $texte = $intro; |
| 85 | 85 | } else { |
| 86 | - if (strpos("\n" . $texte, "\n|") === false |
|
| 86 | + if (strpos("\n".$texte, "\n|") === false |
|
| 87 | 87 | and strlen($texte) > 2.5 * $longueur |
| 88 | 88 | ) { |
| 89 | 89 | if (strpos($texte, "<multi") !== false) { |
@@ -168,12 +168,12 @@ discard block |
||
| 168 | 168 | if ($pas < 1) { |
| 169 | 169 | return ''; |
| 170 | 170 | } |
| 171 | - $ancre = 'pagination' . $nom; // #pagination_articles |
|
| 172 | - $debut = 'debut' . $nom; // 'debut_articles' |
|
| 171 | + $ancre = 'pagination'.$nom; // #pagination_articles |
|
| 172 | + $debut = 'debut'.$nom; // 'debut_articles' |
|
| 173 | 173 | |
| 174 | 174 | // n'afficher l'ancre qu'une fois |
| 175 | 175 | if (!isset($ancres[$ancre])) { |
| 176 | - $bloc_ancre = $ancres[$ancre] = "<a id='" . $ancre . "' class='pagination_ancre'></a>"; |
|
| 176 | + $bloc_ancre = $ancres[$ancre] = "<a id='".$ancre."' class='pagination_ancre'></a>"; |
|
| 177 | 177 | } else { |
| 178 | 178 | $bloc_ancre = ''; |
| 179 | 179 | } |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | if ($modele) { |
| 207 | - $modele = '_' . $modele; |
|
| 207 | + $modele = '_'.$modele; |
|
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | if (!defined('_PAGINATION_NOMBRE_LIENS_MAX')) { |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | * @param $objet_lien |
| 307 | 307 | * @return string |
| 308 | 308 | */ |
| 309 | -function retrouver_rang_lien($objet_source, $ids, $objet_lie, $idl, $objet_lien){ |
|
| 309 | +function retrouver_rang_lien($objet_source, $ids, $objet_lie, $idl, $objet_lien) { |
|
| 310 | 310 | $res = lister_objets_liens($objet_source, $objet_lie, $idl, $objet_lien); |
| 311 | 311 | $res = array_column($res, 'rang_lien', $objet_source); |
| 312 | 312 | |
@@ -461,12 +461,12 @@ discard block |
||
| 461 | 461 | * @param string $serveur |
| 462 | 462 | * @return string |
| 463 | 463 | */ |
| 464 | -function formate_liste_critere_par_ordre_liste($valeurs, $serveur = ''){ |
|
| 465 | - if (!is_array($valeurs)){ |
|
| 464 | +function formate_liste_critere_par_ordre_liste($valeurs, $serveur = '') { |
|
| 465 | + if (!is_array($valeurs)) { |
|
| 466 | 466 | return ''; |
| 467 | 467 | } |
| 468 | 468 | $f = sql_serveur('quote', $serveur, true); |
| 469 | - if (!is_string($f) or !$f){ |
|
| 469 | + if (!is_string($f) or !$f) { |
|
| 470 | 470 | return ''; |
| 471 | 471 | } |
| 472 | 472 | $valeurs = implode(',', array_map($f, array_unique($valeurs))); |