mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 22:14:26 +00:00
testing php storm code cleanup and styling
This commit is contained in:
1 parent
a8ee779b31
commit
f2228cec7b
368 files changed
+23834
-2623
No files matched your search
@@ -16,6 +16,17 @@ class GithubApp extends BaseModel
|
||||
'client_secret',
|
||||
'webhook_secret',
|
||||
];
|
||||
|
||||
static public function public()
|
||||
{
|
||||
return GithubApp::whereTeamId(session('currentTeam')->id)->whereisPublic(true)->whereNotNull('app_id')->get();
|
||||
}
|
||||
|
||||
static public function private()
|
||||
{
|
||||
return GithubApp::whereTeamId(session('currentTeam')->id)->whereisPublic(false)->whereNotNull('app_id')->get();
|
||||
}
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::deleting(function (GithubApp $github_app) {
|
||||
@@ -25,14 +36,17 @@ class GithubApp extends BaseModel
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public function applications()
|
||||
{
|
||||
return $this->morphMany(Application::class, 'source');
|
||||
}
|
||||
|
||||
public function privateKey()
|
||||
{
|
||||
return $this->belongsTo(PrivateKey::class);
|
||||
}
|
||||
|
||||
public function type(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
@@ -43,12 +57,4 @@ class GithubApp extends BaseModel
|
||||
},
|
||||
);
|
||||
}
|
||||
static public function public()
|
||||
{
|
||||
return GithubApp::whereTeamId(session('currentTeam')->id)->whereisPublic(true)->whereNotNull('app_id')->get();
|
||||
}
|
||||
static public function private()
|
||||
{
|
||||
return GithubApp::whereTeamId(session('currentTeam')->id)->whereisPublic(false)->whereNotNull('app_id')->get();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user