mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50: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
 | 
			
		||||
     *
 | 
			
		||||
     * @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
 | 
			
		||||
     */
 | 
			
		||||
    public function getVar($key, $default = null)
 | 
			
		||||
@ -369,10 +369,8 @@ class Runtime
 | 
			
		||||
            case self::ON_RELEASE:
 | 
			
		||||
            case self::POST_RELEASE:
 | 
			
		||||
                return $this->runRemoteCommand($cmd, true, $timeout);
 | 
			
		||||
                break;
 | 
			
		||||
            default:
 | 
			
		||||
                return $this->runLocalCommand($cmd, $timeout);
 | 
			
		||||
                break;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -32,23 +32,18 @@ class Utils
 | 
			
		||||
        switch ($stage) {
 | 
			
		||||
            case Runtime::PRE_DEPLOY:
 | 
			
		||||
                return 'Pre Deploy';
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
            case Runtime::ON_DEPLOY:
 | 
			
		||||
                return 'On Deploy';
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
            case Runtime::POST_DEPLOY:
 | 
			
		||||
                return 'Post Deploy';
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
            case Runtime::ON_RELEASE:
 | 
			
		||||
                return 'On Release';
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
            case Runtime::POST_RELEASE:
 | 
			
		||||
                return 'Post Release';
 | 
			
		||||
                break;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $stage;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user