remove ray
This commit is contained in:
		@@ -31,8 +31,6 @@ class Danger extends Component
 | 
				
			|||||||
        $this->projectUuid = data_get($parameters, 'project_uuid');
 | 
					        $this->projectUuid = data_get($parameters, 'project_uuid');
 | 
				
			||||||
        $this->environmentName = data_get($parameters, 'environment_name');
 | 
					        $this->environmentName = data_get($parameters, 'environment_name');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ray('Mount method called');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if ($this->resource === null) {
 | 
					        if ($this->resource === null) {
 | 
				
			||||||
            if (isset($parameters['service_uuid'])) {
 | 
					            if (isset($parameters['service_uuid'])) {
 | 
				
			||||||
                $this->resource = Service::where('uuid', $parameters['service_uuid'])->first();
 | 
					                $this->resource = Service::where('uuid', $parameters['service_uuid'])->first();
 | 
				
			||||||
@@ -42,22 +40,16 @@ class Danger extends Component
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ray('Resource:', $this->resource);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if ($this->resource === null) {
 | 
					        if ($this->resource === null) {
 | 
				
			||||||
            ray('Resource is null');
 | 
					 | 
				
			||||||
            $this->resourceName = 'Unknown Resource';
 | 
					            $this->resourceName = 'Unknown Resource';
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!method_exists($this->resource, 'type')) {
 | 
					        if (!method_exists($this->resource, 'type')) {
 | 
				
			||||||
            ray('Resource does not have type() method');
 | 
					 | 
				
			||||||
            $this->resourceName = 'Unknown Resource';
 | 
					            $this->resourceName = 'Unknown Resource';
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ray('Resource type:', $this->resource->type());
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        switch ($this->resource->type()) {
 | 
					        switch ($this->resource->type()) {
 | 
				
			||||||
            case 'application':
 | 
					            case 'application':
 | 
				
			||||||
                $this->resourceName = $this->resource->name ?? 'Application';
 | 
					                $this->resourceName = $this->resource->name ?? 'Application';
 | 
				
			||||||
@@ -84,8 +76,6 @@ class Danger extends Component
 | 
				
			|||||||
            default:
 | 
					            default:
 | 
				
			||||||
                $this->resourceName = 'Unknown Resource';
 | 
					                $this->resourceName = 'Unknown Resource';
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					 | 
				
			||||||
        ray('Final resource name:', $this->resourceName);
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function delete($password)
 | 
					    public function delete($password)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user