From 54c8de86c73ce831df7912428b4f9fd849d67aca Mon Sep 17 00:00:00 2001 From: maTh Date: Sun, 7 May 2023 21:35:08 +0200 Subject: docs: language table added (#5375) * docs: language table added * Update 05_Configuration.md * Update 05_Configuration.md * french docs * Unicode quote and a few fixes (Same search&replace aslo applied to a few other files) --------- Co-authored-by: Alexandre Alapetite --- lib/Minz/CurrentPagePaginationException.php | 2 +- lib/Minz/Log.php | 2 +- lib/Minz/Migrator.php | 17 ++++++++--------- lib/Minz/Session.php | 4 ++-- lib/lib_rss.php | 4 ++-- 5 files changed, 14 insertions(+), 15 deletions(-) (limited to 'lib') diff --git a/lib/Minz/CurrentPagePaginationException.php b/lib/Minz/CurrentPagePaginationException.php index 973913afb..b3c8b2915 100644 --- a/lib/Minz/CurrentPagePaginationException.php +++ b/lib/Minz/CurrentPagePaginationException.php @@ -1,7 +1,7 @@ applied_versions = []; @@ -163,7 +162,7 @@ class Minz_Migrator * return true on success and must return false * on error * - * @throws BadFunctionCallException if the callback isn't callable. + * @throws BadFunctionCallException if the callback isn’t callable. */ public function addMigration(string $version, ?callable $callback): void { if (!is_callable($callback)) { @@ -230,7 +229,7 @@ class Minz_Migrator */ public function upToDate(): bool { // Counting versions is enough since we cannot apply a version which - // doesn't exist (see setAppliedVersions method). + // doesn’t exist (see setAppliedVersions method). return count($this->versions()) === count($this->applied_versions); } @@ -240,7 +239,7 @@ class Minz_Migrator * It only executes migrations AFTER the current version. If a migration * returns false or fails, it immediately stops the process. * - * If the migration doesn't return false nor raise an exception, it is + * If the migration doesn’t return false nor raise an exception, it is * considered as successful. It is considered as good practice to return * true on success though. * diff --git a/lib/Minz/Session.php b/lib/Minz/Session.php index b42df9091..421920e2e 100644 --- a/lib/Minz/Session.php +++ b/lib/Minz/Session.php @@ -61,8 +61,8 @@ class Minz_Session { /** * Allows you to retrieve a session variable * @param string $p the parameter to retrieve - * @param mixed|false $default the default value if the parameter doesn't exist - * @return mixed|false the value of the session variable, false if doesn't exist + * @param mixed|false $default the default value if the parameter doesn’t exist + * @return mixed|false the value of the session variable, false if doesn’t exist */ public static function param(string $p, $default = false) { return $_SESSION[$p] ?? $default; diff --git a/lib/lib_rss.php b/lib/lib_rss.php index e7cb7386a..9c9d44a4c 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -653,10 +653,10 @@ function checkCIDR(string $ip, string $range): bool { /** * Check if the client is allowed to send unsafe headers - * This uses the REMOTE_ADDR header to determine the sender's IP + * This uses the REMOTE_ADDR header to determine the sender’s IP * and the configuration option "trusted_sources" to get an array of the authorized ranges * - * @return bool, true if the sender's IP is in one of the ranges defined in the configuration, else false + * @return bool, true if the sender’s IP is in one of the ranges defined in the configuration, else false */ function checkTrustedIP(): bool { if (FreshRSS_Context::$system_conf === null) { -- cgit v1.2.3