diff options
| author | 2023-05-07 21:35:08 +0200 | |
|---|---|---|
| committer | 2023-05-07 21:35:08 +0200 | |
| commit | 54c8de86c73ce831df7912428b4f9fd849d67aca (patch) | |
| tree | b6c0cf65ae8370ad09f2a1a94384afd60444bb62 /lib | |
| parent | 9172b65cdbeb3cd19620e38df54669c5d8aa9983 (diff) | |
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 <alexandre@alapetite.fr>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/CurrentPagePaginationException.php | 2 | ||||
| -rw-r--r-- | lib/Minz/Log.php | 2 | ||||
| -rw-r--r-- | lib/Minz/Migrator.php | 17 | ||||
| -rw-r--r-- | lib/Minz/Session.php | 4 | ||||
| -rw-r--r-- | lib/lib_rss.php | 4 |
5 files changed, 14 insertions, 15 deletions
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 @@ <?php class Minz_CurrentPagePaginationException extends Minz_Exception { public function __construct(int $page) { - $message = 'Page number `' . $page . '` doesn\'t exist'; + $message = 'Page number `' . $page . '` doesn’t exist'; parent::__construct ($message, self::ERROR); } diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php index f30aac7d1..4dbdf42bc 100644 --- a/lib/Minz/Log.php +++ b/lib/Minz/Log.php @@ -72,7 +72,7 @@ class Minz_Log { * Make sure we do not waste a huge amount of disk space with old log messages. * * This method can be called multiple times for one script execution, but its result will not change unless - * you call clearstatcache() in between. We won't due do that for performance reasons. + * you call clearstatcache() in between. We won’t do do that for performance reasons. * * @param string $file_name * @throws Minz_PermissionDeniedException diff --git a/lib/Minz/Migrator.php b/lib/Minz/Migrator.php index ef4bce48f..561dc24f2 100644 --- a/lib/Minz/Migrator.php +++ b/lib/Minz/Migrator.php @@ -28,7 +28,7 @@ class Minz_Migrator * been modified, or migrations path cannot be * read). * - * @throws BadFunctionCallException if a callback isn't callable. + * @throws BadFunctionCallException if a callback isn’t callable. */ public static function execute(string $migrations_path, string $applied_migrations_path) { $applied_migrations = @file_get_contents($applied_migrations_path); @@ -58,8 +58,8 @@ class Minz_Migrator if (!@mkdir($lock_path, 0770, true)) { // Someone is probably already executing the migrations (the folder // already exists). - // We should probably return something else, but we don't want the - // user to think there is an error (it's normal workflow), so let's + // We should probably return something else, but we don’t want the + // user to think there is an error (it’s normal workflow), so let’s // stick to this solution for now. // Another option would be to show him a maintenance page. Minz_Log::warning( @@ -93,7 +93,7 @@ class Minz_Migrator 'We weren’t able to unlink the migration executing folder, ' . 'you might want to delete yourself: ' . $lock_path ); - // we don't return early because the migrations could have been + // we don’t return early because the migrations could have been // applied successfully. This file is not "critical" if not removed // and more errors will eventually appear in the logs. } @@ -122,8 +122,7 @@ class Minz_Migrator * * The files starting with a dot are ignored. * - * @throws BadFunctionCallException if a callback isn't callable (i.e. - * cannot call a migrate method). + * @throws BadFunctionCallException if a callback isn’t callable (i.e. cannot call a migrate method). */ public function __construct(?string $directory = null) { $this->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) { |
