diff --git a/action/ordonner_liens_blocks.php b/action/ordonner_liens_blocks.php index f290b8f0d755d6353494ddeb058993da676b04e9..6aec79e2e03d3e6c4395bb3438fe2b5e569f91fe 100644 --- a/action/ordonner_liens_blocks.php +++ b/action/ordonner_liens_blocks.php @@ -14,6 +14,9 @@ if (!defined('_ECRIRE_INC_VERSION')) { return; } +/** + * @throws \JsonException + */ function action_ordonner_liens_blocks_dist() { include_spip('inc/autoriser'); include_spip('base/objets'); @@ -81,11 +84,17 @@ function action_ordonner_liens_blocks_dist() { ]); } +/** + * @throws \JsonException + */ function envoyer_json_envoi($data) { header('Content-Type: application/json; charset=' . $GLOBALS['meta']['charset']); echo json_encode($data, JSON_THROW_ON_ERROR); } +/** + * @throws \JsonException + */ function envoyer_json_erreur($msg) { return envoyer_json_envoi([ 'done' => false, diff --git a/action/supprimer_block.php b/action/supprimer_block.php index 0de4f0a81aa06e99c8a7cedf008de03d1daba9bb..c32ed9acd2a38b686d02f3a2d686f26cea346117 100644 --- a/action/supprimer_block.php +++ b/action/supprimer_block.php @@ -21,7 +21,9 @@ if (!defined('_ECRIRE_INC_VERSION')) { * @param null|int $arg * Identifiant à supprimer. * En absence de id utilise l'argument de l'action sécurisée. - **/ + * + * @throws \JsonException + */ function action_supprimer_block_dist($arg = null) { if (is_null($arg)) { $securiser_action = charger_fonction('securiser_action', 'inc');