Skip to content

Commit

Permalink
Use “correct” spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Aug 7, 2024
1 parent d97d702 commit e69df67
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/helpers/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@
*/
class Console
{
private static bool $initialized = false;
/**
* Whether the Sprig object has been initialised.
*/
private static bool $initialised = false;

/**
* Initialises the Sprig object in the console.
*/
public static function init(): void
{
if (self::$initialized || Component::getIsRequest()) {
if (self::$initialised || Component::getIsRequest()) {
return;
}

self::$initialized = true;
self::$initialised = true;

Component::registerJs('Sprig = {components: []}');
}
Expand Down

0 comments on commit e69df67

Please sign in to comment.