mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	[Scrutinizer] Fix Minor issues
This commit is contained in:
		
							parent
							
								
									aa47edbc1b
								
							
						
					
					
						commit
						d89aaa8d56
					
				@ -143,7 +143,7 @@ class Runtime
 | 
				
			|||||||
     * Retrieve a value from the Vars bag
 | 
					     * Retrieve a value from the Vars bag
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param string $key Variable name
 | 
					     * @param string $key Variable name
 | 
				
			||||||
     * @param string $default Variable default value, returned if not found
 | 
					     * @param mixed $default Variable default value, returned if not found
 | 
				
			||||||
     * @return string
 | 
					     * @return string
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function getVar($key, $default = null)
 | 
					    public function getVar($key, $default = null)
 | 
				
			||||||
@ -369,10 +369,8 @@ class Runtime
 | 
				
			|||||||
            case self::ON_RELEASE:
 | 
					            case self::ON_RELEASE:
 | 
				
			||||||
            case self::POST_RELEASE:
 | 
					            case self::POST_RELEASE:
 | 
				
			||||||
                return $this->runRemoteCommand($cmd, true, $timeout);
 | 
					                return $this->runRemoteCommand($cmd, true, $timeout);
 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
            default:
 | 
					            default:
 | 
				
			||||||
                return $this->runLocalCommand($cmd, $timeout);
 | 
					                return $this->runLocalCommand($cmd, $timeout);
 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -32,23 +32,18 @@ class Utils
 | 
				
			|||||||
        switch ($stage) {
 | 
					        switch ($stage) {
 | 
				
			||||||
            case Runtime::PRE_DEPLOY:
 | 
					            case Runtime::PRE_DEPLOY:
 | 
				
			||||||
                return 'Pre Deploy';
 | 
					                return 'Pre Deploy';
 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            case Runtime::ON_DEPLOY:
 | 
					            case Runtime::ON_DEPLOY:
 | 
				
			||||||
                return 'On Deploy';
 | 
					                return 'On Deploy';
 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            case Runtime::POST_DEPLOY:
 | 
					            case Runtime::POST_DEPLOY:
 | 
				
			||||||
                return 'Post Deploy';
 | 
					                return 'Post Deploy';
 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            case Runtime::ON_RELEASE:
 | 
					            case Runtime::ON_RELEASE:
 | 
				
			||||||
                return 'On Release';
 | 
					                return 'On Release';
 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            case Runtime::POST_RELEASE:
 | 
					            case Runtime::POST_RELEASE:
 | 
				
			||||||
                return 'Post Release';
 | 
					                return 'Post Release';
 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return $stage;
 | 
					        return $stage;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user