aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz
diff options
context:
space:
mode:
authorGravatar Thomas Renes <thomas@renesweb.nl> 2022-01-08 16:25:17 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-08 16:25:17 +0100
commit916df412f5b6f7fb9bcfb705a3c8c23e35304410 (patch)
treed87c483688575cb5a6b674849e2aefa2052116c8 /lib/Minz
parent127b7f0a3aad7012055c058e8aba0d27192a8cbc (diff)
Fix various typos and spelling errors in documentation, comments and code. (#4134)
Diffstat (limited to 'lib/Minz')
-rw-r--r--lib/Minz/Error.php2
-rw-r--r--lib/Minz/ExtensionException.php4
-rw-r--r--lib/Minz/Migrator.php4
-rw-r--r--lib/Minz/Request.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/Minz/Error.php b/lib/Minz/Error.php
index bef273bda..fc8e0f807 100644
--- a/lib/Minz/Error.php
+++ b/lib/Minz/Error.php
@@ -33,7 +33,7 @@ class Minz_Error {
'c' => 'error'
), $redirect);
} else {
- echo '<h1>An error occured</h1>' . "\n";
+ echo '<h1>An error occurred</h1>' . "\n";
if (!empty ($logs)) {
echo '<ul>' . "\n";
diff --git a/lib/Minz/ExtensionException.php b/lib/Minz/ExtensionException.php
index ab4c5c419..b86a97798 100644
--- a/lib/Minz/ExtensionException.php
+++ b/lib/Minz/ExtensionException.php
@@ -3,9 +3,9 @@
class Minz_ExtensionException extends Minz_Exception {
public function __construct ($message, $extension_name = false, $code = self::ERROR) {
if ($extension_name) {
- $message = 'An error occured in `' . $extension_name . '` extension with the message: ' . $message;
+ $message = 'An error occurred in `' . $extension_name . '` extension with the message: ' . $message;
} else {
- $message = 'An error occured in an unnamed extension with the message: ' . $message;
+ $message = 'An error occurred in an unnamed extension with the message: ' . $message;
}
parent::__construct($message, $code);
diff --git a/lib/Minz/Migrator.php b/lib/Minz/Migrator.php
index 71abbff3e..7afc5240e 100644
--- a/lib/Minz/Migrator.php
+++ b/lib/Minz/Migrator.php
@@ -45,7 +45,7 @@ class Minz_Migrator
return basename($filename, '.php');
}, $migration_files);
- // We apply a "low-cost" comparaison to avoid to include the migration
+ // We apply a "low-cost" comparison to avoid to include the migration
// files at each run. It is equivalent to the upToDate method.
if (count($applied_migrations) === count($migration_versions) &&
empty(array_diff($applied_migrations, $migration_versions))) {
@@ -239,7 +239,7 @@ class Minz_Migrator
* Migrate the system to the latest version.
*
* It only executes migrations AFTER the current version. If a migration
- * returns false or fails, it immediatly stops the process.
+ * returns false or fails, it immediately stops the process.
*
* If the migration doesn't return false nor raise an exception, it is
* considered as successful. It is considered as good practice to return
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index e74f4f908..ee3962615 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -313,7 +313,7 @@ class Minz_Request {
Minz_Session::lock();
$requests = Minz_Session::param('requests');
if ($requests) {
- //Delete abandonned notifications
+ //Delete abandoned notifications
$requests = array_filter($requests, function ($r) { return isset($r['time']) && $r['time'] > time() - 3600; });
$requestId = self::requestId();