fix: various typos (#2593)

Found via `codespell -q 3 -S "./tests-legacy,./package-lock.json,./cspell.json" -L filp,ridiculus,serie`

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
This commit is contained in:
luzpazandAdam Daley authored and GitHub committed 2025-03-06 00:28:41 +00:00
1 parent 8d903b1526
commit c7700d1e1d
9 files changed
+10 -9

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
FROM php:8.4-apache
# Install required packages, configure Apache, install PHP exensions, and clean-up.
# Install required packages, configure Apache, install PHP extensions, and clean-up.
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget unzip zlib1g-dev libpng-dev libicu-dev libbz2-dev \
&& a2enmod rewrite \
+1
View File
@@ -28,6 +28,7 @@ class Box_EventDispatcher
}
/**
* Notifies all listeners of a given event.
*
* @param Box_Event $event A Box_Event instance
+1 -1
View File
@@ -23,7 +23,7 @@ class Box_Exception extends FOSSBilling\Exception
public function __construct(string $message, ?array $variables = null, int $code = 0, bool $protected = false)
{
// Pass the message to the parent
trigger_error('Box_Exception is deprectated and soon to be removed.', E_USER_DEPRECATED);
trigger_error('Box_Exception is deprecated and soon to be removed.', E_USER_DEPRECATED);
parent::__construct($message, $variables, $code, $protected);
}
}
+1 -1
View File
@@ -26,7 +26,7 @@ class Box_LogDb
*/
public function write(array $event, string $channel = 'application'): void
{
// TOOD: Temporary! Redo logging stuff in more depth for a major release.
// TODO: Temporary! Redo logging stuff in more depth for a major release.
if (in_array($channel, $this->ignoredChannels)) {
return;
}
+1 -1
View File
@@ -107,7 +107,7 @@ class Payment_Adapter_Custom
$tx->currency = $invoice->currency;
$tx->updated_at = date('Y-m-d H:i:s');
// Store the updated transaction and use its return to indicate a sucsess or failure.
// Store the updated transaction and use its return to indicate a success or failure.
return $this->di['db']->store($tx);
} catch (Exception) {
return false;
+1 -1
View File
@@ -27,7 +27,7 @@ class Registrar_Adapter_Custom extends Registrar_AdapterAbstract
public static function getConfig()
{
return [
'label' => 'Custom Registrar always responds with positive results. Usefull if no other registrar is suitable.',
'label' => 'Custom Registrar always responds with positive results. Useful if no other registrar is suitable.',
'form' => [
'use_whois' => ['radio', [
'multiOptions' => ['1' => 'Yes', '0' => 'No'],
+1 -1
View File
@@ -27,7 +27,7 @@ abstract class Registrar_AdapterAbstract
/**
* Return array with configuration.
*
* Must be overriden in adapter class
* Must be overridden in adapter class
*
* @return array
*/
+2 -2
View File
@@ -325,7 +325,7 @@ class Service
if (!$lastErrorReportingNudge) {
// The user upgraded from a version that didn't have error reporting functionality, so let's nudge them about it now.
return [
'text' => 'We\'d apreciate it if you\'d consider opting into error reporting for FOSSBilling. Doing so will help us improve the software and provide you with a better experience. (Message will remain for 15 minutes)',
'text' => 'We\'d appreciate it if you\'d consider opting into error reporting for FOSSBilling. Doing so will help us improve the software and provide you with a better experience. (Message will remain for 15 minutes)',
'url' => $url,
];
} elseif ((version_compare(SentryHelper::last_change, $lastErrorReportingNudge) === 1) && Config::getProperty('debug_and_monitoring.report_errors', false) && !Version::isPreviewVersion()) {
@@ -1006,7 +1006,7 @@ class Service
$di = $event->getDi();
try {
// Prune the classmap to remove classes which are no logner on the disk or that have moved.
// Prune the classmap to remove classes which are no longer on the disk or that have moved.
$loader = new \FOSSBilling\AutoLoader();
$loader->getAntLoader()->pruneClassmap();
+1 -1
View File
@@ -144,4 +144,4 @@ body {
}
}
// TOOD: Add custom color themes to Huraga. Bootstrap has a great example here: https://getbootstrap.com/docs/5.3/customize/color-modes/#custom-color-modes
// TODO: Add custom color themes to Huraga. Bootstrap has a great example here: https://getbootstrap.com/docs/5.3/customize/color-modes/#custom-color-modes