[orthotypo ↪ v2] 5 commits

spip-contrib-extensions/orthotypo | 5 commits

Par Maïeul Rouquette, le 2 juin 2023 à 20h14min :

style: plutot que des !isset() ... or utiliser ??

Modifié
orthotypo_fonctions.php
orthotypo_options.php

Détails : style: plutot que des `!isset() ... or` utiliser `??` · 054eac4398 - orthotypo - SPIP on GIT

==============================
Par Maïeul Rouquette, le 2 juin 2023 à 20h17min :

style: and → &&

Modifié
orthotypo_fonctions.php
orthotypo_options.php

Détails : style: and -> && · 06f630dec4 - orthotypo - SPIP on GIT

==============================
Par Maïeul Rouquette, le 2 juin 2023 à 20h21min :

chore: phpstan (niveau 0)

Ajouté
.gitattributes
phpstan-baseline.neon
phpstan.neon.dist

Détails : chore: phpstan (niveau 0) · 42978ae5e3 - orthotypo - SPIP on GIT

==============================
Par Maïeul Rouquette, le 2 juin 2023 à 20h25min :

chore: passage de phpstan au niveau 5, plus loin il faut typer

Modifié
phpstan-baseline.neon
phpstan.neon.dist

Détails : chore: passage de phpstan au niveau 5, plus loin il faut typer · be86c65e4a - orthotypo - SPIP on GIT

==============================
Par Maïeul Rouquette, le 2 juin 2023 à 20h48min :

fix(#3): ne pas transformer le contenu entre |@…@|

En attendant d’avoir une reecriture complète du système d’échappement
d'orthotypo, on profite du fait qu’il échappe certaines balises HTML.

Avant l’échappement, on emplace @|...|@ par
<orthotypo>...</orthotypo>.
Puis on précise qu’on veut échapper <orthotypo>...</orthotypo>.
Après l’échappement on restaure.

Pas de tests unitaires car trop imbriqués dans du code de SPIP.

Un jour on fera les choses au propre.

fix #3

Modifié
orthotypo_fonctions.php

Détails : fix(#3): ne pas transformer le contenu entre |@...@| · c0b7e11112 - orthotypo - SPIP on GIT