src/Model/Behavior/TagBehavior.php
protected function _normalizeTag($tag) {
		$namespace = null;
		$label = $tag;
		$separator = $this->getConfig('separator');
		if ($separator === null) {
			return [
				null,
				$tag,
			];
		}

		if (strpos($tag, $separator) !== false) {
			list($namespace, $label) = explode($separator, $tag);
		}

		return [
			trim($namespace),
			trim($label)
		];
	}
protected function _normalizeTag($tag) {
		$namespace = null;
		$label = $tag;
		$separator = $this->getConfig('separator');
		if ($separator === null) {
			return [
				null,
				$tag,
			];
		}

		if (strpos($tag, $separator) !== false) {
			list($namespace, $label) = explode($separator, $tag);
		}

		return [
			trim($namespace),
			trim($label)
		];
	}
protected function _normalizeTag ( $ tag ) { $ namespace = null ; $ label = $ tag ; $ separator = $ this -> getConfig ( 'separator' ) ; if ( $ separator === null ) { return [ null , $ tag , ] ; } if ( strpos ( $ tag , $ separator ) !== false ) { list ( $ namespace , $ label ) = explode ( $ separator , $ tag ) ; } return [ trim ( $ namespace ) , trim ( $ label ) ] ; }
Normalizes a tag string by trimming unnecessary whitespace and extracting the tag identifier
from a tag in case it exists.

@param string $tag Tag.
@return array The tag's ID and label.
Normalizes a tag string by trimming unnecessary whitespace and extracting the tag identifier from a tag in case it exists .