Fix styling
This commit is contained in:
		
				
					committed by
					
						
						github-actions[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							6a4aa492c0
						
					
				
				
					commit
					96c4f5b8da
				
			@@ -103,7 +103,7 @@ class Bitbucket extends Controller
 | 
			
		||||
                if ($x_bitbucket_event === 'repo:push') {
 | 
			
		||||
                    if ($application->isDeployable()) {
 | 
			
		||||
                        ray('Deploying '.$application->name.' with branch '.$branch);
 | 
			
		||||
                        $deployment_uuid = new Cuid2();
 | 
			
		||||
                        $deployment_uuid = new Cuid2;
 | 
			
		||||
                        queue_application_deployment(
 | 
			
		||||
                            application: $application,
 | 
			
		||||
                            deployment_uuid: $deployment_uuid,
 | 
			
		||||
@@ -127,7 +127,7 @@ class Bitbucket extends Controller
 | 
			
		||||
                if ($x_bitbucket_event === 'pullrequest:created') {
 | 
			
		||||
                    if ($application->isPRDeployable()) {
 | 
			
		||||
                        ray('Deploying preview for '.$application->name.' with branch '.$branch.' and base branch '.$base_branch.' and pull request id '.$pull_request_id);
 | 
			
		||||
                        $deployment_uuid = new Cuid2();
 | 
			
		||||
                        $deployment_uuid = new Cuid2;
 | 
			
		||||
                        $found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
 | 
			
		||||
                        if (! $found) {
 | 
			
		||||
                            if ($application->build_pack === 'dockercompose') {
 | 
			
		||||
 
 | 
			
		||||
@@ -123,7 +123,7 @@ class Gitea extends Controller
 | 
			
		||||
                        $is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);
 | 
			
		||||
                        if ($is_watch_path_triggered || is_null($application->watch_paths)) {
 | 
			
		||||
                            ray('Deploying '.$application->name.' with branch '.$branch);
 | 
			
		||||
                            $deployment_uuid = new Cuid2();
 | 
			
		||||
                            $deployment_uuid = new Cuid2;
 | 
			
		||||
                            queue_application_deployment(
 | 
			
		||||
                                application: $application,
 | 
			
		||||
                                deployment_uuid: $deployment_uuid,
 | 
			
		||||
@@ -162,7 +162,7 @@ class Gitea extends Controller
 | 
			
		||||
                if ($x_gitea_event === 'pull_request') {
 | 
			
		||||
                    if ($action === 'opened' || $action === 'synchronize' || $action === 'reopened') {
 | 
			
		||||
                        if ($application->isPRDeployable()) {
 | 
			
		||||
                            $deployment_uuid = new Cuid2();
 | 
			
		||||
                            $deployment_uuid = new Cuid2;
 | 
			
		||||
                            $found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
 | 
			
		||||
                            if (! $found) {
 | 
			
		||||
                                if ($application->build_pack === 'dockercompose') {
 | 
			
		||||
 
 | 
			
		||||
@@ -128,7 +128,7 @@ class Github extends Controller
 | 
			
		||||
                        $is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);
 | 
			
		||||
                        if ($is_watch_path_triggered || is_null($application->watch_paths)) {
 | 
			
		||||
                            ray('Deploying '.$application->name.' with branch '.$branch);
 | 
			
		||||
                            $deployment_uuid = new Cuid2();
 | 
			
		||||
                            $deployment_uuid = new Cuid2;
 | 
			
		||||
                            queue_application_deployment(
 | 
			
		||||
                                application: $application,
 | 
			
		||||
                                deployment_uuid: $deployment_uuid,
 | 
			
		||||
@@ -167,7 +167,7 @@ class Github extends Controller
 | 
			
		||||
                if ($x_github_event === 'pull_request') {
 | 
			
		||||
                    if ($action === 'opened' || $action === 'synchronize' || $action === 'reopened') {
 | 
			
		||||
                        if ($application->isPRDeployable()) {
 | 
			
		||||
                            $deployment_uuid = new Cuid2();
 | 
			
		||||
                            $deployment_uuid = new Cuid2;
 | 
			
		||||
                            $found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
 | 
			
		||||
                            if (! $found) {
 | 
			
		||||
                                if ($application->build_pack === 'dockercompose') {
 | 
			
		||||
@@ -357,7 +357,7 @@ class Github extends Controller
 | 
			
		||||
                        $is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);
 | 
			
		||||
                        if ($is_watch_path_triggered || is_null($application->watch_paths)) {
 | 
			
		||||
                            ray('Deploying '.$application->name.' with branch '.$branch);
 | 
			
		||||
                            $deployment_uuid = new Cuid2();
 | 
			
		||||
                            $deployment_uuid = new Cuid2;
 | 
			
		||||
                            queue_application_deployment(
 | 
			
		||||
                                application: $application,
 | 
			
		||||
                                deployment_uuid: $deployment_uuid,
 | 
			
		||||
@@ -396,7 +396,7 @@ class Github extends Controller
 | 
			
		||||
                if ($x_github_event === 'pull_request') {
 | 
			
		||||
                    if ($action === 'opened' || $action === 'synchronize' || $action === 'reopened') {
 | 
			
		||||
                        if ($application->isPRDeployable()) {
 | 
			
		||||
                            $deployment_uuid = new Cuid2();
 | 
			
		||||
                            $deployment_uuid = new Cuid2;
 | 
			
		||||
                            $found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
 | 
			
		||||
                            if (! $found) {
 | 
			
		||||
                                ApplicationPreview::create([
 | 
			
		||||
 
 | 
			
		||||
@@ -137,7 +137,7 @@ class Gitlab extends Controller
 | 
			
		||||
                        $is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);
 | 
			
		||||
                        if ($is_watch_path_triggered || is_null($application->watch_paths)) {
 | 
			
		||||
                            ray('Deploying '.$application->name.' with branch '.$branch);
 | 
			
		||||
                            $deployment_uuid = new Cuid2();
 | 
			
		||||
                            $deployment_uuid = new Cuid2;
 | 
			
		||||
                            queue_application_deployment(
 | 
			
		||||
                                application: $application,
 | 
			
		||||
                                deployment_uuid: $deployment_uuid,
 | 
			
		||||
@@ -177,7 +177,7 @@ class Gitlab extends Controller
 | 
			
		||||
                if ($x_gitlab_event === 'merge_request') {
 | 
			
		||||
                    if ($action === 'open' || $action === 'opened' || $action === 'synchronize' || $action === 'reopened' || $action === 'reopen' || $action === 'update') {
 | 
			
		||||
                        if ($application->isPRDeployable()) {
 | 
			
		||||
                            $deployment_uuid = new Cuid2();
 | 
			
		||||
                            $deployment_uuid = new Cuid2;
 | 
			
		||||
                            $found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
 | 
			
		||||
                            if (! $found) {
 | 
			
		||||
                                if ($application->build_pack === 'dockercompose') {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user