1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 03:54:02 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2020-05-22 09:01:31 +00:00 committed by StyleCI Bot
parent 1798ca9c85
commit 6955512a6b
133 changed files with 379 additions and 203 deletions

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Exceptions;
use Exception;
@ -10,4 +12,4 @@ class ModelNotSyncMasterException extends Exception
{
parent::__construct("Model of $class class is not an SyncMaster model. Make sure you're using the central model to make changes to synced resouces when you're in the central context");
}
}
}

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Exceptions;
use Exception;
@ -10,4 +12,4 @@ class NoConnectionSetException extends Exception
{
parent::__construct("No connection was set on this $manager instance.");
}
}
}

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Exceptions;
use Exception;
@ -10,4 +12,4 @@ class NotASubdomainException extends Exception
{
parent::__construct("Hostname $hostname does not include a subdomain.");
}
}
}

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Exceptions;
use Exception;
@ -13,4 +15,4 @@ class RouteIsMissingTenantParameterException extends Exception
parent::__construct("The route's first argument is not the tenant id (configured paramter name: $parameter).");
}
}
}

View file

@ -1,13 +1,15 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Exceptions;
use Exception;
class TenancyNotInitializedException extends Exception
{
public function __construct($message = "")
public function __construct($message = '')
{
parent::__construct($message ?: 'Tenancy is not initialized.');
}
}
}