mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Fix code style for LockCommand
This commit is contained in:
		
							parent
							
								
									b21b5f4c5e
								
							
						
					
					
						commit
						0bfe649aa5
					
				@ -35,14 +35,26 @@ class LockCommand extends AbstractCommand implements RequiresEnvironment
 | 
				
			|||||||
        $reason = Console::readInput();
 | 
					        $reason = Console::readInput();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $lockmsg = PHP_EOL;
 | 
					        $lockmsg = PHP_EOL;
 | 
				
			||||||
        if ($name) $lockmsg .= 'Locked by ' . $name . ' ';
 | 
					        if ($name) {
 | 
				
			||||||
        if ($email) $lockmsg .= '(' . $email . ')';
 | 
					            $lockmsg .= 'Locked by ' . $name . ' ';
 | 
				
			||||||
        if ($reason) $lockmsg .= PHP_EOL . $reason . PHP_EOL;
 | 
					        }
 | 
				
			||||||
 | 
					        if ($email) {
 | 
				
			||||||
 | 
					            $lockmsg .= '(' . $email . ')';
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if ($reason) {
 | 
				
			||||||
 | 
					            $lockmsg .= PHP_EOL . $reason . PHP_EOL;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $lockFile = getcwd() . '/.mage/' . $this->getConfig()->getEnvironment() . '.lock';
 | 
					        $lockFile = getcwd() . '/.mage/' . $this->getConfig()->getEnvironment() . '.lock';
 | 
				
			||||||
        file_put_contents($lockFile, 'Locked environment at date: ' . date('Y-m-d H:i:s') . $lockmsg);
 | 
					        file_put_contents($lockFile, 'Locked environment at date: ' . date('Y-m-d H:i:s') . $lockmsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Console::output('Locked deployment to <light_purple>' . $this->getConfig()->getEnvironment() . '</light_purple> environment', 1, 2);
 | 
					        Console::output(
 | 
				
			||||||
 | 
					            'Locked deployment to <light_purple>'
 | 
				
			||||||
 | 
					            . $this->getConfig()->getEnvironment()
 | 
				
			||||||
 | 
					            . '</light_purple> environment',
 | 
				
			||||||
 | 
					            1,
 | 
				
			||||||
 | 
					            2
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user