An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Always prefer stricter string comparisons.
Lucas Michot601f1a4717a6
diff --git a/app/Jobs/ScheduledTaskJob.php b/app/Jobs/ScheduledTaskJob.phpindex 6850ae98a9..b2788a3519 100644--- a/app/Jobs/ScheduledTaskJob.php+++ b/app/Jobs/ScheduledTaskJob.php@@ -76,14 +76,14 @@ class ScheduledTaskJob implements ShouldQueue$this->server = $this->resource->destination->server;- if ($this->resource->type() == 'application') {+ if ($this->resource->type() === 'application') {$containers = getCurrentApplicationContainerStatus($this->server, $this->resource->id, 0);if ($containers->count() > 0) {$containers->each(function ($container) {$this->containers[] = str_replace('/', '', $container['Names']);});}- } elseif ($this->resource->type() == 'service') {+ } elseif ($this->resource->type() === 'service') {$this->resource->applications()->get()->each(function ($application) {if (str(data_get($application, 'status'))->contains('running')) {$this->containers[] = data_get($application, 'name').'-'.data_get($this->resource, 'uuid');diff --git a/app/Livewire/Project/Application/Deployment/Show.php b/app/Livewire/Project/Application/Deployment/Show.phpindex 3de895f8c5..04170fa280 100644--- a/app/Livewire/Project/Application/Deployment/Show.php+++ b/app/Livewire/Project/Application/Deployment/Show.php@@ -64,7 +64,7 @@ class Show extends Component{$this->dispatch('deploymentFinished');$this->application_deployment_queue->refresh();- if (data_get($this->application_deployment_queue, 'status') == 'finished' || data_get($this->application_deployment_queue, 'status') == 'failed') {+ if (data_get($this->application_deployment_queue, 'status') === 'finished' || data_get($this->application_deployment_queue, 'status') === 'failed') {$this->isKeepAliveOn = false;}}diff --git a/app/Livewire/Project/Database/BackupEdit.php b/app/Livewire/Project/Database/BackupEdit.phpindex 8d838ed3b1..9b82c4b11b 100644--- a/app/Livewire/Project/Database/BackupEdit.php+++ b/app/Livewire/Project/Database/BackupEdit.php@@ -121,7 +121,7 @@ class BackupEdit extends Component{try {$this->custom_validate();- if ($this->backup->databases_to_backup == '' || $this->backup->databases_to_backup === null) {+ if ($this->backup->databases_to_backup === '' || $this->backup->databases_to_backup === null) {$this->backup->databases_to_backup = null;}$this->backup->save();diff --git a/app/Livewire/Project/Database/Import.php b/app/Livewire/Project/Database/Import.phpindex cd9818b417..39db28d9b8 100644--- a/app/Livewire/Project/Database/Import.php+++ b/app/Livewire/Project/Database/Import.php@@ -77,10 +77,10 @@ class Import extends Component}if (- $this->resource->getMorphClass() == \App\Models\StandaloneRedis::class ||- $this->resource->getMorphClass() == \App\Models\StandaloneKeydb::class ||- $this->resource->getMorphClass() == \App\Models\StandaloneDragonfly::class ||- $this->resource->getMorphClass() == \App\Models\StandaloneClickhouse::class+ $this->resource->getMorphClass() === \App\Models\StandaloneRedis::class ||+ $this->resource->getMorphClass() === \App\Models\StandaloneKeydb::class ||+ $this->resource->getMorphClass() === \App\Models\StandaloneDragonfly::class ||+ $this->resource->getMorphClass() === \App\Models\StandaloneClickhouse::class) {$this->unsupported = true;}@@ -89,7 +89,7 @@ class Import extends Componentpublic function runImport(){- if ($this->filename == '') {+ if ($this->filename === '') {$this->dispatch('error', 'Please select a file to import.');return;diff --git a/app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php b/app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.phpindex 0edafd040e..b46c4a7943 100644--- a/app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php+++ b/app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php@@ -198,7 +198,7 @@ class GithubPrivateRepositoryDeployKey extends Component$this->git_host = $this->repository_url_parsed->getHost();$this->git_repository = $this->repository_url_parsed->getSegment(1).'/'.$this->repository_url_parsed->getSegment(2);- if ($this->git_host == 'github.com') {+ if ($this->git_host === 'github.com') {$this->git_source = GithubApp::where('name', 'Public GitHub')->first();return;diff --git a/app/Livewire/Project/New/PublicGitRepository.php b/app/Livewire/Project/New/PublicGitRepository.phpindex 55eb5c77d8..49f017270b 100644--- a/app/Livewire/Project/New/PublicGitRepository.php+++ b/app/Livewire/Project/New/PublicGitRepository.php@@ -174,7 +174,7 @@ class PublicGitRepository extends Componentreturn;}- if (! $this->branchFound && $this->git_branch == 'main') {+ if (! $this->branchFound && $this->git_branch === 'main') {try {$this->git_branch = 'master';$this->getBranch();@@ -197,7 +197,7 @@ class PublicGitRepository extends Component} else {$this->git_branch = 'main';}- if ($this->git_host == 'github.com') {+ if ($this->git_host === 'github.com') {$this->git_source = GithubApp::where('name', 'Public GitHub')->first();return;diff --git a/app/Livewire/Project/Shared/ScheduledTask/Add.php b/app/Livewire/Project/Shared/ScheduledTask/Add.phpindex f36b7b1418..adfd59217e 100644--- a/app/Livewire/Project/Shared/ScheduledTask/Add.php+++ b/app/Livewire/Project/Shared/ScheduledTask/Add.php@@ -55,8 +55,8 @@ class Add extends Componentreturn;}- if (empty($this->container) || $this->container == 'null') {- if ($this->type == 'service') {+ if (empty($this->container) || $this->container === 'null') {+ if ($this->type === 'service') {$this->container = $this->subServiceName;}}diff --git a/app/Livewire/Project/Shared/ScheduledTask/All.php b/app/Livewire/Project/Shared/ScheduledTask/All.phpindex b383e294ad..6ab8426f39 100644--- a/app/Livewire/Project/Shared/ScheduledTask/All.php+++ b/app/Livewire/Project/Shared/ScheduledTask/All.php@@ -21,10 +21,10 @@ class All extends Componentpublic function mount(){$this->parameters = get_route_parameters();- if ($this->resource->type() == 'service') {+ if ($this->resource->type() === 'service') {$this->containerNames = $this->resource->applications()->pluck('name');$this->containerNames = $this->containerNames->merge($this->resource->databases()->pluck('name'));- } elseif ($this->resource->type() == 'application') {+ } elseif ($this->resource->type() === 'application') {if ($this->resource->build_pack === 'dockercompose') {$parsed = $this->resource->parse();$containers = collect(data_get($parsed, 'services'))->keys();diff --git a/app/Livewire/Project/Shared/ScheduledTask/Show.php b/app/Livewire/Project/Shared/ScheduledTask/Show.phpindex 37f50dd32b..36194edb78 100644--- a/app/Livewire/Project/Shared/ScheduledTask/Show.php+++ b/app/Livewire/Project/Shared/ScheduledTask/Show.php@@ -77,7 +77,7 @@ class Show extends Componenttry {$this->task->delete();- if ($this->type == 'application') {+ if ($this->type === 'application') {return redirect()->route('project.application.configuration', $this->parameters, $this->scheduledTaskName);} else {return redirect()->route('project.service.configuration', $this->parameters, $this->scheduledTaskName);diff --git a/app/Livewire/Tags/Index.php b/app/Livewire/Tags/Index.phpindex 642b2bded8..116f19e4ea 100644--- a/app/Livewire/Tags/Index.php+++ b/app/Livewire/Tags/Index.php@@ -47,7 +47,7 @@ class Index extends Componentpublic function tagUpdated(){- if ($this->tag == '') {+ if ($this->tag === '') {return;}$sanitizedTag = htmlspecialchars($this->tag, ENT_QUOTES, 'UTF-8');diff --git a/app/Models/Application.php b/app/Models/Application.phpindex c747c75c56..cd7bb533eb 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -114,7 +114,7 @@ class Application extends BaseModelprotected static function booted(){static::saving(function ($application) {- if ($application->fqdn == '') {+ if ($application->fqdn === '') {$application->fqdn = null;}$application->forceFill([@@ -936,7 +936,7 @@ class Application extends BaseModel$source_html_url_host = $url['host'];$source_html_url_scheme = $url['scheme'];- if ($this->source->getMorphClass() == \App\Models\GithubApp::class) {+ if ($this->source->getMorphClass() === \App\Models\GithubApp::class) {if ($this->source->is_public) {$fullRepoUrl = "{$this->source->html_url}/{$customRepository}";$git_clone_command = "{$git_clone_command} {$this->source->html_url}/{$customRepository} {$baseDir}";@@ -1407,7 +1407,7 @@ class Application extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -1431,7 +1431,7 @@ class Application extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/EnvironmentVariable.php b/app/Models/EnvironmentVariable.phpindex f77d73db80..f9e09941d4 100644--- a/app/Models/EnvironmentVariable.php+++ b/app/Models/EnvironmentVariable.php@@ -156,7 +156,7 @@ class EnvironmentVariable extends Modelprivate function get_real_environment_variables(?string $environment_variable = null, $resource = null){- if ((is_null($environment_variable) && $environment_variable == '') || is_null($resource)) {+ if ((is_null($environment_variable) && $environment_variable === '') || is_null($resource)) {return null;}$environment_variable = trim($environment_variable);@@ -202,7 +202,7 @@ class EnvironmentVariable extends Modelprivate function set_environment_variables(?string $environment_variable = null): ?string{- if (is_null($environment_variable) && $environment_variable == '') {+ if (is_null($environment_variable) && $environment_variable === '') {return null;}$environment_variable = trim($environment_variable);diff --git a/app/Models/LocalFileVolume.php b/app/Models/LocalFileVolume.phpindex d528099ff8..97a1e4cbbe 100644--- a/app/Models/LocalFileVolume.php+++ b/app/Models/LocalFileVolume.php@@ -113,15 +113,15 @@ class LocalFileVolume extends BaseModel}$isFile = instant_remote_process(["test -f $path && echo OK || echo NOK"], $server);$isDir = instant_remote_process(["test -d $path && echo OK || echo NOK"], $server);- if ($isFile == 'OK' && $this->is_directory) {+ if ($isFile === 'OK' && $this->is_directory) {$content = instant_remote_process(["cat $path"], $server, false);$this->is_directory = false;$this->content = $content;$this->save();FileStorageChanged::dispatch(data_get($server, 'team_id'));throw new \Exception('The following file is a file on the server, but you are trying to mark it as a directory. Please delete the file on the server or mark it as directory.');- } elseif ($isDir == 'OK' && ! $this->is_directory) {- if ($path == '/' || $path == '.' || $path == '..' || $path == '' || str($path)->isEmpty() || is_null($path)) {+ } elseif ($isDir === 'OK' && ! $this->is_directory) {+ if ($path === '/' || $path === '.' || $path === '..' || $path === '' || str($path)->isEmpty() || is_null($path)) {$this->is_directory = true;$this->save();throw new \Exception('The following file is a directory on the server, but you are trying to mark it as a file. <br><br>Please delete the directory on the server or mark it as directory.');@@ -132,7 +132,7 @@ class LocalFileVolume extends BaseModel], $server, false);FileStorageChanged::dispatch(data_get($server, 'team_id'));}- if ($isDir == 'NOK' && ! $this->is_directory) {+ if ($isDir === 'NOK' && ! $this->is_directory) {$chmod = data_get($this, 'chmod');$chown = data_get($this, 'chown');if ($content) {@@ -148,7 +148,7 @@ class LocalFileVolume extends BaseModelif ($chmod) {$commands->push("chmod $chmod $path");}- } elseif ($isDir == 'NOK' && $this->is_directory) {+ } elseif ($isDir === 'NOK' && $this->is_directory) {$commands->push("mkdir -p $path > /dev/null 2>&1 || true");}diff --git a/app/Models/Server.php b/app/Models/Server.phpindex a9e3acde4d..3dde662aaa 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -421,7 +421,7 @@ respond 404"echo '$base64' | base64 -d | tee $file > /dev/null",], $this);- if (config('app.env') == 'local') {+ if (config('app.env') === 'local') {// ray($yaml);}}@@ -597,7 +597,7 @@ $schema://$host {if (str($cpu)->contains('error')) {$error = json_decode($cpu, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -619,7 +619,7 @@ $schema://$host {if (str($memory)->contains('error')) {$error = json_decode($memory, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/StandaloneClickhouse.php b/app/Models/StandaloneClickhouse.phpindex c9d3ea0315..fa27d50d83 100644--- a/app/Models/StandaloneClickhouse.php+++ b/app/Models/StandaloneClickhouse.php@@ -275,7 +275,7 @@ class StandaloneClickhouse extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -297,7 +297,7 @@ class StandaloneClickhouse extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/StandaloneDragonfly.php b/app/Models/StandaloneDragonfly.phpindex 2bde510801..fa0bd4b44d 100644--- a/app/Models/StandaloneDragonfly.php+++ b/app/Models/StandaloneDragonfly.php@@ -275,7 +275,7 @@ class StandaloneDragonfly extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -297,7 +297,7 @@ class StandaloneDragonfly extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/StandaloneKeydb.php b/app/Models/StandaloneKeydb.phpindex fbee9789a6..56ee4d4a2e 100644--- a/app/Models/StandaloneKeydb.php+++ b/app/Models/StandaloneKeydb.php@@ -275,7 +275,7 @@ class StandaloneKeydb extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -297,7 +297,7 @@ class StandaloneKeydb extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/StandaloneMariadb.php b/app/Models/StandaloneMariadb.phpindex 00f635fafd..c55a76af78 100644--- a/app/Models/StandaloneMariadb.php+++ b/app/Models/StandaloneMariadb.php@@ -275,7 +275,7 @@ class StandaloneMariadb extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -297,7 +297,7 @@ class StandaloneMariadb extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/StandaloneMongodb.php b/app/Models/StandaloneMongodb.phpindex c225011c57..3f12a85570 100644--- a/app/Models/StandaloneMongodb.php+++ b/app/Models/StandaloneMongodb.php@@ -295,7 +295,7 @@ class StandaloneMongodb extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -317,7 +317,7 @@ class StandaloneMongodb extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/StandaloneMysql.php b/app/Models/StandaloneMysql.phpindex 52725ffc7c..0d8359f88c 100644--- a/app/Models/StandaloneMysql.php+++ b/app/Models/StandaloneMysql.php@@ -276,7 +276,7 @@ class StandaloneMysql extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -298,7 +298,7 @@ class StandaloneMysql extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/StandalonePostgresql.php b/app/Models/StandalonePostgresql.phpindex 3dd13b6331..f31582c358 100644--- a/app/Models/StandalonePostgresql.php+++ b/app/Models/StandalonePostgresql.php@@ -281,7 +281,7 @@ class StandalonePostgresql extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -303,7 +303,7 @@ class StandalonePostgresql extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/app/Models/StandaloneRedis.php b/app/Models/StandaloneRedis.phpindex 5b6993b9a3..1199785305 100644--- a/app/Models/StandaloneRedis.php+++ b/app/Models/StandaloneRedis.php@@ -286,7 +286,7 @@ class StandaloneRedis extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);@@ -308,7 +308,7 @@ class StandaloneRedis extends BaseModelif (str($metrics)->contains('error')) {$error = json_decode($metrics, true);$error = data_get($error, 'error', 'Something is not okay, are you okay?');- if ($error == 'Unauthorized') {+ if ($error === 'Unauthorized') {$error = 'Unauthorized, please check your metrics token or restart Sentinel to set a new token.';}throw new \Exception($error);diff --git a/bootstrap/helpers/github.php b/bootstrap/helpers/github.phpindex 0b5f7034b0..b1ac9178ca 100644--- a/bootstrap/helpers/github.php+++ b/bootstrap/helpers/github.php@@ -57,7 +57,7 @@ function githubApi(GithubApp|GitlabApp|null $source, string $endpoint, string $mif (is_null($source)) {throw new \Exception('Not implemented yet.');}- if ($source->getMorphClass() == \App\Models\GithubApp::class) {+ if ($source->getMorphClass() === \App\Models\GithubApp::class) {if ($source->is_public) {$response = Http::github($source->api_url)->$method($endpoint);} else {diff --git a/bootstrap/helpers/services.php b/bootstrap/helpers/services.phpindex 94c3c5f45e..18ef4cb6bf 100644--- a/bootstrap/helpers/services.php+++ b/bootstrap/helpers/services.php@@ -51,7 +51,7 @@ function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Appli// Exists and is a directory$isDir = instant_remote_process(["test -d $fileLocation && echo OK || echo NOK"], $server);- if ($isFile == 'OK') {+ if ($isFile === 'OK') {// If its a file & exists$filesystemContent = instant_remote_process(["cat $fileLocation"], $server);if ($fileVolume->is_based_on_git) {@@ -59,12 +59,12 @@ function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Appli}$fileVolume->is_directory = false;$fileVolume->save();- } elseif ($isDir == 'OK') {+ } elseif ($isDir === 'OK') {// If its a directory & exists$fileVolume->content = null;$fileVolume->is_directory = true;$fileVolume->save();- } elseif ($isFile == 'NOK' && $isDir == 'NOK' && ! $fileVolume->is_directory && $isInit && $content) {+ } elseif ($isFile === 'NOK' && $isDir === 'NOK' && ! $fileVolume->is_directory && $isInit && $content) {// Does not exists (no dir or file), not flagged as directory, is init, has content$fileVolume->content = $content;$fileVolume->is_directory = false;@@ -75,13 +75,13 @@ function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Appli"mkdir -p $dir","echo '$content' | base64 -d | tee $fileLocation",], $server);- } elseif ($isFile == 'NOK' && $isDir == 'NOK' && $fileVolume->is_directory && $isInit) {+ } elseif ($isFile === 'NOK' && $isDir === 'NOK' && $fileVolume->is_directory && $isInit) {// Does not exists (no dir or file), flagged as directory, is init$fileVolume->content = null;$fileVolume->is_directory = true;$fileVolume->save();instant_remote_process(["mkdir -p $fileLocation"], $server);- } elseif ($isFile == 'NOK' && $isDir == 'NOK' && ! $fileVolume->is_directory && $isInit && is_null($content)) {+ } elseif ($isFile === 'NOK' && $isDir === 'NOK' && ! $fileVolume->is_directory && $isInit && is_null($content)) {// Does not exists (no dir or file), not flagged as directory, is init, has no content => create directory$fileVolume->content = null;$fileVolume->is_directory = true;diff --git a/bootstrap/helpers/socialite.php b/bootstrap/helpers/socialite.phpindex a23dc24d3e..cad9de7fa8 100644--- a/bootstrap/helpers/socialite.php+++ b/bootstrap/helpers/socialite.php@@ -7,7 +7,7 @@ function get_socialite_provider(string $provider){$oauth_setting = OauthSetting::firstWhere('provider', $provider);- if ($provider == 'azure') {+ if ($provider === 'azure') {$azure_config = new \SocialiteProviders\Manager\Config($oauth_setting->client_id,$oauth_setting->client_secret,