src/View/Helper/FormatHelper.php
public function ok($content, $ok = false, array $attributes = []) {
		if ($ok) {
			$type = 'yes';
			$color = 'green';
		} else {
			$type = 'no';
			$color = 'red';
		}

		$options = [
			'type' => $type,
			'color' => $color
		];
		$options['content'] = $content;
		$options['attributes'] = $this->template->formatAttributes($attributes);
		return $this->template->format('ok', $options);
	}
public function ok($content, $ok = false, array $attributes = []) {
		if ($ok) {
			$type = 'yes';
			$color = 'green';
		} else {
			$type = 'no';
			$color = 'red';
		}

		$options = [
			'type' => $type,
			'color' => $color
		];
		$options['content'] = $content;
		$options['attributes'] = $this->template->formatAttributes($attributes);
		return $this->template->format('ok', $options);
	}
public function ok ( $ content , $ ok = false , array $ attributes = [ ] ) { if ( $ ok ) { $ type = 'yes' ; $ color = 'green' ; } else { $ type = 'no' ; $ color = 'red' ; } $ options = [ 'type' => $ type , 'color' => $ color ] ; $ options [ 'content' ] = $ content ; $ options [ 'attributes' ] = $ this -> template -> formatAttributes ( $ attributes ) ; return $ this -> template -> format ( 'ok' , $ options ) ; }
Returns green on ok, red otherwise

@todo Remove inline css and make classes better: green=>ok red=>not-ok
Maybe use templating

@param mixed $content Output
@param bool $ok Boolish value
@param array $attributes
@return string Value nicely formatted/colored
Returns green on ok red otherwise