public function status()
	{
		$mode    = $this->output->getMode();
		$status  = $this->mechanism->status();
		$message = (!empty($status))
			? 'This repository is managed by ' . $this->mechanism->getName() . ' and has the following divergence:'
			: 'This repository is managed by ' . $this->mechanism->getName() . ' and is clean';

		if ($mode != 'minimal')
		{
			$this->output->addLine(
				$message,
				array(
					'color' => 'blue'
				)
			);
		}

		$colorMap = array(
			'added'     => 'green',
			'modified'  => 'yellow',
			'deleted'   => 'cyan',
			'renamed'   => 'yellow',
			'copied'    => 'yellow',
			'untracked' => 'black',
			'unmerged'  => 'red',
			'merged'    => 'blue'
		);

		if (is_array($status) && count($status) > 0)
		{
			foreach ($status as $k => $v)
			{
				if (count($v) > 0)
				{
					if ($mode == 'minimal')
					{
						$this->output->addLine(
							array(
								$k => $v
							)
						);
					}
					else
					{
						$this->output->addSpacer();
						$this->output->addLine(ucfirst($k) . ' files:');
						foreach ($v as $file)
						{
							$this->output->addLine(
								$file,
								array(
									'color'       => $colorMap[$k],
									'indentation' => 2
								)
							);
						}
					}
				}
			}
		}
	}
public function status()
	{
		$mode    = $this->output->getMode();
		$status  = $this->mechanism->status();
		$message = (!empty($status))
			? 'This repository is managed by ' . $this->mechanism->getName() . ' and has the following divergence:'
			: 'This repository is managed by ' . $this->mechanism->getName() . ' and is clean';

		if ($mode != 'minimal')
		{
			$this->output->addLine(
				$message,
				array(
					'color' => 'blue'
				)
			);
		}

		$colorMap = array(
			'added'     => 'green',
			'modified'  => 'yellow',
			'deleted'   => 'cyan',
			'renamed'   => 'yellow',
			'copied'    => 'yellow',
			'untracked' => 'black',
			'unmerged'  => 'red',
			'merged'    => 'blue'
		);

		if (is_array($status) && count($status) > 0)
		{
			foreach ($status as $k => $v)
			{
				if (count($v) > 0)
				{
					if ($mode == 'minimal')
					{
						$this->output->addLine(
							array(
								$k => $v
							)
						);
					}
					else
					{
						$this->output->addSpacer();
						$this->output->addLine(ucfirst($k) . ' files:');
						foreach ($v as $file)
						{
							$this->output->addLine(
								$file,
								array(
									'color'       => $colorMap[$k],
									'indentation' => 2
								)
							);
						}
					}
				}
			}
		}
	}
public function status ( ) { $ mode = $ this -> output -> getMode ( ) ; $ status = $ this -> mechanism -> status ( ) ; $ message = ( ! empty ( $ status ) ) ? 'This repository is managed by ' . $ this -> mechanism -> getName ( ) . ' and has the following divergence:' : 'This repository is managed by ' . $ this -> mechanism -> getName ( ) . ' and is clean' ; if ( $ mode != 'minimal' ) { $ this -> output -> addLine ( $ message , array ( 'color' => 'blue' ) ) ; } $ colorMap = array ( 'added' => 'green' , 'modified' => 'yellow' , 'deleted' => 'cyan' , 'renamed' => 'yellow' , 'copied' => 'yellow' , 'untracked' => 'black' , 'unmerged' => 'red' , 'merged' => 'blue' ) ; if ( is_array ( $ status ) && count ( $ status ) > 0 ) { foreach ( $ status as $ k => $ v ) { if ( count ( $ v ) > 0 ) { if ( $ mode == 'minimal' ) { $ this -> output -> addLine ( array ( $ k => $ v ) ) ; } else { $ this -> output -> addSpacer ( ) ; $ this -> output -> addLine ( ucfirst ( $ k ) . ' files:' ) ; foreach ( $ v as $ file ) { $ this -> output -> addLine ( $ file , array ( 'color' => $ colorMap [ $ k ] , 'indentation' => 2 ) ) ; } } } } } }
Check the current status of the repository

@museDescription  Checks the current status of the repository for upgrade eligibility

@return  void
Check the current status of the repository